homelab-nomad/core/grafana/provisioning/datasources/mysql.yml

17 lines
391 B
YAML
Raw Permalink Normal View History

2022-11-12 00:21:17 +00:00
---
apiVersion: 1
datasources:
- name: Blocky logs
url: 127.0.0.1:3306
2023-03-24 18:24:36 +00:00
# TODO: Looking for an acl friendly way to expose this since it's a variable in blocky setup
database: blocky
2022-11-12 00:21:17 +00:00
type: mysql
isDefault: false
version: 1
2023-03-24 18:24:36 +00:00
{{ with nomadVar "nomad/jobs/grafana" -}}
user: {{ .db_user_ro }}
2022-11-12 00:21:17 +00:00
secureJsonData:
2023-03-24 18:24:36 +00:00
password: {{ .db_pass_ro }}
{{- end }}