Browse Source

Doc: Add monitoring rule configuration examples

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 11 months ago
parent
commit
80c977116f
1 changed files with 32 additions and 0 deletions
  1. 32 0
      Documentation/example-pillar/monitoring.sls

+ 32 - 0
Documentation/example-pillar/monitoring.sls

@@ -1,4 +1,36 @@
 monitoring:
+  #
+  # Used by netfilter module to generate nftables rules to allow monitoring access
+  #
+
+  librenms:
+    role: librenms
+    nftables_rule_spec: "udp dport 161"
+
+  # A simple exporter which runs everywhere
+  prometheus-node-exporter:
+    role: prometheus-server
+    nftables_rule_spec: "tcp dport 9100"
+
+  prometheus-bind-exporter:
+    # role of the node(s) running the server querying other nodes
+    role: prometheus-server
+    # list of roles where this exporter will be running and needs to be allowed
+    node_roles:
+      - dns-auth
+      - dns-recursor
+    nftables_rule_spec: "tcp dport 9119"
+
+  prometheus-bird-exporter:
+    role: prometheus-server
+    node_roles:
+      - router
+    nftables_rule_spec: "tcp dport 9324"
+
+  icinga2:
+    role: icinga2server
+
+
 {% if grains['id'] in ["<id>"] %}
   users:
     ffho-ops: