lib/sidekiq/prometheus/exporter/templates/metrics.erb in sidekiq-prometheus-exporter-0.1.6 vs lib/sidekiq/prometheus/exporter/templates/metrics.erb in sidekiq-prometheus-exporter-0.1.7
- old
+ new
@@ -32,5 +32,9 @@
<% end %>
# HELP sidekiq_queue_enqueued_jobs The number of enqueued jobs in the queue.
# TYPE sidekiq_queue_enqueued_jobs gauge
<% @queues_stats.each do |queue| %>sidekiq_queue_enqueued_jobs{name="<%= queue.name %>"} <%= format('%d', queue.size) %>
<% end %>
+# HELP sidekiq_queue_max_processing_time_seconds The amount of seconds between oldest job of the queue being executed and current time.
+# TYPE sidekiq_queue_max_processing_time_seconds gauge
+<% @max_processing_times.each do |queue, max_processing_time| %>sidekiq_queue_max_processing_time_seconds{name="<%= queue %>"} <%= format('%i', max_processing_time) %>
+<% end %>