This plugin will connect to the TMC stream api and gather all events. this is also customizeable per the api docs and you can pass in specific events to watch.
-
Download the latest release package for your platform.
-
Unpack the build to your system:
mkdir /var/lib/telegraf chown telegraf:telegraf /var/lib/telegraf tar xf tmcevents-linux-amd64.tar.gz -C /var/lib/telegraf
-
Edit execd plugin configuration as needed:
vi /var/lib/telegraf/tmcevents-linux-amd64/tmcevents.conf
-
Add to
/etc/telegraf/telegraf.conf
or into file in/etc/telegraf/telegraf.d
[[inputs.execd]] command = ["/var/lib/telegraf/tmcevents-linux-amd64/tmcevents --config /var/lib/telegraf/tmcevents-linux-amd64/tmcevents.conf"] signal = "STDIN"
-
Restart or reload Telegraf.
Packages are generated by a GitHub action whenever a new tag is pushed to the repository.
git tag v0.0.10
git push origin v0.0.10