mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 20:53:22 +00:00
nixos/prometheus-snmp-exporter: switch to new config syntax
Introduced with version 0.23.0, see
b75fc6b839/auth-split-migration.md
This commit is contained in:
parent
d4492abe66
commit
a8ea9fe492
@ -24,11 +24,9 @@ in
|
|||||||
Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
|
Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
|
||||||
'';
|
'';
|
||||||
example = {
|
example = {
|
||||||
"default" = {
|
auths.public_v2 = {
|
||||||
"version" = 2;
|
community = "public";
|
||||||
"auth" = {
|
version = 2;
|
||||||
"community" = "public";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1392,9 +1392,11 @@ let
|
|||||||
snmp = {
|
snmp = {
|
||||||
exporterConfig = {
|
exporterConfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration.default = {
|
configuration = {
|
||||||
version = 2;
|
auths.public_v2 = {
|
||||||
auth.community = "public";
|
community = "public";
|
||||||
|
version = 2;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exporterTest = ''
|
exporterTest = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user