mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
It needs to match Prometheus' scrape_interval setting, so $__rate_interval does not drop below the minimum interval.
35 lines
702 B
Django/Jinja
35 lines
702 B
Django/Jinja
apiVersion: 1
|
|
|
|
datasources:
|
|
{% if grafana_anonymous_access %}
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
basicAuth: true
|
|
basicAuthUser: {{ vault_prometheus_user }}
|
|
jsonData:
|
|
timeInterval: 1m
|
|
secureJsonData:
|
|
basicAuthPassword: {{ vault_prometheus_passwd }}
|
|
url: http://{{ prometheus_domain }}:9090
|
|
{% else %}
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://localhost:9090
|
|
jsonData:
|
|
timeInterval: 1m
|
|
- 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 %}
|