I've just started looking at Netbox as a way to store "inventory" for Prometheus using this plugin:
https://github.com/FlxPeters/netbox-plugin-prometheus-sd
The documentation is a bit light and I'm wondering if anyone can share a good example of how to use the multi-target exporter pattern. My initial thought is to add custom fields in netbox like this:
prom_job: (multi-selection with choices like blackbox, snmp, json)
prom_blackbox_module: (selection with choices like ping, http, tcp3389, etc.)
prom_snmp_module: (selection with choices for all my snmp modules)
prom_snmp_auth: (selection with choices like public_v2, public_v3, etc. to be used by snmp).
Then in Prometheus, I would have just one blackbox job which chooses the right module based on that field, and its target URL includes a Netbox filter for prom_job to only return targets which have that module selected.
Similarly, I would have one snmp job, etc. Does this sound like the best approach?