Interface Counter

All Superinterfaces:
BasicMetric<Counter>
All Known Implementing Classes:
NoopCounter, PrometheusCounter

public interface Counter extends BasicMetric<Counter>
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

    Modifier and Type
    Method
    Description
    void
    increase(double amount)
    Increase value of counter.
    default void
    Increase value of counter by 1.

    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.