Deleted the post by mistake. I understood that it is reading the MIB files 
from the mibs directory. I even copied my MIB file in that directory and 
set the environment variable, but it seems that in the generator.yml file 
some modules are predefined and only those modules are created in the 
snmp.yml file. Using the default if_mib module gives me only the interface 
metrics for my LB, I want the service level metrics of my LB such as the 
server binded to the LB, HTTP stats, TCP stats etc.

On Tuesday, March 3, 2020 at 4:47:48 PM UTC+5:30, Brian Candler wrote:
>
> The generator does not "create its own set of MIB files" - it only reads 
> in MIB files.  You can set the environment variable MIBDIRS 
> <https://github.com/prometheus/snmp_exporter/tree/master/generator> to 
> tell it what directories you want it to look in:
> https://github.com/prometheus/snmp_exporter/issues/395
>
> If you don't set this environment variable, it may pick up existing MIBs 
> from a system-defined location (wherever your net-snmp looks by default).
>
> Can you be more specific about the behaviour you're seeing?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c48c07a9-8a17-4b30-b218-d6979902b858%40googlegroups.com.

Reply via email to