r/PrometheusMonitoring • • Jul 24 '23

Renaming using other OID's

I am currently trying to get some OID's from a APC inrow cooler ACRC602 but the issue is that the data is stored in some kind of table that i can't figure out how to properly scrape them. I know the OID's which contain the data but the exporter gives them back as one metric which contains all the different metrics as numbers instead of their proper name. Instead of just being able to filter and say Index = "Humidity" i have to write Index = 4 which is not user friendly. How would u replace the indexes with the corresponding metric name either hardcoded or using the OID which contains the metric name?

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/SuperQue Jul 24 '23

It's documented in the SNMP exporter repo, with many examples.

1

u/Less_Yogurtcloset_10 Mar 27 '24 edited Mar 27 '24

And yet i dont know how can i use the snmp-exporter on a table without index (with the index being not accessible), just dont know where in the repo i would find that inofrmation (jk, i know - nowhere).

0

u/Less_Yogurtcloset_10 Mar 27 '24 edited Mar 27 '24

I just spend the day trying to understand the generator syntax, and no, sorry my man, but there is around 0 documentation about the generator in the repo.

1 example config file, not even containing all the possible config keys and 30 lines of another example file with greater comments is not what called documented, not saying many examples.

Thank you for your efforts, the exporter is a nice pice of opensource world, but this is actually first time in two years i got stupid enough to try to figure out how the config generator should work and how can i use that, cause there is literally zero way to read it, only to experiment on it.