rico0: scrape postgres_exporter data

This commit is contained in:
Adithya 2024-07-20 20:17:20 +05:30
parent c43ccffcb8
commit 3ef7bb543b
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -11,7 +11,16 @@ _: {
prometheus = { prometheus = {
enable = true; enable = true;
listenAddress = "127.0.0.1"; listenAddress = "127.0.0.1";
port = 9090;
scrapeConfigs = [ scrapeConfigs = [
{
job_name = "postgres";
scheme = "https";
metrics_path = "/postgres-metrics";
static_configs = [
{ targets = [ "wynne.labs.adtya.xyz" ]; }
];
}
{ {
job_name = "systemd"; job_name = "systemd";
scheme = "https"; scheme = "https";