forked from DGNum/infrastructure
feat(monitoring): Add uptime-kuma to prometheus targets
This commit is contained in:
parent
c6fe6b5891
commit
60ee43b577
3 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,15 @@ in
|
|||
job_name = "node_exporter";
|
||||
static_configs = nodeExporterConfigs;
|
||||
}
|
||||
{
|
||||
job_name = "uptime_kuma";
|
||||
scheme = "https";
|
||||
static_configs = [ { targets = [ "status.dgnum.eu" ]; } ];
|
||||
basic_auth = {
|
||||
username = "prometheus";
|
||||
password_file = config.age.secrets."prometheus-uptime-kuma-apikey".path;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
BIN
machines/storage01/secrets/prometheus-uptime-kuma-apikey
Normal file
BIN
machines/storage01/secrets/prometheus-uptime-kuma-apikey
Normal file
Binary file not shown.
|
@ -17,4 +17,5 @@ lib.setDefault { inherit publicKeys; } [
|
|||
"peertube-service_environment_file"
|
||||
"peertube-smtp_password_file"
|
||||
"prometheus-web_config_file"
|
||||
"prometheus-uptime-kuma-apikey"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue