From 4497af20b2c21fec555927be4849e391b97facd7 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Mon, 8 Sep 2025 09:48:04 +0200 Subject: [PATCH] docs: fix Prometheus provisioning example (#110747) --- .../prometheus/configure/_index.md | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/sources/datasources/prometheus/configure/_index.md b/docs/sources/datasources/prometheus/configure/_index.md index b68219e3866..98cf92271fa 100644 --- a/docs/sources/datasources/prometheus/configure/_index.md +++ b/docs/sources/datasources/prometheus/configure/_index.md @@ -255,34 +255,34 @@ After you have provisioned a data source you cannot edit it. **Example of a Prometheus data source configuration:** - ```yaml - apiVersion: 1 +```yaml +apiVersion: 1 - datasources: - - name: Prometheus - type: prometheus - access: proxy - url: http://localhost:9090 - jsonData: - httpMethod: POST - manageAlerts: true - allowAsRecordingRulesTarget: true - prometheusType: Prometheus - prometheusVersion: 3.3.0 - cacheLevel: 'High' - disableRecordingRules: false - timeInterval: 10s # Prometheus scrape interval - incrementalQueryOverlapWindow: 10m - exemplarTraceIdDestinations: - # Field with internal link pointing to data source in Grafana. - # datasourceUid value can be anything, but it should be unique across all defined data source uids. - - datasourceUid: my_jaeger_uid - name: traceID +datasources: + - name: Prometheus + type: prometheus + access: proxy + url: http://localhost:9090 + jsonData: + httpMethod: POST + manageAlerts: true + allowAsRecordingRulesTarget: true + prometheusType: Prometheus + prometheusVersion: 3.3.0 + cacheLevel: 'High' + disableRecordingRules: false + timeInterval: 10s # Prometheus scrape interval + incrementalQueryOverlapWindow: 10m + exemplarTraceIdDestinations: + # Field with internal link pointing to data source in Grafana. + # datasourceUid value can be anything, but it should be unique across all defined data source uids. + - datasourceUid: my_jaeger_uid + name: traceID - # Field with external link. - - name: traceID - url: 'http://localhost:3000/explore?orgId=1&left=%5B%22now-1h%22,%22now%22,%22Jaeger%22,%7B%22query%22:%22$${__value.raw}%22%7D%5D' - ``` + # Field with external link. + - name: traceID + url: 'http://localhost:3000/explore?orgId=1&left=%5B%22now-1h%22,%22now%22,%22Jaeger%22,%7B%22query%22:%22$${__value.raw}%22%7D%5D' +``` ## Azure authentication settings