public class PrometheusCounterMetrics extends BaseMetrics<io.prometheus.client.Counter,io.prometheus.client.Counter.Child> implements CounterMetrics
labels, name, tips, values| Constructor and Description |
|---|
PrometheusCounterMetrics(String name,
String tips,
MetricsTag.Keys labels,
MetricsTag.Values values) |
| Modifier and Type | Method and Description |
|---|---|
protected io.prometheus.client.Counter |
create(String[] labelNames) |
void |
inc() |
void |
inc(double value) |
getMetric, isIDReadypublic PrometheusCounterMetrics(String name, String tips, MetricsTag.Keys labels, MetricsTag.Values values)
public void inc()
inc in interface CounterMetricspublic void inc(double value)
inc in interface CounterMetricsprotected io.prometheus.client.Counter create(String[] labelNames)
create in class BaseMetrics<io.prometheus.client.Counter,io.prometheus.client.Counter.Child>Copyright © 2019 The Apache Software Foundation. All rights reserved.