Enable synapse metrics

This commit is contained in:
Paul-Henri Froidmont 2022-11-07 15:55:29 +01:00
parent 65eace8e53
commit b173d18275
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 11922 additions and 2 deletions

File diff suppressed because it is too large Load diff

View file

@ -68,6 +68,16 @@
];
}];
}
{
job_name = "synapse";
scrape_interval = "15s";
metrics_path = "/_synapse/metrics";
static_configs = [{
targets = [
"10.0.1.1:9000"
];
}];
}
];
};

View file

@ -122,10 +122,12 @@ in
settings = {
server_name = config.networking.domain;
enable_metrics = true;
listeners = [
{
port = 8008;
bind_addresses = [ "::1" ];
bind_addresses = [ "::1" "127.0.0.1" ];
type = "http";
tls = false;
x_forwarded = true;
@ -136,6 +138,13 @@ in
}
];
}
{
port = 9000;
bind_addresses = [ "0.0.0.0" ];
type = "metrics";
tls = false;
resources = [ ];
}
];
database = {

View file

@ -97,6 +97,6 @@
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
networking.firewall.allowedUDPPorts = [ 64738 ];
networking.firewall.interfaces."eth1".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
networking.firewall.interfaces."eth1".allowedTCPPorts = [ config.services.prometheus.exporters.node.port 9000 ];
}