added some boilerplate for grafana synapse integration

This commit is contained in:
chloe 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" ];
};
}
];
};
}