public class RatisDropwizardExports
extends io.prometheus.client.dropwizard.DropwizardExports
Constructor and Description |
---|
RatisDropwizardExports(com.codahale.metrics.MetricRegistry registry)
Creates a new DropwizardExports with a
DefaultSampleBuilder . |
Modifier and Type | Method and Description |
---|---|
static void |
registerRatisMetricReporters(Map<String,RatisDropwizardExports> ratisMetricsMap)
Register ratis metric to metricRegistry.
|
public RatisDropwizardExports(com.codahale.metrics.MetricRegistry registry)
DefaultSampleBuilder
.registry
- a metric registry to export in prometheuspublic static void registerRatisMetricReporters(Map<String,RatisDropwizardExports> ratisMetricsMap)
ratisMetricsMap
- a map to store the registered metricsCopyright © 2023. All Rights Reserved.