34 lines
783 B
YAML
34 lines
783 B
YAML
#kind: Secret
|
|
#apiVersion: v1
|
|
#metadata:
|
|
# name: credentials
|
|
# namespace: grafana
|
|
#stringData:
|
|
# PROMETHEUS_USERNAME: root
|
|
# PROMETHEUS_PASSWORD: secret
|
|
#type: Opaque
|
|
---
|
|
apiVersion: grafana.integreatly.org/v1beta1
|
|
kind: GrafanaDatasource
|
|
metadata:
|
|
name: prometheus
|
|
spec:
|
|
#secrets:
|
|
# - credentials # Reference to the secret name
|
|
instanceSelector:
|
|
matchLabels:
|
|
dashboards: "grafana"
|
|
datasource:
|
|
name: prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
#basicAuth: true
|
|
url: http://prometheus:9090
|
|
isDefault: true
|
|
#user: ${PROMETHEUS_USERNAME}
|
|
jsonData:
|
|
"tlsSkipVerify": true
|
|
"timeInterval": "5s"
|
|
#secureJsonData:
|
|
# "password": ${PROMETHEUS_PASSWORD} # Notice the brakes around PROMETHEUS_PASSWORD
|
|
editable: true |