17 lines
361 B
Nix
17 lines
361 B
Nix
{ cluster, ... }:
|
|
let
|
|
inherit (cluster.config.links) prometheus-ingest;
|
|
in
|
|
{
|
|
services.prometheus = {
|
|
enable = true;
|
|
listenAddress = prometheus-ingest.ipv4;
|
|
inherit (prometheus-ingest) port;
|
|
extraFlags = [ "--enable-feature=remote-write-receiver" ];
|
|
globalConfig = {
|
|
scrape_interval = "60s";
|
|
};
|
|
scrapeConfigs = [ ];
|
|
};
|
|
|
|
}
|