mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2024-10-23 13:13:29 +02:00
26 lines
441 B
Nix
26 lines
441 B
Nix
{ config, ... }:
|
|
{
|
|
|
|
services.prometheus = {
|
|
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" ];
|
|
};
|
|
}
|
|
];
|
|
|
|
};
|
|
}
|