Download OpenAPI specification:Download
The Observatorium API
You can get rules for a tenant with health data
| tenant required | string name of the tenant |
| type | string Enum: "alert" "record" type of Rules |
| match[] | Array of strings Repeated label selector argument |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "groups": [
- {
- "interval": 0,
- "name": "telemeter.rules",
- "file": "rules.yaml",
- "limit": 0,
- "evaluationTime": 0.002900887,
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "partialResponseStrategy": "WARN",
- "rules": [
- {
- "query": "count by (name) (cluster{condition=\"halted\"} == 1)",
- "name": "count:cluster_halted",
- "health": "ok",
- "evaluationTime": 0.002900887,
- "lastError": "string",
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "type": "recording",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}
}You can get labels for a tenant
| tenant required | string name of the tenant |
| match[] | Array of strings Repeated series selector argument |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": [
- "string"
]
}You can get label values for a label of a tenant
| tenant required | string name of the tenant |
| label_name required | string label name to get values for |
| match[] | Array of strings Repeated series selector argument |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "string",
- "data": [
- "node"
]
}You can evaluate instant queries for a tenant
| tenant required | string name of the tenant |
| query | string PromQL query to fetch result for metrics |
| timeout | string Evaluation timeout |
| dedup | boolean Query deduplication (Thanos) |
| partial_response | boolean Query partial response (Thanos) |
| time | string <rfc3339 | unix_timestamp> Evaluation timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "resultType": "matrix",
- "result": [
- {
- "metric": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}
]
}
}You can evaluate range queries for a tenant
| tenant required | string name of the tenant |
| query | string PromQL query to fetch result for metrics |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
| timeout | string Evaluation timeout |
| dedup | boolean Query deduplication (Thanos) |
| partial_response | boolean Query partial response (Thanos) |
| step | string Query resolution step width |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "resultType": "matrix",
- "result": [
- {
- "metric": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}
]
}
}You can get series for a tenant
| tenant required | string name of the tenant |
| match[] required | Array of strings Repeated series selector argument |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": [
- {
- "property1": "string",
- "property2": "string"
}
]
}| tenant required | string name of the tenant |
You can send all the log entries of clusters to Loki
required | object |
required | Array of strings or strings (ScalarOrString) [ items ] |
{- "stream": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}You can get labels for a tenant
| tenant required | string name of the tenant |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": [
- "string"
]
}You can get label values for a label of a tenant
| tenant required | string name of the tenant |
| name required | string label name to get values for |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "string",
- "data": [
- "node"
]
}You can evaluate instant queries for a tenant
| tenant required | string name of the tenant |
| query | string LogQL query to fetch result for logs |
| limit | number Max number of entries |
| time | string <rfc3339 | unix_timestamp> Evaluation timestamp |
| direction | string Determines the sort order of logs.Supported values are forward or backward. Defaults to backward. |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "resultType": "matrix",
- "result": [
- {
- "metric": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}
]
}
}You can evaluate range queries for a tenant
| tenant required | string name of the tenant |
| query | string LogQL query to fetch result for logs |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
| limit | number Max number of entries |
| step | string Query resolution step width |
| interval | string Only return entries at (or >) the specified interval,Only applies to queries which produce a stream response. |
| direction | string Determines the sort order of logs.Supported values are forward or backward. Defaults to backward. |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "resultType": "matrix",
- "result": [
- {
- "metric": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}
]
}
}You can create and update rule groups in a namespace for a tenant.
| tenant required | string name of the tenant |
| namespace required | string namespace of the log rule group |
| name | string |
| interval | string |
Array of RecordingRule (object) or AlertingRule (object) |
Prometheus-compatible rules endpoint to list alerting and recording rules that are currently loaded for a tenant.
| tenant required | string name of the tenant |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "groups": [
- {
- "interval": 0,
- "name": "telemeter.rules",
- "file": "rules.yaml",
- "limit": 0,
- "evaluationTime": 0.002900887,
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "partialResponseStrategy": "WARN",
- "rules": [
- {
- "query": "count by (name) (cluster{condition=\"halted\"} == 1)",
- "name": "count:cluster_halted",
- "health": "ok",
- "evaluationTime": 0.002900887,
- "lastError": "string",
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "type": "recording",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}
}Prometheus-compatible rules endpoint to list all active alerts for a tenant.
| tenant required | string name of the tenant |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": {
- "groups": [
- {
- "interval": 0,
- "name": "telemeter.rules",
- "file": "rules.yaml",
- "limit": 0,
- "evaluationTime": 0.002900887,
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "partialResponseStrategy": "WARN",
- "rules": [
- {
- "query": "count by (name) (cluster{condition=\"halted\"} == 1)",
- "name": "count:cluster_halted",
- "health": "ok",
- "evaluationTime": 0.002900887,
- "lastError": "string",
- "lastEvaluation": "2022-02-20T15:32:12.759781322Z",
- "type": "recording",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}
}You can get series for a tenant
| tenant required | string name of the tenant |
| match[] required | Array of strings Repeated series selector argument |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
{- "error": "string",
- "errorType": "string",
- "warnings": [
- "string"
], - "status": "success",
- "data": [
- {
- "property1": "string",
- "property2": "string"
}
]
}Used when specifying a large or dynamic number of stream selectors that may breach server-side URL character limits.
| tenant required | string name of the tenant |
| match[] required | Array of strings Repeated series selector argument |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| end | string <rfc3339 | unix_timestamp> End timestamp |
| match[] | Array of strings |
| start | string <rfc3339 | unix_timestamp> |
| end | string <rfc3339 | unix_timestamp> |
You can get log messages based on query
| tenant required | string name of the tenant |
| start | string <rfc3339 | unix_timestamp> Start timestamp |
| query | string LogQL query to fetch result for logs |
integer or integer delay retrieving logs |
{- "error": "string",
- "errorType": "string",
- "warnings": [ ],
- "items": "string",
- "status": "success",
- "streams": [
- {
- "stream": {
- "property1": "string",
- "property2": "string"
}, - "values": [
- [
- "string"
]
]
}
], - "dropped_entries": [
- {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "timestamp": "string"
}
]
}