public abstract class FunctionCollectorRegistry
extends io.prometheus.client.CollectorRegistry
| Constructor and Description |
|---|
FunctionCollectorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionCollectorRegistry |
getDefaultImplementation() |
abstract <T extends io.prometheus.client.Collector> |
registerIfNotExist(String metricName,
T collector)
Register a metric if it does not yet exist.
|
public static FunctionCollectorRegistry getDefaultImplementation()
public abstract <T extends io.prometheus.client.Collector> T registerIfNotExist(String metricName, T collector)
T - metricName - the name of the metriccollector - the metric object e.g. Count, Gauge, etc.Copyright © 2017–2021 Apache Software Foundation. All rights reserved.