mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-03-27 06:52:40 +01:00
send node_config data into telegraf for dashboard queries
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user