mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-20 03:40:29 +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}" ];
|
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";
|
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 = [
|
||||||
|
|
Loading…
Reference in a new issue