mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-19 19:30:28 +05:00
feat: synapse monitoring
This commit is contained in:
parent
8215ffde8a
commit
5a355b163a
|
@ -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" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,9 +21,11 @@ in {
|
|||
database = "matrix-synapse";
|
||||
};
|
||||
};
|
||||
enable_metrics = true;
|
||||
enable_registration = true;
|
||||
report_stats = true;
|
||||
listeners = [{
|
||||
listeners = [
|
||||
{
|
||||
bind_addresses = [ "127.0.0.1" ];
|
||||
port = 8008;
|
||||
type = "http";
|
||||
|
@ -33,7 +35,18 @@ in {
|
|||
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 = [
|
||||
|
|
Loading…
Reference in a new issue