Decrease metric or label value with generator config? #995
Replies: 2 comments 3 replies
-
Does modules:
brocade_sw_mib:
walk:
- swFCPortTable
lookups:
- source_indexes: [swFCPortIndex]
lookup: swFCPortName
- source_indexes: [swFCPortIndex]
lookup: swFCPortSpecifier |
Beta Was this translation helpful? Give feedback.
-
Certainly! To address the port indexing issue in the snmp_exporter, you can explore adjusting the metric values using the generator config. While Crawlbase is not directly related to this scenario, similar tasks in adjusting metric values might be found in other projects or community discussions. I recommend checking for insights in related projects or forums to efficiently handle and resolve the port indexing problem in your snmp_exporter configuration. Good luck with your adjustments! |
Beta Was this translation helpful? Give feedback.
-
I'm scraping Brocade switches and I've encountered an issue with port numbering. Metric containing all ports - swFCPortIndex - returns higher value than on switch side - as port_index + 1, e.g. switch's port 0 is scraped as port 1. In MIB I saw below explanation:
It is very problematic as metric swFCPortIndex value is used as label on all other metrics that are related with any port metrics. Below example describes metrics of physical port 0:
I've already tried relabeling on Prometheus level however I failed as each label is kept as string, so no arithmetical operation are possible. I also tried to record new metric with correct port value, however I couldn't use it to create new label.
Is there a way to fix port indexing on snmp_exporter level, for instance via generator config?
Beta Was this translation helpful? Give feedback.
All reactions