Add metrics for synapse
This commit is contained in:
@@ -8,6 +8,13 @@
|
|||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
||||||
|
"http://metrics.town" = {
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy http://localhost:3000
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
"matrix.broccoli.town" = {
|
"matrix.broccoli.town" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy /_matrix/* http://localhost:8008
|
reverse_proxy /_matrix/* http://localhost:8008
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
./caddy.nix
|
./caddy.nix
|
||||||
./synapse.nix
|
./synapse.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
./prometheus.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Force disable the common boot loader
|
# Force disable the common boot loader
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ in {
|
|||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
enable_metrics = true;
|
||||||
server_name = "broccoli.town";
|
server_name = "broccoli.town";
|
||||||
database = {
|
database = {
|
||||||
name = "psycopg2";
|
name = "psycopg2";
|
||||||
@@ -35,6 +36,16 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
port = 9000;
|
||||||
|
type = "metrics";
|
||||||
|
tls = false;
|
||||||
|
bind_addresses = [
|
||||||
|
"0.0.0.0"
|
||||||
|
];
|
||||||
|
resources = [
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user