diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-06-25 09:56:47 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-28 12:48:27 +0000 |
commit | 753eef575f06e00cce47352ded7e8ee0b91d10af (patch) | |
tree | 629448faa47ac8a3ab1ca8c26221fb8891abfebf /interface-definitions | |
parent | 679c474e22373d0801459c57fcde8c8c298fe21d (diff) | |
download | vyos-1x-753eef575f06e00cce47352ded7e8ee0b91d10af.tar.gz vyos-1x-753eef575f06e00cce47352ded7e8ee0b91d10af.zip |
T6477: Add telegraf loki output plugin
Add Loki plugin to telegraf
set service monitoring telegraf loki url xxx
(cherry picked from commit 3365eb7ab99fa9a259fe440eb51e82fc0a0a4dc6)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/service_monitoring_telegraf.xml.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_telegraf.xml.in b/interface-definitions/service_monitoring_telegraf.xml.in index 2624023ea..2ac0d940e 100644 --- a/interface-definitions/service_monitoring_telegraf.xml.in +++ b/interface-definitions/service_monitoring_telegraf.xml.in @@ -148,6 +148,39 @@ #include <include/url-http-https.xml.i> </children> </node> + <node name="loki"> + <properties> + <help>Output plugin Loki</help> + </properties> + <children> + <node name="authentication"> + <properties> + <help>HTTP basic authentication parameters</help> + </properties> + <children> + #include <include/generic-username.xml.i> + #include <include/generic-password.xml.i> + </children> + </node> + <leafNode name="metric-name-label"> + <properties> + <help>Metric name label</help> + <valueHelp> + <format>txt</format> + <description>Label to use for the metric name</description> + </valueHelp> + <constraint> + #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i> + </constraint> + </properties> + </leafNode> + #include <include/port-number.xml.i> + <leafNode name="port"> + <defaultValue>3100</defaultValue> + </leafNode> + #include <include/url-http-https.xml.i> + </children> + </node> <leafNode name="source"> <properties> <help>Source parameters for monitoring</help> |