diff options
| author | MichaelSonger <michael.songer@infinitivegroup.co.uk> | 2026-09-24 17:00:38 +0100 |
|---|---|---|
| committer | MichaelSonger <michael.songer@infinitivegroup.co.uk> | 2026-09-24 17:00:38 +0100 |
| commit | 75781f0d9dbf0174dfbb55d5f0e8228a38b6f608 (patch) | |
| tree | e00453e8d48c78d337b6076c77500352a001ba6c /interface-definitions | |
| parent | ed218c254d964775ddf24158ac6520972d575faf (diff) | |
| download | vyos-1x-75781f0d9dbf0174dfbb55d5f0e8228a38b6f608.tar.gz vyos-1x-75781f0d9dbf0174dfbb55d5f0e8228a38b6f608.zip | |
T9274: Add more telegraf configuration- #5453
Added the ability to make several agent values configurable instead of hardcoded.
Diffstat (limited to 'interface-definitions')
| -rw-r--r-- | interface-definitions/service_monitoring_telegraf.xml.in | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_telegraf.xml.in b/interface-definitions/service_monitoring_telegraf.xml.in index c723d90cd..a605b341e 100644 --- a/interface-definitions/service_monitoring_telegraf.xml.in +++ b/interface-definitions/service_monitoring_telegraf.xml.in @@ -33,6 +33,75 @@ </leafNode> </children> </tagNode> + <node name="agent"> + <properties> + <help>Telegraf agent configuration</help> + </properties> + <children> + <leafNode name="interval"> + <properties> + <help>Default data collection interval</help> + <valueHelp> + <format>duration</format> + <description>Collection interval</description> + </valueHelp> + <constraint> + <regex>[1-9][0-9]*(s|m|h)</regex> + </constraint> + <constraintErrorMessage>Valid time units are s, m, h. e.g. 60s or 15m</constraintErrorMessage> + </properties> + <defaultValue>15s</defaultValue> + </leafNode> + <leafNode name="collection-jitter"> + <properties> + <help>Collection jitter</help> + <valueHelp> + <format>duration</format> + <description>Collection jitter</description> + </valueHelp> + <constraint> + <regex>[0-9]+(s|m|h)</regex> + </constraint> + <constraintErrorMessage>Valid time units are s, m, h. e.g. 60s or 15m</constraintErrorMessage> + </properties> + <defaultValue>5s</defaultValue> + </leafNode> + <leafNode name="flush-interval"> + <properties> + <help>Flush interval</help> + <valueHelp> + <format>duration</format> + <description>Flush interval</description> + </valueHelp> + <constraint> + <regex>[1-9][0-9]*(s|m|h)</regex> + </constraint> + <constraintErrorMessage>Valid time units are s, m, h. e.g. 60s or 15m</constraintErrorMessage> + </properties> + <defaultValue>15s</defaultValue> + </leafNode> + <leafNode name="flush-jitter"> + <properties> + <help>Flush jitter</help> + <valueHelp> + <format>duration</format> + <description>Flush jitter</description> + </valueHelp> + <constraint> + <regex>[0-9]+(s|m|h)</regex> + </constraint> + <constraintErrorMessage>Valid time units are s, m, h. e.g. 60s or 15m</constraintErrorMessage> + </properties> + <defaultValue>0s</defaultValue> + </leafNode> + <leafNode name="debug"> + <properties> + <help>Enable Telegraf debug logging</help> + <valueless/> + </properties> + </leafNode> + </children> + </node> <node name="influxdb"> <properties> <help>Output plugin InfluxDB</help> |
