homelab-nomad/core/metrics/grafana/provisioning/datasources/prometheus.yml

13 lines
245 B
YAML
Raw Normal View History

---
apiVersion: 1
datasources:
2023-03-24 18:24:36 +00:00
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "prometheus" -}}
- name: Prometheus
2023-03-24 18:24:36 +00:00
url: http://{{ .Address }}:{{ .Port }}
type: prometheus
access: proxy
isDefault: true
version: 1
2023-03-24 18:24:36 +00:00
{{- end }}