diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-12-18 15:09:57 +0100 |
---|---|---|
committer | Nicolas Vollmar <nvo@scaling.ch> | 2024-12-19 10:01:02 +0100 |
commit | 7b6f895146bf439f7b5445914e02c132163fc4fd (patch) | |
tree | b6e426c5c386144d58991f66d43942dbebc3cd47 /interface-definitions/service_monitoring_prometheus.xml.in | |
parent | 60743702bf2f2c4bdbf7402baa4e66a1e4f8ec38 (diff) | |
download | vyos-1x-7b6f895146bf439f7b5445914e02c132163fc4fd.tar.gz vyos-1x-7b6f895146bf439f7b5445914e02c132163fc4fd.zip |
T6953: merges node and frr exporter under prometheus section
Diffstat (limited to 'interface-definitions/service_monitoring_prometheus.xml.in')
-rw-r--r-- | interface-definitions/service_monitoring_prometheus.xml.in | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_prometheus.xml.in b/interface-definitions/service_monitoring_prometheus.xml.in new file mode 100644 index 000000000..24f31e15c --- /dev/null +++ b/interface-definitions/service_monitoring_prometheus.xml.in @@ -0,0 +1,45 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="service"> + <children> + <node name="monitoring"> + <children> + <node name="prometheus" owner="${vyos_conf_scripts_dir}/service_monitoring_prometheus.py"> + <properties> + <help>Prometheus metric exporter</help> + <priority>1280</priority> + </properties> + <children> + <node name="node-exporter"> + <properties> + <help>Prometheus exporter for hardware and operating system metrics</help> + </properties> + <children> + #include <include/listen-address.xml.i> + #include <include/port-number.xml.i> + <leafNode name="port"> + <defaultValue>9100</defaultValue> + </leafNode> + #include <include/interface/vrf.xml.i> + </children> + </node> + <node name="frr-exporter"> + <properties> + <help>Prometheus exporter for FRR metrics</help> + </properties> + <children> + #include <include/listen-address.xml.i> + #include <include/port-number.xml.i> + <leafNode name="port"> + <defaultValue>9342</defaultValue> + </leafNode> + #include <include/interface/vrf.xml.i> + </children> + </node> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> |