snmp_exporter - Generator.yml configuration

38 views
Skip to first unread message

Mitchell Laframboise

unread,
Feb 20, 2024, 12:39:19 PM2/20/24
to Prometheus Users
Hi there.  What do I have to include in my generator.yml configuration to scrape data for this query?

rate(ifHCInOctets{job=~'$JobName',instance=~'$Device',ifName=~'$Interface'}[$__rate_interval])*$interfacebits




Brian Candler

unread,
Feb 21, 2024, 8:36:29 AM2/21/24
to Prometheus Users
You need to collect the metric "ifHCInOctets".  The module "if_mib" in the supplied sample generator.yml does this.

Mitchell Laframboise

unread,
Feb 21, 2024, 8:38:24 AM2/21/24
to Prometheus Users
Thank you
Reply all
Reply to author
Forward
0 new messages