19 lines
488 B
YAML
19 lines
488 B
YAML
---
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Blocky logs
|
|
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-server" -}}
|
|
url: {{ .Address }}:{{ .Port }}
|
|
{{- end }}
|
|
# TODO: Looking for an acl friendly way to expose this since it's a variable in blocky setup
|
|
database: blocky
|
|
type: mysql
|
|
isDefault: false
|
|
version: 1
|
|
{{ with nomadVar "nomad/jobs/grafana" -}}
|
|
user: {{ .db_user_ro }}
|
|
secureJsonData:
|
|
password: {{ .db_pass_ro }}
|
|
{{- end }}
|