Class Counter

All Implemented Interfaces:
CounterDataPoint, DataPoint, Collector

public class Counter extends MetricWithFixedMetadata implements CounterDataPoint
Counter metric.

Example usage:


 Counter requestCount = Counter.builder()
     .name("requests_total")
     .help("Total number of requests")
     .labelNames("path", "status")
     .register();
 requestCount.labelValues("/hello-world", "200").inc();
 requestCount.labelValues("/hello-world", "500").inc();