depot/cluster/services/monitoring/server.nix

18 lines
361 B
Nix
Raw Normal View History

{ cluster, ... }:
2022-05-15 01:34:09 +03:00
let
inherit (cluster.config.links) prometheus-ingest;
2022-05-15 01:34:09 +03:00
in
{
services.prometheus = {
enable = true;
listenAddress = prometheus-ingest.ipv4;
inherit (prometheus-ingest) port;
extraFlags = [ "--enable-feature=remote-write-receiver" ];
2022-05-15 01:34:09 +03:00
globalConfig = {
scrape_interval = "60s";
};
scrapeConfigs = [ ];
2022-05-15 01:34:09 +03:00
};
2022-05-16 01:09:07 +03:00
2022-05-15 01:34:09 +03:00
}