feat(metrics): Add blackbox exporter

This commit is contained in:
Tristan Daniël Maat 2025-02-11 02:56:43 +08:00
parent 92f5040cbc
commit 07b5064a85
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 50 additions and 3 deletions
configuration/services/metrics

View file

@ -10,6 +10,20 @@ in
{
services.prometheus = {
exporters = {
blackbox = {
enable = true;
listenAddress = "127.0.0.1";
configFile = yaml.generate "blackbox.yaml" {
modules = {
http_2xx = {
prober = "http";
timeout = "5s";
http.preferred_ip_protocol = "ip4";
};
};
};
};
# Periodically check domain registration status
domain = {
enable = true;
@ -71,7 +85,6 @@ in
# TODO(tlater):
# - wireguard (?)
# - postgres (?)
# - blackbox (?) (curl to see if http and similar is up)
# - ssl_exporter (?)
};
}