Skip to content

Commit

Permalink
Fix example prometheus datasource
Browse files Browse the repository at this point in the history
Example was not working. Needed to change some fields
  • Loading branch information
Tualua authored Oct 1, 2024
1 parent 34ac85d commit 89cd600
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/datasources.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
secretKeyRef:
name: "credentials"
key: "PROMETHEUS_USERNAME"
- targetPath: "secureJsonData.password"
- targetPath: "secureJsonData.basicAuthPassword"
valueFrom:
secretKeyRef:
name: "credentials"
Expand All @@ -48,12 +48,12 @@ spec:
basicAuth: true
url: http://prometheus-service:9090
isDefault: true
user: ${PROMETHEUS_USERNAME}
basicAuthUser: ${PROMETHEUS_USERNAME}
jsonData:
"tlsSkipVerify": true
"timeInterval": "5s"
secureJsonData:
"password": ${PROMETHEUS_PASSWORD} # Notice the brakes around PROMETHEUS_PASSWORD
"basicAuthPassword": ${PROMETHEUS_PASSWORD} # Notice the brakes around PROMETHEUS_PASSWORD
```
**NOTE:** The secret must exist in the same namespace as the datasource.
Expand Down

0 comments on commit 89cd600

Please sign in to comment.