l 3 telegraf: add interval option
This commit is contained in:
parent
920cb34560
commit
7d9bd20248
@ -41,12 +41,16 @@ let
|
||||
''
|
||||
];
|
||||
};
|
||||
interval = mkOption {
|
||||
type = types.str;
|
||||
default = "10s";
|
||||
};
|
||||
config = mkOption {
|
||||
type = types.str;
|
||||
#TODO: find a good default
|
||||
default = ''
|
||||
[agent]
|
||||
interval = "1s"
|
||||
interval = "${cfg.interval}"
|
||||
|
||||
[outputs]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user