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.
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.