monitoring: scrape blackbox every 5m, alert 21 days
Some checks failed
Flake checks / Check (pull_request) Failing after 22s
Some checks failed
Flake checks / Check (pull_request) Failing after 22s
before certificate expiry
This commit is contained in:
parent
7775737202
commit
36c5073022
|
@ -199,8 +199,8 @@ lib.mapAttrsToList
|
|||
};
|
||||
*/
|
||||
cert_expiry = {
|
||||
condition = "(probe_ssl_earliest_cert_expiry - time())/(3600*24) < 30";
|
||||
description = "{{$labels.instance}}: The TLS certificate will expire in less than 30 days: {{$value}}s";
|
||||
condition = "(probe_ssl_earliest_cert_expiry - time())/(3600*24) < 21";
|
||||
description = "{{$labels.instance}}: The TLS certificate will expire in less than 21 days: {{$value}}s";
|
||||
};
|
||||
|
||||
# ignore devices that disabled S.M.A.R.T (example if attached via USB)
|
||||
|
|
|
@ -34,7 +34,6 @@ in
|
|||
blackbox = {
|
||||
enable = true;
|
||||
# Default port is 9115
|
||||
# Listen on 0.0.0.0, bet we only open the firewall for wg0
|
||||
openFirewall = false;
|
||||
|
||||
configFile = pkgs.writeTextFile {
|
||||
|
@ -71,7 +70,7 @@ in
|
|||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "blackbox";
|
||||
scrape_interval = "2m";
|
||||
scrape_interval = "5m";
|
||||
metrics_path = "/probe";
|
||||
params = {
|
||||
module = [ "http_2xx" ];
|
||||
|
|
Loading…
Reference in a new issue