2023-06-03 01:33:51 +03:00
|
|
|
{ cluster, ... }:
|
2022-05-15 01:34:09 +03:00
|
|
|
let
|
2023-06-03 01:33:51 +03:00
|
|
|
inherit (cluster.config.links) prometheus-ingest;
|
2022-05-15 01:34:09 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
2023-05-26 17:26:24 +03:00
|
|
|
listenAddress = prometheus-ingest.ipv4;
|
|
|
|
inherit (prometheus-ingest) port;
|
2022-06-19 00:24:12 +03:00
|
|
|
extraFlags = [ "--enable-feature=remote-write-receiver" ];
|
2022-05-15 01:34:09 +03:00
|
|
|
globalConfig = {
|
|
|
|
scrape_interval = "60s";
|
|
|
|
};
|
2023-06-02 19:33:03 +03:00
|
|
|
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
|
|
|
}
|