forked from DGNum/infrastructure
feat(prometheus): monitor garage
This commit is contained in:
parent
3f928ce90b
commit
9b6536f529
5 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,7 @@ in
|
||||||
|
|
||||||
k2v_api.api_bind_addr = "[::]:3904";
|
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;
|
environmentFile = config.age.secrets."garage-environment_file".path;
|
||||||
|
|
|
@ -69,6 +69,11 @@ in
|
||||||
metrics_path = "/ups_metrics";
|
metrics_path = "/ups_metrics";
|
||||||
static_configs = [ { targets = [ "100.80.255.180:9199" ]; } ];
|
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.
BIN
machines/storage01/secrets/prometheus-garage_api
Normal file
BIN
machines/storage01/secrets/prometheus-garage_api
Normal file
Binary file not shown.
|
@ -17,5 +17,6 @@ lib.setDefault { inherit publicKeys; } [
|
||||||
"peertube-service_environment_file"
|
"peertube-service_environment_file"
|
||||||
"peertube-smtp_password_file"
|
"peertube-smtp_password_file"
|
||||||
"prometheus-web_config_file"
|
"prometheus-web_config_file"
|
||||||
|
"prometheus-garage_api"
|
||||||
"prometheus-uptime-kuma-apikey"
|
"prometheus-uptime-kuma-apikey"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue