Receiver execute input commands #36858
gabrielSanchezCampello
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good morning to all,
I have been looking and I can't find any receiver that supports a list of commands and that converts the result in metric nor did I see anything similar in the forums, nor suggestions or similar ideas (maybe I have searched wrong).
My idea is, for example, to be able to put the command “ps -a | grep ‘process_desired’ | wc -l” and thus get a 1 if the process I am looking for is running.
I imagine it as something similar to sqlqueryreceiver, where you put a list of commands and for each of them the metric that will generate and some custom attributes.
I also have other ideas of how something like this could be done, but my question is.... has this already been considered in its moment and has been discarded? is there any reason why this is unfeasible? I have seen that influxdb-telegraf has made a plugin that (if I understand correctly) does just what I described https://github.com/influxdata/telegraf/blob/master/plugins/inputs/exec/README.md
Let's see if you can help me... and thank you very much for your time!
Beta Was this translation helpful? Give feedback.
All reactions