hilarious hack to get std.noratrieb.dev deployments monitored

This commit is contained in:
nora 2025-08-06 21:41:27 +02:00
parent db714febbf
commit 9856757b52
2 changed files with 52 additions and 0 deletions

View file

@ -45,9 +45,23 @@
job_name = "pretense";
static_configs = [{ targets = map (name: "${name}.local:9150") (builtins.attrNames networkingConfig); }];
}
{
job_name = "std-internal-docs-status";
scrape_interval = "1h";
static_configs = [{ targets = [ "localhost:7846" ]; }];
}
];
};
systemd.services.prometheus-exporter-std-internal-docs-status = {
description = "Cursed hack to get the GitHub deployment status of std.noratrieb.dev";
serviceConfig = {
DynamicUser = true;
ExecStart = "${lib.getExe pkgs.nodejs_24} ${./prometheus-exporter-std-internal-docs.mjs}";
};
wantedBy = [ "multi-user.target" ];
};
age.secrets.grafana_admin_password.file = ../../secrets/grafana_admin_password.age;
systemd.services.grafana.serviceConfig.EnvironmentFile = config.age.secrets.grafana_admin_password.path;
services.grafana = {