Files
mgmt/modules/grafana/files/prometheus.yaml.tmpl
James Shubin bdc46648ff modules: Add prometheus and grafana modules
These are really stubs, and need some more testing and integration, but
there were some people who expressed interest in this, so let's push it
early.
2025-02-03 04:46:44 -05:00

30 lines
725 B
Cheetah

apiVersion: 1
#deleteDatasources:
# - name: "{{ .name }}"
# orgId: 1
# Mark provisioned data sources for deletion if they are no longer in a provisioning file.
# It takes no effect if data sources are already listed in the deleteDatasources section.
prune: true
datasources:
{{ if .comment -}}
#
# {{ .comment }}
#
{{ end }}
- name: "{{ .name }}"
type: prometheus
access: proxy
# Access mode - proxy (server in the UI) or direct (browser in the UI).
url: "{{ .url }}"
jsonData:
httpMethod: POST
manageAlerts: true
prometheusType: Prometheus
#prometheusVersion: 2.44.0
#cacheLevel: 'High'
#disableRecordingRules: false
#incrementalQueryOverlapWindow: 10m