send node_config data into telegraf for dashboard queries

This commit is contained in:
m0duspwnens
2021-07-06 16:30:35 -04:00
parent dc1363aaf5
commit 62bfaa4e45
2 changed files with 9 additions and 0 deletions

View File

@@ -837,6 +837,13 @@
files = ["/host/nsm/zeek/logs/zeek_restart.log"]
data_format = "influx"
{% endif %}
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
[[inputs.file]]
files = ["/opt/so/conf/telegraf/node_tab.json"]
name_override = "node_config"
data_format = "json"
interval = 5m
{% endif %}
# # Count files in a directory

View File

@@ -42,6 +42,7 @@ tgrafconf:
- template: jinja
- source: salt://telegraf/etc/telegraf.conf
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
#this file will be read by telegraf to send node details(management interface, monitor interface, etc)
# into influx so that grafan can build dashboards using queries
node_tab:
@@ -49,6 +50,7 @@ node_tab:
- name: /opt/so/conf/telegraf/node_tab.json
- source: salt://telegraf/node_tab.json.jinja
- template: jinja
{% endif %}
so-telegraf:
docker_container.running: