Commit graph iac/ansible/inventory/group_vars/all/monitoring.yaml
Author SHA1 Message Date
a47c008635 Merge pull request 'deps: Update grafana/grafana Docker tag to v13' (#9) from renovate/major-grafana-monorepo into main
Some checks failed
deploy / ansible (push) Has been cancelled
Reviewed-on: #9
2026-11-13 14:00:26 +00:00
a216bd96c1 deps: Update grafana/grafana Docker tag to v13
All checks were successful
deploy / ansible (push) Successful in 3m49s
2026-11-13 05:17:52 +00:00
ff654edc15 deps: Update grafana/alloy Docker tag to v1.22.0
All checks were successful
deploy / ansible (push) Successful in 3m56s
2026-11-13 05:17:37 +00:00
3b25f4ae25
monitoring: keep logs for two years
All checks were successful
deploy / ansible (push) Successful in 10m21s
With chunks in object storage, space on ops no longer limits log
retention; two years of logs cost cents a month in S3.

Assisted-by: Claude:opus-5-5
2026-11-13 07:09:18 +04:00
27d4b73eb0
monitoring: keep Loki chunks in S3, 90 days of logs and metrics
Some checks failed
deploy / ansible (push) Has been cancelled
ops has 12 GB free on a 38 GB disk and the Traefik access log alone
is ~600 MB, so logs can't grow there. From 2026-11-14 Loki writes
chunks and index to Hetzner Object Storage (asxpio-loki-main, hel1)
with the existing project key, passed through loki.env and
-config.expand-env. Today's filesystem period ages out by retention.

Log retention goes from 14 to 90 days. Prometheus metrics are small
(~20 MB so far) and stay local, now for 90 days instead of 30.

Assisted-by: Claude:opus-5-5
2026-11-13 07:04:00 +04:00
e20f5a7d07
ansible: monitoring with Prometheus, Loki and Grafana
All checks were successful
deploy / ansible (push) Successful in 7m23s
Nothing watched the servers: tonight's asxpio crash loop was found by
hand. On asxpio-ops, Prometheus (30 days), Loki (14 days) and Grafana
at gf.asxp.io (WireGuard only), with blackbox_exporter probing every
service from outside and postgres_exporter. On both hosts node_exporter
and cAdvisor on the VPC address, and Alloy shipping container logs, the
journal and Traefik's access log to Loki over the VPC.

Traefik and Forgejo expose their metrics; restic and the bucket replica
record their last success for node_exporter. Dashboards: an overview as
home, plus hosts, containers, Traefik, probes, Postgres and logs.
Alerts by email to me@asxp.io: host or service down, certificate under
14 days, disk or memory nearly full, a container restart-looping,
Postgres down, backup or replica stale.

Assisted-by: Claude:opus-5-5
2026-11-13 04:59:11 +04:00