Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions assets/grafana/grafana-datasource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,44 @@
version: 1
# <bool> allow users to edit datasources from the UI.
editable: true
# <string, required> name of the datasource. Required
- name: pxb-prometheus
# <string, required> datasource type. Required
type: prometheus
# <string, required> access mode. direct or proxy. Required
access: proxy
# <int> org id. will default to orgId 1 if not specified
orgId: 1
# <string> url
url: http://px-backup-dashboard-prometheus.central.svc.cluster.local:9090
# <string> database password, if used
password:
# <string> database user, if used
user:
# <string> database name, if used
database:
# <bool> enable/disable basic auth
basicAuth: true
# <string> basic auth username
basicAuthUser: admin
# <string> basic auth password
basicAuthPassword: foobar
# <bool> enable/disable with credentials headers
withCredentials:
# <bool> mark as default datasource. Max one per org
isDefault:
# <map> fields that will be converted to json and stored in json_data
jsonData:
graphiteVersion: "1.1"
tlsAuth: false
tlsAuthWithCACert: false
# <string> json object of data that will be encrypted.
secureJsonData:
basicAuthPassword: "<PXB_PROMETHEUS_PASSWORD>"
tlsCACert: "..."
tlsClientCert: "..."
tlsClientKey: "..."
version: 1
# <bool> allow users to edit datasources from the UI.
editable: true

6 changes: 6 additions & 0 deletions assets/grafana/grafana-ocp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
mountPath: /var/lib/grafana/dashboards
- name: grafana-source-config
mountPath: /etc/grafana/provisioning/datasources
env:
- name: GF_SECURITY_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: grafana-admin-secret
key: admin-password
serviceAccountName: grafana
volumes:
- name: grafana-source-config
Expand Down
6 changes: 6 additions & 0 deletions assets/grafana/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
mountPath: /var/lib/grafana/dashboards
- name: grafana-source-config
mountPath: /etc/grafana/provisioning/datasources
env:
- name: GF_SECURITY_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: grafana-admin-secret
key: admin-password
volumes:
- name: grafana-source-config
configMap:
Expand Down
Loading
Loading