public class DropwizardExports extends io.prometheus.client.Collector implements io.prometheus.client.Collector.Describable
| Constructor and Description |
|---|
DropwizardExports(com.codahale.metrics.MetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
List<io.prometheus.client.Collector.MetricFamilySamples> |
collect() |
List<io.prometheus.client.Collector.MetricFamilySamples> |
describe() |
static String |
sanitizeMetricName(String dropwizardName)
Replace all unsupported chars with '_'.
|
public DropwizardExports(com.codahale.metrics.MetricRegistry registry)
registry - a metric registry to export in prometheus.public static String sanitizeMetricName(String dropwizardName)
dropwizardName - original metric name.public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
collect in class io.prometheus.client.CollectorCopyright © 2017. All rights reserved.