Class PrometheusMetricsGenerator
- java.lang.Object
-
- org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsGenerator
-
public class PrometheusMetricsGenerator extends java.lang.ObjectGenerate metrics aggregated at the namespace level and optionally at a topic level and formats them out in a text format suitable to be consumed by Prometheus. Format specification can be found at Exposition Formats
-
-
Constructor Summary
Constructors Constructor Description PrometheusMetricsGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidgenerate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, boolean splitTopicAndPartitionIndexLabel, java.io.OutputStream out)static voidgenerate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, boolean splitTopicAndPartitionIndexLabel, java.io.OutputStream out, java.util.List<PrometheusRawMetricsProvider> metricsProviders)static voidgenerate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, java.io.OutputStream out)
-
-
-
Method Detail
-
generate
public static void generate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
generate
public static void generate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, boolean splitTopicAndPartitionIndexLabel, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
generate
public static void generate(PulsarService pulsar, boolean includeTopicMetrics, boolean includeConsumerMetrics, boolean includeProducerMetrics, boolean splitTopicAndPartitionIndexLabel, java.io.OutputStream out, java.util.List<PrometheusRawMetricsProvider> metricsProviders) throws java.io.IOException
- Throws:
java.io.IOException
-
-