lib/sidekiq/prometheus/exporter/templates/standard.erb in sidekiq-prometheus-exporter-0.1.17 vs lib/sidekiq/prometheus/exporter/templates/standard.erb in sidekiq-prometheus-exporter-0.2.0
- old
+ new
@@ -12,9 +12,13 @@
# HELP sidekiq_processes The number of processes.
# TYPE sidekiq_processes gauge
sidekiq_processes <%= format('%d', @overview_stats.processes_size) %>
+# HELP sidekiq_host_processes The number of processes running on the host.
+# TYPE sidekiq_host_processes gauge
+<% @workers_stats.by_host.each do |host, stats| %><% stats.each do |quiet, count| %>sidekiq_host_processes{host="<%= host %>",quiet="<%= quiet %>"} <%= format('%i', count) %>
+<% end %><% end %>
# HELP sidekiq_busy_workers The number of workers performing the job.
# TYPE sidekiq_busy_workers gauge
sidekiq_busy_workers <%= format('%d', @overview_stats.workers_size) %>
# HELP sidekiq_enqueued_jobs The number of enqueued jobs.