mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-02-23 06:43:57 +01:00
added some boilerplate for grafana synapse integration
This commit is contained in:
parent
3e87818160
commit
d306674b00
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue