added some boilerplate for grafana synapse integration

This commit is contained in:
Harry 2024-07-22 10:49:23 +02:00
parent 3e87818160
commit d306674b00
2 changed files with 49 additions and 5 deletions

View file

@ -3,11 +3,23 @@
services.prometheus = {
enable = true;
port = 9001;
};
exporters = {
node = {
enable = true;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
port = 9002;
};
};
scrapeConfigs = [
{
job_name = "synapse";
scrape_interval = "15s";
metrics_path = "/_synapse/metrics";
static_configs = {
targets = [ "localhost:8008" ];
};
}
];
};
}

View file

@ -38,11 +38,17 @@ in
names = [
"client"
"federation"
"metrics"
];
compress = true;
}
];
}
{
port = 9000;
type = "metrics";
bind_addresses = ["::1" "0.0.0.0" ]
}
];
};
@ -57,6 +63,32 @@ in
};
/*
services.mautrix-discord = {
enable = true;
environmentFile = "";
settings = {
homeserver = {
address = "http://localhost:8008";
domain = "hypervirtual.world";
};
appservice = {
provisioning.enabled = false;
id = "discord";
public = {
};
database = "";
};
};
};
services.mautrix-whatsapp = { };
*/
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;