Snmp exporter - value preprocessing

62 views
Skip to first unread message

Виталий Ковалев

unread,
Mar 1, 2020, 8:53:05 PM3/1/20
to Prometheus Users
Hello. Is there any way to do value preprocessing after lookup?
On my Network i have D-Link and Huawei switches. I use snmp_exporter to get Optical signal levels(DDM).
The main issue is that Huawei switches give values in Dbm and Dlink switches give values in mW.
Also i have some devices, for which your values should be divided by 10.

Daniel Swarbrick

unread,
Mar 3, 2020, 4:04:09 AM3/3/20
to Prometheus Users

Виталий Ковалев

unread,
Mar 5, 2020, 6:30:13 PM3/5/20
to Prometheus Users
Maybe it can solve the problem, but in this case i'll have two type of metrics, with correct format and with incorrect.
I understand that i can do some more with data, unlike other storages. But is it normal to keep data for one metric in different formats?

вторник, 3 марта 2020 г., 21:04:09 UTC+12 пользователь Daniel Swarbrick написал:

Brian Candler

unread,
Mar 6, 2020, 3:02:10 AM3/6/20
to Prometheus Users
It's usual to keep the raw data as returned by the exporter.

If the two manufacturers are using the *same* OID from the same standard MIB, but using different units, then one of them is doing it wrong.

If the two manufacturers are returning different OIDs in different vendor-specific MIBs, then by definition those are different metrics.  Having different units for them would be normal.

Roman T

unread,
Aug 7, 2020, 7:10:31 AM8/7/20
to Prometheus Users
Hello.
I have a similar question. 
Is there anything you can do with the data on the snmp_exporter side? 
Where can I read about this?
Thank you!

понедельник, 2 марта 2020 г. в 04:53:05 UTC+3, kvp9...@gmail.com:
Reply all
Reply to author
Forward
0 new messages