Docs: Prometheus yaml file needs to be fixed (#72654)

fixed yaml
This commit is contained in:
lwandz13
2023-08-01 13:24:44 -05:00
committed by GitHub
parent 74f3352770
commit 65febbc8ec
+21 -23
View File
@@ -59,31 +59,29 @@ Once you have provisioned a data source you cannot edit it.
```yaml ```yaml
apiVersion: 1 apiVersion: 1
datasources: datasources:
- name: Prometheus - name: Prometheus
type: prometheus type: prometheus
# Access mode - proxy (server in the UI) or direct (browser in the UI). access: proxy
access: proxy # Access mode - proxy (server in the UI) or direct (browser in the UI).
url: http://localhost:9090 url: http://localhost:9090
jsonData: jsonData:
httpMethod: POST httpMethod: POST
manageAlerts: true manageAlerts: true
prometheusType: Prometheus prometheusType: Prometheus
prometheusVersion: 2.44.0 prometheusVersion: 2.44.0
cacheLevel: 'High' cacheLevel: 'High'
disableRecordingRules: false disableRecordingRules: false
incrementalQueryOverlapWindow: 10m incrementalQueryOverlapWindow: 10m
exemplarTraceIdDestinations: exemplarTraceIdDestinations:
# Field with internal link pointing to data source in Grafana. # 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 value can be anything, but it should be unique across all defined data source uids.
- datasourceUid: my_jaeger_uid - datasourceUid: my_jaeger_uid
name: traceID name: traceID
# Field with external link.
# Field with external link. - name: traceID
- 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'
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'
``` ```
## View Grafana metrics with Prometheus ## View Grafana metrics with Prometheus