feat: synapse monitoring

This commit is contained in:
Ivan R. 2024-03-04 20:52:33 +05:00
parent 8215ffde8a
commit 5a355b163a
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 31 additions and 11 deletions

View file

@ -18,6 +18,13 @@
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ]; targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}]; }];
} }
{
job_name = "synapse";
metrics_path = "/_synapse/metrics";
static_configs = [{
targets = [ "127.0.0.1:55013" ];
}];
}
]; ];
}; };
} }

View file

@ -21,9 +21,11 @@ in {
database = "matrix-synapse"; database = "matrix-synapse";
}; };
}; };
enable_metrics = true;
enable_registration = true; enable_registration = true;
report_stats = true; report_stats = true;
listeners = [{ listeners = [
{
bind_addresses = [ "127.0.0.1" ]; bind_addresses = [ "127.0.0.1" ];
port = 8008; port = 8008;
type = "http"; type = "http";
@ -33,7 +35,18 @@ in {
names = [ "client" "federation" ]; names = [ "client" "federation" ];
compress = false; compress = false;
}]; }];
}
{
bind_addresses = [ "127.0.0.1" ];
port = 55013;
type = "metrics";
tls = false;
resources = [{
names = [ "metrics" ];
compress = false;
}]; }];
}
];
signing_key_path = "/var/lib/matrix-synapse/matrix.comfycamp.space.signing.key"; signing_key_path = "/var/lib/matrix-synapse/matrix.comfycamp.space.signing.key";
}; };
extraConfigFiles = [ extraConfigFiles = [