1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

fix: fix cube config

This commit is contained in:
RGBCube 2025-02-23 16:02:37 +03:00
parent 203496b971
commit 75681cf8d3
2 changed files with 5 additions and 3 deletions

View file

@ -21,11 +21,13 @@ in {
retentionTime = "1w";
scrapeConfigs = let
configToScrapeConfig = hostName: { hostConfig, ... }:
hostConfig.services.prometheus.exporters
configToScrapeConfig = hostName: { config, ... }: let
hostConfig = config;
in hostConfig.services.prometheus.exporters
|> filterAttrs (exporterName: exporterConfig:
exporterName != "minio" &&
exporterName != "unifi-poller" &&
exporterName != "tor" &&
exporterConfig.enable or false)
|> mapAttrsToList (exporterName: exporterConfig: {
job_name = "${exporterName}-${hostName}";