mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Enable synapse metrics
This commit is contained in:
parent
65eace8e53
commit
b173d18275
4 changed files with 11922 additions and 2 deletions
11901
modules/dashboards/synapse.json
Normal file
11901
modules/dashboards/synapse.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -68,6 +68,16 @@
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "synapse";
|
||||||
|
scrape_interval = "15s";
|
||||||
|
metrics_path = "/_synapse/metrics";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [
|
||||||
|
"10.0.1.1:9000"
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,10 +122,12 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
server_name = config.networking.domain;
|
server_name = config.networking.domain;
|
||||||
|
|
||||||
|
enable_metrics = true;
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
{
|
{
|
||||||
port = 8008;
|
port = 8008;
|
||||||
bind_addresses = [ "::1" ];
|
bind_addresses = [ "::1" "127.0.0.1" ];
|
||||||
type = "http";
|
type = "http";
|
||||||
tls = false;
|
tls = false;
|
||||||
x_forwarded = true;
|
x_forwarded = true;
|
||||||
|
|
@ -136,6 +138,13 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
port = 9000;
|
||||||
|
bind_addresses = [ "0.0.0.0" ];
|
||||||
|
type = "metrics";
|
||||||
|
tls = false;
|
||||||
|
resources = [ ];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
database = {
|
database = {
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,6 @@
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 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 ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue