lib/pgq_prometheus/collector.rb in pgq_prometheus-0.2.2 vs lib/pgq_prometheus/collector.rb in pgq_prometheus-0.2.3
- old
+ new
@@ -24,9 +24,10 @@
end
def metrics
return [] if @data.length == 0
+ @observers.each_value(&:reset!)
metrics = {}
@data.map do |obj|
labels = {}
# labels are passed by PgqPrometheus::Processor