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 {
|
config = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
#TODO: find a good default
|
#TODO: find a good default
|
||||||
default = ''
|
default = ''
|
||||||
[agent]
|
[agent]
|
||||||
interval = "1s"
|
interval = "${cfg.interval}"
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user