Interface Counter
- All Superinterfaces:
BasicMetric<Counter>
- All Known Implementing Classes:
NoopCounter
,PrometheusCounter
Counter metric to track counts of events or running totals.
Counters can only go up, if your use case can go down you should use a Gauge
instead.
-
Method Summary
Methods inherited from interface eu.rarogsoftware.rarog.platform.api.metrics.BasicMetric
labels, labels
-
Method Details
-
increase
void increase(double amount) Increase value of counter.- Parameters:
amount
- amount to add to counter value
-
increment
default void increment()Increase value of counter by 1.
-