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

class PrometheusCounter extends PrometheusMetric implements Counter
  • 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.
      Specified by:
      increase in interface Counter
      Parameters:
      amount - amount to add to counter value
    • labels

      public Counter labels(String... 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 interface BasicMetric<Counter>
      Parameters:
      labels - labels (dimensions) of metric to log