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

13 lines
228 B
YAML
Raw Normal View History

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