浏览代码

Prometheus: Install bird-exporter on routers

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 年之前
父节点
当前提交
c69ac4fd59
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      prometheus-exporters/init.sls

+ 10 - 0
prometheus-exporters/init.sls

@@ -33,3 +33,13 @@ prometheus-bind-exporter:
     - enable: true
     - reload: true
 {% endif %}
+
+# Routers
+{% if 'router' in roles %}
+prometheus-bird-exporter:
+  pkg.installed:
+    - name: prometheus-bird-exporter
+  service.running:
+    - enable: true
+    - reload: true
+{% endif %}