add agentstatus to telegraf

This commit is contained in:
Mike Reeves
2024-04-03 09:36:02 -04:00
parent f64d9224fb
commit 0efdcfcb52

View File

@@ -202,6 +202,16 @@
insecure_skip_verify = true
{%- endif %}
# # Get Agent Stats
{%- if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone', 'so-import'] %}
[[inputs.exec]]
commands = [
"/scripts/agentstatus.sh"
]
data_format = "influx"
timeout = "15s"
{%- endif %}
# ## Timeout for HTTP requests to the elastic search server(s)
# http_timeout = "5s"
#