summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-04 13:42:53 +0200
committerGitHub <noreply@github.com>2024-10-04 13:42:53 +0200
commita175bd6518cc27376eb179115d69ce42f0c5f69a (patch)
tree73d5b4cc53acec9a2a83e46716d8006bc2cd7e00 /interface-definitions
parent2a46c1cfb229f0e473b91aeaf8dfd278527ccda6 (diff)
parent1749c3a99b88c8376b505d0d776cc9b4d5f167cd (diff)
downloadvyos-1x-a175bd6518cc27376eb179115d69ce42f0c5f69a.tar.gz
vyos-1x-a175bd6518cc27376eb179115d69ce42f0c5f69a.zip
Merge pull request #4048 from rebortg/node_exporter
T973: add basic node_exporter implementation
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service_monitoring_node_exporter.xml.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_node_exporter.xml.in b/interface-definitions/service_monitoring_node_exporter.xml.in
new file mode 100644
index 000000000..a11d2304f
--- /dev/null
+++ b/interface-definitions/service_monitoring_node_exporter.xml.in
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="service">
+ <children>
+ <node name="monitoring">
+ <children>
+ <node name="node-exporter" owner="${vyos_conf_scripts_dir}/service_monitoring_node-exporter.py">
+ <properties>
+ <help>Prometheus exporter for hardware and operating system metrics</help>
+ <priority>1280</priority>
+ </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>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>