Get metrics for given parameters
query Parameters
startTimestamp required | integer <int64> >= 0 From |
endTimestamp required | integer <int64> >= 0 To |
namespace | string Service namespace |
serviceName | string Service name |
metricName required | string Metric name |
aggregation | string (AggregationOperator) Enum: "MIN" "MAX" "AVG" "SUM" Aggregation function for multi-timeseries results |
step | integer >= 0 Mimir query step (resolution) in seconds |
header Parameters
X-Scope-OrgID | string Tenant header |
Api-Version | string API version |
Responses
Response samples
- 200
- 400
- 401
- 500
- 504
Content type
application/json
{- "step": 0,
- "commonLabels": {
- "property1": "string",
- "property2": "string"
}, - "metricEntryList": [
- {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
]
}
Get metric predictions for given parameters
query Parameters
startTimestamp required | integer <int64> >= 0 From |
endTimestamp required | integer <int64> >= 0 To |
namespace required | string Service namespace |
serviceName required | string Service name |
metricName required | string Metric name |
step | integer >= 0 Mimir query step (resolution) in seconds |
header Parameters
X-Scope-OrgID | string Tenant header |
Api-Version | string API version |
Responses
Response samples
- 200
- 400
- 401
- 500
- 504
Content type
application/json
{- "step": 0,
- "commonLabels": {
- "property1": "string",
- "property2": "string"
}, - "metricEntryList": [
- {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
]
}
Get current resources usage for a given service
query Parameters
serviceName required | string |
namespace required | string |
header Parameters
X-Scope-OrgID | string Tenant header |
Api-Version | string API version |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
- 504
Content type
application/json
{- "pods": [
- {
- "name": "string",
- "resources": {
- "property1": 0,
- "property2": 0
}
}
]
}
Get current traffic for a given service
query Parameters
startTimestamp required | integer <int64> >= 0 From |
endTimestamp required | integer <int64> >= 0 To |
serviceName required | string Service name |
namespace required | string Namespace |
header Parameters
X-Scope-OrgID | string Tenant header |
Api-Version | string API version |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
- 504
Content type
application/json
{- "pods": [
- {
- "name": "string",
- "resources": {
- "property1": 0,
- "property2": 0
}
}
]
}