Some checks failed
deploy / ansible (push) Failing after 41s
The VPC ping sweep misses a server that drops ICMP or is not attached to the private network. Prometheus now lists the project's servers from the Hetzner API with a read-only token and marks each one known or not against monitoring_hcloud_servers. Nothing is scraped from the servers: every discovered target is Prometheus itself with all samples dropped, which leaves one `up` series per server. A second alert fires when the list stops updating, so a revoked token does not silently disable the check. Assisted-by: Claude:fable-5-2
39 lines
1.7 KiB
YAML
39 lines
1.7 KiB
YAML
---
|
|
# Monitoring: Prometheus, Loki and Grafana on asxpio-ops; node_exporter,
|
|
# cAdvisor and Alloy on both hosts. Scrapes and log shipping use the VPC.
|
|
|
|
# renovate: datasource=docker depName=prom/prometheus
|
|
monitoring_prometheus_version: "v3.16.0"
|
|
# renovate: datasource=docker depName=grafana/grafana
|
|
monitoring_grafana_version: "13.3.1"
|
|
# renovate: datasource=docker depName=grafana/loki
|
|
monitoring_loki_version: "3.7.10"
|
|
# renovate: datasource=docker depName=grafana/alloy
|
|
monitoring_alloy_version: "v1.22.0"
|
|
# renovate: datasource=docker depName=prom/node-exporter
|
|
monitoring_node_exporter_version: "v1.12.1"
|
|
# renovate: datasource=docker depName=ghcr.io/google/cadvisor
|
|
monitoring_cadvisor_version: "v0.60.6"
|
|
# renovate: datasource=docker depName=prom/blackbox-exporter
|
|
monitoring_blackbox_version: "v0.29.1"
|
|
# renovate: datasource=docker depName=quay.io/prometheuscommunity/postgres-exporter
|
|
monitoring_postgres_exporter_version: "v0.20.1"
|
|
|
|
monitoring_metrics_retention: 90d
|
|
monitoring_logs_retention: 17520h # 2 years, chunks in S3 (asxpio-loki-main)
|
|
monitoring_alert_email: me@asxp.io
|
|
|
|
# Agents listen on the host's VPC address only
|
|
monitoring_node_exporter_port: 9100
|
|
monitoring_cadvisor_port: 9180
|
|
monitoring_loki_port: 3100
|
|
monitoring_textfile_dir: /var/lib/node_exporter/textfile
|
|
|
|
monitoring_grafana_host: gf.asxp.io
|
|
monitoring_grafana_admin_password: "{{ vault_grafana_admin_password }}"
|
|
monitoring_forgejo_metrics_token: "{{ vault_forgejo_metrics_token }}"
|
|
|
|
# Read-only Hetzner Cloud token: Prometheus lists the project's servers
|
|
# and alerts on one that is not named here.
|
|
monitoring_hcloud_token: "{{ vault_hcloud_ro_token }}"
|
|
monitoring_hcloud_servers: [asxpio-ops, asxpio-services]
|