mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
hilarious hack to get std.noratrieb.dev deployments monitored
This commit is contained in:
parent
db714febbf
commit
9856757b52
2 changed files with 52 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue