Even if that plugin can be optimized for performance, it still feels like an inefficient approach. Users will add and modify devices in Netbox, for example marking them off-line to remove from monitoring. These changes are infrequent, and I want Prometheus to respond as fast as possible. So I’m thinking a better design would be to use a Netbox event trigger to generate the new yaml file, and somehow transfer that file to Prometheus for file SD discovery, perhaps using SCP.
On Tue, Jan 16, 2024 at 06:34 Elliott Balsley <[email protected]> wrote: > Thanks, it sounds promising on the Prometheus side. > I’ve actually found a performance issue with the Prometheus plug-in for > Netbox that I was using to provide the HTTP discovery. It hammers the > Netbox database with excessive queries and takes over 30 seconds to respond > with just 2000 targets. So, if the refresh interval is less than 30 > seconds, the whole Netbox instance grinds to a halt. Brian, have you > encountered this issue, since I think you use Netbox too? > https://github.com/FlxPeters/netbox-plugin-prometheus-sd/issues/156 > -- 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/CALajkdgDtg3vDUbOd8x%3DiuO6i0fx7mqYs-AV_ThWB8Lm4Agp3A%40mail.gmail.com.

