prometheus_exporter
prometheus_exporter copied to clipboard
Dynamic labels for sidekiq jobs
Hi, thanks for this beautiful gem. I see that we can added static labels in sidekiq job (on official page of a gem): Custom labels can be added for individual jobs by defining a class method on the job class. These labels will be added to all Sidekiq metrics written by the job:
class WorkerWithCustomLabels
def self.custom_labels
{ my_label: 'value-here', other_label: 'second-val' }
end
def perform; end
end
but, what about dynamic labels? How we can add those labels?