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