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

13 lines
245 B
YAML

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