vierbergenlars / bareos_exporter

MIT License
12 stars 7 forks source link

suggested performance improvement #14

Closed d-rupp closed 2 years ago

d-rupp commented 2 years ago

Our production Bareos database is pretty sizeable (~5 TB) and the exporter did not finish in any acceptable timeframe (at least 30+ minutes for us). The biggest issue was the PoolInfo query. With this little improvement the query runs in less than a second and produces the same results. Now the whole scrape takes 2-3 minutes, which is far more manageable.

vierbergenlars commented 2 years ago

Smart improvement, thanks!

I'll try it out and create a new release somewhere this week.