From 749c69b1c8fce968ea9bbf9dec5e2a18ab4a2c6d Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 5 May 2022 16:12:23 +0000 Subject: monitoring: T4315: Add telegraf output plugin prometheus-client Add output Plugin "prometheus-client" for telegraf set service monitoring telegraf prometheus-client xxx --- interface-definitions/include/username.xml.i | 11 +++ .../service_monitoring_telegraf.xml.in | 79 ++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 interface-definitions/include/username.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/username.xml.i b/interface-definitions/include/username.xml.i new file mode 100644 index 000000000..2263ec08d --- /dev/null +++ b/interface-definitions/include/username.xml.i @@ -0,0 +1,11 @@ + + + + Authentication username + + ^[-_a-zA-Z0-9.]{1,100} + + Illegal characters or more than 100 characters + + + diff --git a/interface-definitions/service_monitoring_telegraf.xml.in b/interface-definitions/service_monitoring_telegraf.xml.in index 81ba67430..b38e0dd51 100644 --- a/interface-definitions/service_monitoring_telegraf.xml.in +++ b/interface-definitions/service_monitoring_telegraf.xml.in @@ -85,6 +85,85 @@ all + + + Output plugin Prometheus client + + + + + HTTP basic authentication parameters + + + #include + + + Authentication password + + txt + Authentication password + + + + + + + + Networks allowed to query this server + + ipv4net + IP address and prefix length + + + ipv6net + IPv6 address and prefix length + + + + + + + + + + Local IP addresses to listen on + + + + + ipv4 + IPv4 address to listen for incoming connections + + + ipv6 + IPv6 address to listen for incoming connections + + + + + + + + + + + Metric version control mapping from Telegraf to Prometheus format + + u32:1-2 + Metric version (default: 2) + + + + + + 2 + + #include + + 9273 + + + Remote URL [REQUIRED] -- cgit v1.2.3