1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 02:27:44 +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}";

View file

@ -7,7 +7,7 @@ in {
inherit (config.networking.ipv4) address prefixLength;
}];
ipv6.addresses = optionals (config.networking.ipv4.address != null) [{
ipv6.addresses = optionals (config.networking.ipv6.address != null) [{
inherit (config.networking.ipv6) address prefixLength;
}];
};