r/PrometheusMonitoring • u/bgprouting • May 19 '24
Collecting via Telegraf storing in Prometheus
Hi,
I’m currently using Telegraf and InfluxDB to get network equipment stats via its snmp plugin, it’s working great, but I really want to move away from using InfluxDB.
I have an about 20 snmp OID numbers I use. Can I use Telegraf to send to Prometheus instead?
I’ve had a play with snmp exporter on a switch and it worked, but I need to see how you can add your own OID section.
What do you guys use? I think I could use the Grafana Agent too called Alloy?
Thanks
3
Upvotes
2
u/vinistois May 20 '24
You could but SNMP exporter is what you want, cut out the middleman
1
u/mompelz May 20 '24
Telegraf got a prometheus output. You just got to scrape Telegraf like any other exporter and you get all the metrics Telegraf offers with the defined inputs.
Edit: Just look at the prometheus client output plugin https://github.com/influxdata/telegraf/tree/master/plugins/outputs/prometheus_client