feat(prometheus): monitor garage

This commit is contained in:
sinavir 2024-04-23 23:22:28 +02:00
parent 3f928ce90b
commit 9b6536f529
5 changed files with 7 additions and 1 deletions

View file

@ -50,7 +50,7 @@ in
k2v_api.api_bind_addr = "[::]:3904";
admin.api_bind_addr = "0.0.0.0:3903";
admin.api_bind_addr = "127.0.0.1:3903";
};
environmentFile = config.age.secrets."garage-environment_file".path;

View file

@ -69,6 +69,11 @@ in
metrics_path = "/ups_metrics";
static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ];
}
{
job_name = "garage";
static_configs = [ { targets = [ "localhost:3903" ]; } ];
bearer_token_file = config.age.secrets."prometheus-garage_api".path;
}
];
};

Binary file not shown.

View file

@ -17,5 +17,6 @@ lib.setDefault { inherit publicKeys; } [
"peertube-service_environment_file"
"peertube-smtp_password_file"
"prometheus-web_config_file"
"prometheus-garage_api"
"prometheus-uptime-kuma-apikey"
]