prometheus / snmp_exporter

SNMP Exporter for Prometheus
Apache License 2.0
1.67k stars 620 forks source link

Add schleifenbauer PDU #1217

Open Wqrld opened 2 months ago

Wqrld commented 2 months ago

This patch adds support for Power Distribution Units from https://www.schleifenbauer.eu

I was able to successfully read out my PDU's into grafana. I hope this may be useful for others too.

Note: This query takes about one minute to run on my device, running into timeouts. Adding

    scrape_interval: 3m
    scrape_timeout: 2m

fixes this. I think this is an issue with many SNMP devices, so it might be an idea to add statements like these (with lower limits) to the readme example.

bastischubert commented 2 months ago

Hi @Wqrld,

could you please provide the updated generator/generator.yml and add the needed mib files for this to work to the Makefile?

Wqrld commented 2 months ago

The generator was also failing locally before adding my patch because of 404's, i had to rip those out of the makefile to generate this configuration.

Wqrld commented 2 months ago

Hi @Wqrld,

could you please provide the updated generator/generator.yml and add the needed mib files for this to work to the Makefile?

I do not have the rights to those original mib files so i'm not sure if i'm allowed to add them. They were taken from https://docs.schleifenbauer.eu/?dir=Interfaces/SNMP If this is a hard requirement i'll send them an email for explicit permission

bastischubert commented 2 months ago

Shouldn't be an issue to curl their public available mib files in the generator/Makefile