# {{ cephadm_managed }}
# See https://prometheus.io/docs/alerting/configuration/ for documentation.

global:
  resolve_timeout: 5m

route:
  receiver: 'default'
  routes:
    - group_by: ['alertname']
      group_wait: 10s
      group_interval: 10s
      repeat_interval: 1h
      receiver: 'ceph-dashboard'

receivers:
- name: 'default'
  webhook_configs:
{% for url in default_webhook_urls %}
  - url: '{{ url }}'
{% endfor %}
- name: 'ceph-dashboard'
  webhook_configs:
{% for url in dashboard_urls %}
  - url: '{{ url }}api/prometheus_receiver'
{% endfor %}
