infrastructure/roles/monitoring
saibotk 70341479b1
!chore: Migrate to docker_compose_v2
This now uses the new docker compose plugin.
Because we used docker-compose v1.24.1 to this point due to centos needing to install C toolchains to build never versions, the newest Docker v25 breaks compatibility and we need to use something newer.
2024-02-22 00:37:48 +01:00
..
defaults automation: Update monitoring-grafana Docker tag to v10.3.3 2024-02-13 21:04:53 +00:00
meta ansible-lint: Fix various new issues 2022-11-02 21:57:13 +01:00
tasks !chore: Migrate to docker_compose_v2 2024-02-22 00:37:48 +01:00
templates monitoring: fix grafana oauth login 2023-09-20 00:11:54 +02:00
README.md README: Add note about dependencies 2021-01-02 10:56:38 +01:00

Monitoring

This will setup an InfluxDB and a Grafana instance using their official docker container and traefik as a reverse proxy. This also will install a grafana-renderer, which is used to render graphs to be sent via alerts etc.

Requirements

NOTE: You need the python-influxdb package installed locally with the Ansible client, to run this role!

You will need to have docker, docker-compose and traefik installed or declared as dependencies with their respective roles.

This role assumes that you have setup traefik with an endpoint called websecure.

Role Variables

Please look at the defaults/main.yml for all available variables and their description.

Note: Lines that are commented out via # are usually still valid/used variables, but they are not defined by default, so they might enable a feature, when uncommenting/defining them!

Global variables, that are used:

  • proxy_network: Defined by the local traefik installation, this is the shared proxy network used by traefik to reach the containers. (optional)
  • proxy_hiddenservice: Defined by the local traefik installation, this is used to generate the alt-svc header for the alternative Tor domain. (optional)

Dependencies

  • docker
  • docker-compose
  • traefik

License

GPL-3.0-only