diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-09-02 12:43:22 +0000 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-09-02 12:43:22 +0000 |
| commit | b258cee3c1eb09ee8b5536f2fd2dda9e27496d13 (patch) | |
| tree | bea5ce009d8b265d49fd7102b5a0791029b0b37b /interface-definitions | |
| parent | 611550d23ffbb0a90a9fbe24a17ec2bbbb09458b (diff) | |
| download | vyos-1x-b258cee3c1eb09ee8b5536f2fd2dda9e27496d13.tar.gz vyos-1x-b258cee3c1eb09ee8b5536f2fd2dda9e27496d13.zip | |
T9273: Add Telegraf global_tags option configurable
Adds Telegraf global_tags support - static tags stamped onto every metric.
```
set service monitoring telegraf global-tag <tag-name> value <tag-value>
```
Rendered as a [global_tags] block in telegraf.conf, applied ahead of all outputs.
Diffstat (limited to 'interface-definitions')
| -rw-r--r-- | interface-definitions/service_monitoring_telegraf.xml.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_telegraf.xml.in b/interface-definitions/service_monitoring_telegraf.xml.in index 1ea2a23dd..60239b53c 100644 --- a/interface-definitions/service_monitoring_telegraf.xml.in +++ b/interface-definitions/service_monitoring_telegraf.xml.in @@ -13,6 +13,26 @@ <priority>1280</priority> </properties> <children> + <tagNode name="global-tag"> + <properties> + <help>Global tag applied to every metric collected by this agent</help> + <constraint> + #include <include/constraint/alpha-numeric-hyphen-underscore.xml.i> + </constraint> + <constraintErrorMessage>Tag name is limited to alphanumerical characters and can contain hyphens and underscores</constraintErrorMessage> + </properties> + <children> + <leafNode name="value"> + <properties> + <help>Value of this global tag</help> + <valueHelp> + <format>txt</format> + <description>Tag value</description> + </valueHelp> + </properties> + </leafNode> + </children> + </tagNode> <node name="influxdb"> <properties> <help>Output plugin InfluxDB</help> |
