Class PrometheusCounter
java.lang.Object
eu.rarogsoftware.rarog.platform.core.metrics.prometheus.PrometheusMetric
eu.rarogsoftware.rarog.platform.core.metrics.prometheus.PrometheusCounter
- All Implemented Interfaces:
BasicMetric<Counter>
,Counter
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusCounter
(io.prometheus.client.Counter counter) PrometheusCounter
(io.prometheus.client.Counter parent, io.prometheus.client.Counter.Child child) -
Method Summary
Methods inherited from class eu.rarogsoftware.rarog.platform.core.metrics.prometheus.PrometheusMetric
collect, getCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.rarogsoftware.rarog.platform.api.metrics.BasicMetric
labels
-
Constructor Details
-
PrometheusCounter
public PrometheusCounter(io.prometheus.client.Counter counter) -
PrometheusCounter
public PrometheusCounter(io.prometheus.client.Counter parent, io.prometheus.client.Counter.Child child)
-
-
Method Details
-
increase
public void increase(double amount) Description copied from interface:Counter
Increase value of counter. -
labels
Description copied from interface:BasicMetric
Returns child with the given labels.Must be passed the same number of labels are were passed to
BaseMetricSettings.labels(String...)
.- Specified by:
labels
in interfaceBasicMetric<Counter>
- Parameters:
labels
- labels (dimensions) of metric to log
-