homelab-nomad/core/metrics/grafana/provisioning/datasources/prometheus.yml
2023-03-24 16:32:37 -07:00

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 }}