|
| 1 | +--- |
| 2 | +meta: |
| 3 | + title: Cockpit supported API endpoints for data source management |
| 4 | + description: Discover how to manage your telemetry data sources using the Scaleway-supported Mimir, Loki, Tempo and Prometheus endpoints |
| 5 | +content: |
| 6 | + h1: Cockpit supported API endpoints for data source management |
| 7 | + paragraph: Discover how to manage your telemetry data sources using the Scaleway-supported Mimir, Loki, Tempo and Prometheus endpoints |
| 8 | +tags: observability cockpit endpoints mimir loki telemetry prometheus tempo datasource-management |
| 9 | +dates: |
| 10 | + validation: 2025-05-05 |
| 11 | + posted: 2025-05-05 |
| 12 | +categories: |
| 13 | + - observability |
| 14 | +--- |
| 15 | + |
| 16 | +Cockpit supports telemetry ingestion and querying using the following open-source technologies: |
| 17 | + |
| 18 | +- [Mimir](https://grafana.com/oss/mimir/) for metrics |
| 19 | +- [Loki](https://grafana.com/oss/loki/) for logs |
| 20 | +- [Tempo](https://grafana.com/oss/tempo/) for traces |
| 21 | +- [Prometheus](https://prometheus.io/docs/alerting/latest/alertmanager/) for the alert manager |
| 22 | + |
| 23 | +Cockpit exposes a subset of their HTTP APIs so users can push, query, and manage telemetry data from Cockpit. |
| 24 | + |
| 25 | + <Message type="important"> |
| 26 | + Scaleway does not support all endpoints from these upstream APIs. Refer to the exact lists below to find out which endpoints are supported. |
| 27 | + </Message> |
| 28 | + |
| 29 | +<Macro id="requirements" /> |
| 30 | + |
| 31 | + - A Scaleway account logged into the [console](https://console.scaleway.com) |
| 32 | + - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization or Project |
| 33 | + - [Created](/cockpit/how-to/create-token/) a Cockpit token with the right [permissions](/cockpit/concepts/#cockpit-tokens) |
| 34 | + - Retrieved the URL of your data source from the [Scaleway console](https://console.scaleway.com/cockpit/dataSource) or the [API](https://www.scaleway.com/en/developers/api/cockpit/regional-api/#path-data-sources-list-data-sources) |
| 35 | + |
| 36 | +## Mimir supported endpoints (metrics) |
| 37 | + |
| 38 | +The base URL pattern for metrics is the following: `https://<data-source-id>.metrics.cockpit.<region>.scw.cloud`. You must replace `<data-source-id>` with the ID of your data source and `<region>` with the region where your data source is located (`fr-par`, `nl-ams`, or `pl-waw`). |
| 39 | + |
| 40 | +Refer to the [official Mimir documentation](https://grafana.com/docs/mimir/latest/references/http-api/) for more details about the endpoints below. |
| 41 | + |
| 42 | +<Concept> |
| 43 | + ## Mimir write endpoints |
| 44 | + |
| 45 | + Method: `POST`. |
| 46 | + |
| 47 | + - Path: `/api/v1/push` |
| 48 | + - Path: `/otlp/v1/metrics` |
| 49 | +</Concept> |
| 50 | + |
| 51 | +<Concept> |
| 52 | + ## Mimir query endpoints |
| 53 | + |
| 54 | + Methods: `GET` and `POST`. |
| 55 | + |
| 56 | + - Path: `/prometheus/api/v1/query` |
| 57 | + - Path: `/prometheus/api/v1/query_range` |
| 58 | + - Path: `/prometheus/api/v1/query_exemplars` |
| 59 | + - Path: `/prometheus/api/v1/series` |
| 60 | + - Path: `/prometheus/api/v1/labels` |
| 61 | + - Path: `/prometheus/api/v1/label/*` |
| 62 | + - Path: `/prometheus/api/v1/metadata` |
| 63 | + - Path: `/prometheus/api/v1/read` |
| 64 | + - Path: `/prometheus/api/v1/status/buildinfo` |
| 65 | +</Concept> |
| 66 | + |
| 67 | +<Concept> |
| 68 | + ## Mimir rules endpoints |
| 69 | + |
| 70 | + Methods: `GET`, `POST`, and `DELETE`. |
| 71 | + |
| 72 | + - Path: `/prometheus/api/v1/rules` |
| 73 | + - Path: `/prometheus/api/v1/alerts` |
| 74 | + - Path: `/prometheus/config/v1/rules` |
| 75 | + - Path: `/prometheus/config/v1/rules/*` |
| 76 | +</Concept> |
| 77 | + |
| 78 | + |
| 79 | +## Loki supported endpoints (logs) |
| 80 | + |
| 81 | +The base URL pattern for logs is the following: `https://<data-source-id>.logs.cockpit.<region>.scw.cloud`. You must replace `<data-source-id>` with the ID of your data source and `<region>` with the region where your data source is located (`fr-par`, `nl-ams`, or `pl-waw`). |
| 82 | + |
| 83 | +Refer to the [official Loki documentation](https://grafana.com/docs/loki/latest/reference/loki-http-api/) for more details about the endpoints below. |
| 84 | + |
| 85 | +<Concept> |
| 86 | + ## Loki write endpoints |
| 87 | + |
| 88 | + Method: `POST`. |
| 89 | + |
| 90 | + - Path: `/loki/api/v1/push` |
| 91 | + - Path: `/otlp/v1/logs` |
| 92 | +</Concept> |
| 93 | + |
| 94 | +<Concept> |
| 95 | + ## Loki query endpoints |
| 96 | + |
| 97 | + Methods: `GET` and `POST`. |
| 98 | + |
| 99 | + - Path: `/loki/api/v1/query` |
| 100 | + - Path: `/loki/api/v1/query_range` |
| 101 | + - Path: `/loki/api/v1/labels` |
| 102 | + - Path: `/loki/api/v1/label` |
| 103 | + - Path: `/loki/api/v1/label/*` |
| 104 | + - Path: `/loki/api/v1/tail` |
| 105 | + - Path: `/loki/api/v1/series` |
| 106 | +</Concept> |
| 107 | + |
| 108 | +<Concept> |
| 109 | + ## Loki rules endpoints |
| 110 | + |
| 111 | + Methods: `GET`, `POST`, and `DELETE`. |
| 112 | + |
| 113 | + - Path: `/loki/api/v1/rules` |
| 114 | + - Path: `/loki/api/v1/rules/*` |
| 115 | + - Path: `/api/prom/rules` |
| 116 | + - Path: `/api/prom/rules/*` |
| 117 | + - Path: `/prometheus/api/v1/rules` |
| 118 | + - Path: `/prometheus/api/v1/alerts` |
| 119 | +</Concept> |
| 120 | + |
| 121 | +## Tempo supported endpoints (traces) |
| 122 | + |
| 123 | +The base URL pattern for traces is the following: `https://<data-source-id>.traces.cockpit.<region>.scw.cloud`. You must replace `<data-source-id>` with the ID of your data source and `<region>` with the region where your data source is located (`fr-par`, `nl-ams`, or `pl-waw`). |
| 124 | + |
| 125 | +Refer to the [official Tempo documentation](https://grafana.com/docs/tempo/latest/api_docs/) for more details about the endpoints below. |
| 126 | + |
| 127 | +<Concept> |
| 128 | + ## Tempo write endpoints |
| 129 | + |
| 130 | + Method: `POST`. |
| 131 | + |
| 132 | + - Path: `/otlp/v1/traces` |
| 133 | + - Path: `/opentelemetry.proto.collector.trace.v1.TraceService/Export` |
| 134 | + - Path: `/jaeger` |
| 135 | + - Path: `/zipkin` |
| 136 | +</Concept> |
| 137 | + |
| 138 | +<Concept> |
| 139 | + ## Tempo query endpoints |
| 140 | + |
| 141 | + Method: `GET`. |
| 142 | + |
| 143 | + - Path: `/api/echo` |
| 144 | + - Path: `/api/traces/*` |
| 145 | + - Path: `/api/search` |
| 146 | + - Path: `/api/search/tags` |
| 147 | + - Path: `/api/v2/search/tags` |
| 148 | + - Path: `/api/search/tag/*/values` |
| 149 | + - Path: `/api/v2/search/tag/*/values` |
| 150 | +</Concept> |
| 151 | + |
| 152 | +## Prometheus alert manager supported endpoints |
| 153 | + |
| 154 | +The base URL pattern for the alert manager is the following: `https://<alert-manager-id>.alertmanager.cockpit.<region>.scw.cloud`. You must replace `<alert-manager-id>` with the ID of your alert manager and `<region>` with the region where the alert manager is enabled (`fr-par`, `nl-ams`, or `pl-waw`). |
| 155 | + |
| 156 | +Refer to the [official Prometheus alert manager documentation](https://prometheus.io/docs/prometheus/latest/querying/api/#alerts) for more details about the endpoints below. |
| 157 | + |
| 158 | +<Message type="important"> |
| 159 | + You must use the [Cockpit API](https://www.scaleway.com/en/developers/api/cockpit/regional-api/#path-alert-manager-get-the-alert-manager) to retrieve the ID of the alert manager. |
| 160 | +</Message> |
| 161 | + |
| 162 | +<Concept> |
| 163 | + ## Alert manager endpoints |
| 164 | + |
| 165 | + Methods: `GET`, `POST`, and `DELETE`. |
| 166 | + |
| 167 | + - Path: `/alertmanager/*` |
| 168 | + - Path: `/api/v1/alerts` |
| 169 | +</Concept> |
0 commit comments