mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Grafana v8.2.0 added support for Prometheus's Alertmanager[1] which can be used with the Unified Alerting added in v8.0.0[2]. [1] https://github.com/grafana/grafana/releases/tag/v8.2.0 [2] https://grafana.com/blog/2021/06/08/grafana-8.0-unified-grafana-and-prometheus-alerts-live-streaming-new-visualizations-and-more/
31 lines
636 B
Django/Jinja
31 lines
636 B
Django/Jinja
apiVersion: 1
|
|
|
|
datasources:
|
|
{% if grafana_anonymous_access %}
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
basicAuth: true
|
|
basicAuthUser: {{ vault_prometheus_user }}
|
|
secureJsonData:
|
|
basicAuthPassword: {{ vault_prometheus_passwd }}
|
|
url: http://{{ prometheus_domain }}:9090
|
|
{% else %}
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://localhost:9090
|
|
- name: Loki
|
|
type: loki
|
|
access: proxy
|
|
url: http://localhost:3100
|
|
jsonData:
|
|
manageAlerts: false
|
|
- name: Alertmanager
|
|
type: alertmanager
|
|
access: proxy
|
|
url: http://localhost:9093
|
|
jsonData:
|
|
implementation: prometheus
|
|
{% endif %}
|