summaryrefslogtreecommitdiff
path: root/interface-definitions/service_monitoring_frr_exporter.xml.in
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2024-10-17 08:35:47 +0200
committerGitHub <noreply@github.com>2024-10-17 09:35:47 +0300
commit3f933f1642debfca5c9e3873790a5742ef242c75 (patch)
tree0fd5fe02833a374772233a94068f711fea799445 /interface-definitions/service_monitoring_frr_exporter.xml.in
parente5d2ac54150922640c08bacab124e96c7bbd1f7f (diff)
downloadvyos-1x-3f933f1642debfca5c9e3873790a5742ef242c75.tar.gz
vyos-1x-3f933f1642debfca5c9e3873790a5742ef242c75.zip
T973: add basic frr_exporter implementation (#4150)
Diffstat (limited to 'interface-definitions/service_monitoring_frr_exporter.xml.in')
-rw-r--r--interface-definitions/service_monitoring_frr_exporter.xml.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface-definitions/service_monitoring_frr_exporter.xml.in b/interface-definitions/service_monitoring_frr_exporter.xml.in
new file mode 100644
index 000000000..96aee3ab4
--- /dev/null
+++ b/interface-definitions/service_monitoring_frr_exporter.xml.in
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="service">
+ <children>
+ <node name="monitoring">
+ <children>
+ <node name="frr-exporter" owner="${vyos_conf_scripts_dir}/service_monitoring_frr-exporter.py">
+ <properties>
+ <help>Prometheus exporter for FRR metrics</help>
+ <priority>1280</priority>
+ </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>
+</interfaceDefinition>