netbox-prometheus-sd icon indicating copy to clipboard operation
netbox-prometheus-sd copied to clipboard

Filtering, multiple SNMP exporters

Open Yannis100 opened this issue 4 years ago • 3 comments

Hey !

Just read your blog post regarding Prometheus and Netbox, thanks, very interesting! I plan to use your project, and I want to add filtering of retrieved devices (including auto-filtering of the master device of Virtual-Chassis devices) based on any field (tenant, region, ...)

We're using Blackboxes as SNMP exporter on each site location, which means the target_label: __address__ replacement should be dynamic based on the device site. I think there is no other solution than multiple jobs. I would like to include snmp module selection based on device_type + role instead of __snmp_module__ in Netbox prom_labels field

I was considering using jinja templates before I found your more elegant solution. And also, I want to have the prometheus jobs config file generated automatically, probably the only way if I want 1 job per site / role

What do you think about this? I'll share my achievements in the following weeks

Yannis100 avatar Oct 29 '19 16:10 Yannis100