You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first off: We are using v0.21.0 because that is what ships with Debian Bookworm. If needed, we can update to a current release, but we rather wouldn't.
We want to use snmp-exporter to scrape data from a SNMP table that looks something like this:
Some "columns" of the table are Counters (i.e. linksetRxOctets) which we would like to see as metrics, and some are text fields (i.e. linksetType) which should be added as labels. In the end, we would like to have a prometheus output that has the values for all rows of the table:
Can someone help us with setting up the generator.yml? It seems like a simple task but all examples that we have found on the web are rather complicated.
We have tried the following, very minimal generator.yml:
But since we have two items in the table, a curl to the /snmp endpoint shows this:
An error has occurred while serving metrics:
5 error(s) occurred:
* collected metric "linksetTxMSU" { counter:<value:2013 > } was collected before with the same name and label values
* collected metric "linksetRxOctets" { counter:<value:19382 > } was collected before with the same name and label values
* collected metric "linksetTxOctets" { counter:<value:26061 > } was collected before with the same name and label values
* collected metric "linksetDownAlarms" { counter:<value:1 > } was collected before with the same name and label values
* collected metric "linksetRxMSU" { counter:<value:1766 > } was collected before with the same name and label values
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first off: We are using
v0.21.0because that is what ships with Debian Bookworm. If needed, we can update to a current release, but we rather wouldn't.We want to use snmp-exporter to scrape data from a SNMP table that looks something like this:
You can find the MIB file on GitHub: https://github.com/yatevoip/yate/blob/master/share/data/YATE-MIB.txt
Some "columns" of the table are Counters (i.e.
linksetRxOctets) which we would like to see as metrics, and some are text fields (i.e.linksetType) which should be added as labels. In the end, we would like to have a prometheus output that has the values for all rows of the table:Can someone help us with setting up the
generator.yml? It seems like a simple task but all examples that we have found on the web are rather complicated.We have tried the following, very minimal generator.yml:
But since we have two items in the table, a curl to the /snmp endpoint shows this:
Beta Was this translation helpful? Give feedback.
All reactions