No description
- Jinja 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG |
||
| .forgejo/workflows | ||
| changelogs | ||
| extensions/molecule | ||
| meta | ||
| roles | ||
| .ansible-lint | ||
| .copier-answers.yml | ||
| .gitignore | ||
| .gitleaks.toml | ||
| .pre-commit-config.yaml | ||
| .yamllint | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| galaxy.yml | ||
| LICENSE | ||
| README.md | ||
| ruff.toml | ||
| SECURITY.md | ||
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.