Class: Sidekiq::Prometheus::Exporter::Standard
- Inherits:
-
Object
- Object
- Sidekiq::Prometheus::Exporter::Standard
- Defined in:
- lib/sidekiq/prometheus/exporter/standard.rb
Defined Under Namespace
Classes: QueueStats, QueueWorkersStats, WorkersStats
Constant Summary collapse
- TEMPLATE =
ERB.new(File.read(File.('templates/standard.erb', __dir__)))
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Standard
constructor
A new instance of Standard.
- #to_s ⇒ Object
Constructor Details
Class Method Details
.available? ⇒ Boolean
16 17 18 |
# File 'lib/sidekiq/prometheus/exporter/standard.rb', line 16 def self.available? true end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/sidekiq/prometheus/exporter/standard.rb', line 27 def to_s TEMPLATE.result(binding).chomp! end |