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}" ];
}];
}
{
job_name = "synapse";
metrics_path = "/_synapse/metrics";
static_configs = [{
targets = [ "127.0.0.1:55013" ];
}];
}
];
};
}

View file

@ -21,19 +21,32 @@ in {
database = "matrix-synapse";
};
};
enable_metrics = true;
enable_registration = true;
report_stats = true;
listeners = [{
bind_addresses = [ "127.0.0.1" ];
port = 8008;
type = "http";
tls = false;
x_forwarded = true;
resources = [{
names = [ "client" "federation" ];
compress = false;
}];
}];
listeners = [
{
bind_addresses = [ "127.0.0.1" ];
port = 8008;
type = "http";
tls = false;
x_forwarded = true;
resources = [{
names = [ "client" "federation" ];
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";
};
extraConfigFiles = [