Nice, that sounds like it might fix it. I’m running the docker image prom/snmp-agent:main which was published 2 days ago. But I don’t know which commit that refers to.
I read the description of this new patch:
first attempt to match the lookup node so that the OID matches that of the metric in all but the last branch.
In case no match is found, it reverts to the old behavior.
Would it be better to attempt this recursively, so if it fails to find the name in the last branch, then it looks one branch up, and so on? I’m curious, if it were implemented that way, would there ever be a need to specify multiple MIBDIRS?