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:
parent
203496b971
commit
75681cf8d3
2 changed files with 5 additions and 3 deletions
|
@ -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}";
|
||||
|
|
|
@ -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;
|
||||
}];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue