# Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - localhost:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - rules.yml - archlinux.yml - backup.yml scrape_configs: - job_name: "node_exporter" static_configs: {% for host in groups['prometheus_clients'] %} - targets: ["{{ hostvars[host]['wireguard_address'] }}:9100"] labels: instance: "{{ host }}" {% endfor %} - targets: ["localhost:9100"] labels: instance: "xenrox.net" - job_name: "pushgateway" honor_labels: true static_configs: - targets: ["push.xenrox.net"] basic_auth: username: "{{ prometheus_secrets['pushgateway_user'] }}" password: "{{ prometheus_secrets['pushgateway_pass'] }}" - job_name: "minio" bearer_token: "{{ minio_jwt }}" metrics_path: /minio/v2/metrics/cluster scheme: https static_configs: - targets: ['minio.xenrox.net']