Add metrics for synapse

This commit is contained in:
2022-04-26 02:40:42 +01:00
parent 161f26b3f3
commit 64fd1667a2
3 changed files with 19 additions and 0 deletions

View File

@@ -8,6 +8,13 @@
services.caddy = {
enable = true;
virtualHosts = {
"http://metrics.town" = {
extraConfig = ''
reverse_proxy http://localhost:3000
'';
};
"matrix.broccoli.town" = {
extraConfig = ''
reverse_proxy /_matrix/* http://localhost:8008

View File

@@ -11,6 +11,7 @@
./caddy.nix
./synapse.nix
./syncthing.nix
./prometheus.nix
];
# Force disable the common boot loader

View File

@@ -13,6 +13,7 @@ in {
services.matrix-synapse = {
enable = true;
settings = {
enable_metrics = true;
server_name = "broccoli.town";
database = {
name = "psycopg2";
@@ -35,6 +36,16 @@ in {
}
];
}
{
port = 9000;
type = "metrics";
tls = false;
bind_addresses = [
"0.0.0.0"
];
resources = [
];
}
];
};
};