nixos/prometheus-snmp-exporter: switch to new config syntax

Introduced with version 0.23.0, see
https://github.com/prometheus/snmp_exporter/blob/b75fc6b839ee3f3ccbee68bee55f1ae99555084a/auth-split-migration.md
This commit is contained in:
WilliButz
2024-01-17 20:32:45 +01:00
parent d4492abe66
commit a8ea9fe492
2 changed files with 8 additions and 8 deletions
@@ -24,11 +24,9 @@ in
Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
'';
example = {
"default" = {
"version" = 2;
"auth" = {
"community" = "public";
};
auths.public_v2 = {
community = "public";
version = 2;
};
};
};
+5 -3
View File
@@ -1392,9 +1392,11 @@ let
snmp = {
exporterConfig = {
enable = true;
configuration.default = {
version = 2;
auth.community = "public";
configuration = {
auths.public_v2 = {
community = "public";
version = 2;
};
};
};
exporterTest = ''