messagebird / beanstalkd_exporter

A beanstalkd stats exporter for Prometheus
https://www.messagebird.com
BSD 2-Clause "Simplified" License
34 stars 24 forks source link

When a tube is deleted it's last metric values linger #22

Open marcelcorso opened 6 years ago

marcelcorso commented 6 years ago

Say tube emails has 27 jobs ready. beanstalkd_exporter will export

tube_current_jobs_ready{tube="emails",...} 27

We restart the beanstalkd server and never create that tube again. On the next call to list-tubes emails wont be there anymore and we wont update any of its metric values. tube_current_jobs_ready will still be 27.

It will only stop being exported when beanstalkd_exporter is restarted.

But prometheus will retain its value for the retention period.

stefan-messagebird commented 4 years ago

Also happens if you delete jobs one by one fast (had 60k jobs remaining after a delete procedure). A restart fixed it.