planetary-social / ansible-scripts

Ansible automation scripts used at Planetary
MIT License
2 stars 3 forks source link

Metrics setup #31

Closed cooldracula closed 1 year ago

cooldracula commented 1 year ago

This PR brings in an initial metrics role, intended to set up the prometheus, grafana, and alertmanager services (like at prometheus.planetary.tools)

To make it work, we needed to generalise how the certbot-cloudflare role sets domains, so it can work for when you have multiple domains on a single host.

There is also a small addition of a flake.nix, for setting up a repo-specific dev environment. It only comes into play when you are using nix + direnv, and has no real impact on the code itself.