Class: Evil::Metrics::Prometheus::CounterWrapper
- Inherits:
-
MetricWrapper
- Object
- Prometheus::Client::Metric
- MetricWrapper
- Evil::Metrics::Prometheus::CounterWrapper
- Defined in:
- lib/evil/metrics/prometheus/counter_wrapper.rb
Instance Attribute Summary
Attributes inherited from MetricWrapper
Instance Method Summary collapse
Methods inherited from MetricWrapper
#docstring, #get, #initialize, #name, #values
Constructor Details
This class inherits a constructor from Evil::Metrics::Prometheus::MetricWrapper
Instance Method Details
#increment(labels = {}, by = 1) ⇒ Object
12 13 14 |
# File 'lib/evil/metrics/prometheus/counter_wrapper.rb', line 12 def increment(labels = {}, by = 1) metric.increment(labels, by: by) end |
#type ⇒ Object
8 9 10 |
# File 'lib/evil/metrics/prometheus/counter_wrapper.rb', line 8 def type :counter end |