This commit is contained in:
m0duspwnens
2020-06-11 14:48:03 -04:00
parent 985c55dd62
commit 73bb375662

View File

@@ -666,14 +666,14 @@
# # Read metrics from one or more commands that can output to stdout # # Read metrics from one or more commands that can output to stdout
# ## Commands array # ## Commands array
{% if grains['role'] in ['so-master', 'so-mastersearch'] %} {% if grains['role'] in ['so-master', 'so-mastersearch', 'so-standalone'] %}
[[inputs.exec]] [[inputs.exec]]
commands = [ commands = [
"/scripts/redis.sh", "/scripts/redis.sh",
"/scripts/influxdbsize.sh" "/scripts/influxdbsize.sh"
] ]
data_format = "influx" data_format = "influx"
{% elif grains['role'] in ['so-sensor', 'so-heavynode'] %} {% elif grains['role'] in ['so-sensor', 'so-heavynode', 'so-standalone'] %}
[[inputs.exec]] [[inputs.exec]]
commands = [ commands = [
"/scripts/stenoloss.sh", "/scripts/stenoloss.sh",