summaryrefslogtreecommitdiff
path: root/interface-definitions/service_monitoring_prometheus.xml.in
diff options
context:
space:
mode:
authorNicolas Vollmar <nvo@scaling.ch>2024-12-18 15:09:57 +0100
committerNicolas Vollmar <nvo@scaling.ch>2024-12-19 10:01:02 +0100
commit7b6f895146bf439f7b5445914e02c132163fc4fd (patch)
treeb6e426c5c386144d58991f66d43942dbebc3cd47 /interface-definitions/service_monitoring_prometheus.xml.in
parent60743702bf2f2c4bdbf7402baa4e66a1e4f8ec38 (diff)
downloadvyos-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.in45
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>