No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oliver.maklott 023f7e3224
All checks were successful
ci / units (push) Successful in 0s
ci / sanity (push) Successful in 2s
ci / build (push) Successful in 1s
ci / lint (push) Successful in 8s
ci / molecule (push) Successful in 12m34s
release / release (push) Successful in 2s
Release 0.7.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
2026-11-30 09:19:01 +00:00
.forgejo/workflows belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
changelogs Release 0.7.0 2026-11-30 09:19:01 +00:00
extensions/molecule QC: Grafana's password not on sudo's log; HostSilent stays 2026-11-30 07:48:52 +00:00
meta belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
roles QC: Grafana's password not on sudo's log; HostSilent stays 2026-11-30 07:48:52 +00:00
.ansible-lint belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
.copier-answers.yml belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
.gitignore belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
.gitleaks.toml belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
.pre-commit-config.yaml belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
.yamllint belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
CHANGELOG.md Release 0.7.0 2026-11-30 09:19:01 +00:00
CONTRIBUTING.md belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
galaxy.yml Release 0.7.0 2026-11-30 09:19:01 +00:00
LICENSE belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
README.md belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
ruff.toml belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00
SECURITY.md belowtoxic.monitoring 0.1.0: the monitoring host and the agent 2026-11-29 16:02:06 +00:00

belowtoxic.monitoring

Monitoring: Prometheus with Thanos on object storage, Loki, Alertmanager, Grafana and blackbox_exporter on one host; Grafana Alloy on every host

Part of the belowtoxic-ansible infrastructure code. All environment-specific data (addresses, hosts, credentials) comes from OpenBao and the Hetzner APIs at runtime - nothing in this repository is specific to a deployment.

Installation

# requirements.yml
collections:
  - name: https://git.belowtoxic.cloud/belowtoxic-ansible/collection-monitoring.git
    type: git
    version: v0.1.0
ansible-galaxy collection install -r requirements.yml

Content

Role Does
belowtoxic.monitoring.monitoring The monitoring host: Prometheus, Thanos (history in object storage), Loki, Alertmanager, Grafana, blackbox_exporter
belowtoxic.monitoring.alloy Grafana Alloy on every host: metrics, local probes and the journal to the monitoring host; there also the push gateway

Needs belowtoxic.base (files on hosts without Python) and Docker on the hosts (Flatcar has it).

 every host                      monitoring host (hub of the monitoring network)
 ----------                      ------------------------------------------------
 Alloy  --- push (wg2) --->  Alloy gateway --> Prometheus --> Thanos sidecar --+
  node, units, probes,        (write only)      alerts          |              |
  journal                          |                            v              v
                                   +------------> Loki ----> S3 bucket <-- Thanos store/compact
                                                                ^              |
                         Grafana --> Thanos query, Loki, Alertmanager <--------+
                         (OIDC)      Alertmanager --> mail, webhook, dead man's switch

Members can only write: Prometheus, Loki and the rest listen on loopback; the gateway accepts pushes and answers no queries.

Development

git clone https://git.belowtoxic.cloud/belowtoxic-ansible/toolchain.git ../toolchain
eval "$(../toolchain/bin/bt-ci-setup)"   # pinned toolchain, same as CI
pre-commit install
bt-ci lint && bt-ci sanity && bt-ci units

See CONTRIBUTING.md.

License

GPL-3.0-or-later, see LICENSE.