create node_config measurement for nodes to be used for grafana dashboard vars

This commit is contained in:
m0duspwnens
2021-07-08 11:18:25 -04:00
parent 35f10518b2
commit 20360d0bb0
4 changed files with 18 additions and 21 deletions

View File

@@ -832,19 +832,18 @@
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
{% if salt['pillar.get']('healthcheck:enabled', 'False') %}
{%- if salt['pillar.get']('healthcheck:enabled', 'False') %}
[[inputs.file]]
files = ["/host/nsm/zeek/logs/zeek_restart.log"]
data_format = "influx"
{% endif %}
{% if grains.role in ['so-manager', 'so-managersearch', 'so-standalone', 'so-eval'] %}
{%- endif %}
[[inputs.file]]
files = ["/etc/telegraf/nodes_config.json"]
name_override = "nodes_config"
files = ["/etc/telegraf/node_config.json"]
name_override = "node_config"
data_format = "json"
interval = "5m"
{% endif %}
json_string_fields = ['manint', 'monint']
tag_keys = ['role']
# # Count files in a directory
# [[inputs.filecount]]