x70b1 / telegraf-edgeos

A lightweight Telegraf distribution customized for Ubiquiti's EdgeOS.
MIT License
34 stars 3 forks source link

enable more output plugins #9

Closed timvy closed 1 year ago

timvy commented 1 year ago

I would like to use Telegraf to send data from my edgerouter to Splunk. For that i need the http output plugin. Is that possible? How could i create that package?

x70b1 commented 1 year ago

Thats possible if you build your own package. You can take a look at the build file.

At the moment we have 3 outputs configured:

  TELEGRAF_OUTPUTS: outputs.influxdb,outputs.influxdb_v2,outputs.prometheus_client

But my plan was also to enable other output plugins. I could look at this later.

timvy commented 1 year ago

Okay, thanks! I'll play around with the build, see if i can make it work.

x70b1 commented 1 year ago

@timvy I introduced some bigger changes in the build pipeline (https://github.com/x70b1/telegraf-edgeos/commit/9fd30b1046294857233b8de12a77005738d68346). We now have flavors. I also set up one for http and splunk. Can you try it out with the latest release?

timvy commented 1 year ago

Great! I installed this on my edgerouter, and it is sending metrics to Splunk. It works! When i use the config from https://www.splunk.com/en_us/blog/it/splunk-metrics-via-telegraf.html for data normalization, it suggests to use the rename processor plugin. Is that something that can be added as well?

timvy commented 1 year ago

@x70b1 nevermind my previous request. I am now using the app Operating System monitoring with Telegraf, found here: https://splunkbase.splunk.com/app/4271 Renaming and processing the fields isn't necessary anymore, as this apps works with all the default Telegraf fields. It works great. I do limit the data to only strictly necessary fields, otherwise Telegraf uses a lot of cpu on the router.

x70b1 commented 1 year ago

@timvy I would build this into our Telegraf.

x70b1 commented 1 year ago

You can try the latest build.

x70b1 commented 1 year ago

@timvy Is it working? Then we could close this topic.

timvy commented 1 year ago

It's working perfectly. Thanks very much for your work!

x70b1 commented 1 year ago

🫡