Class PrometheusMetricsGeneratorUtils
- java.lang.Object
-
- org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsGeneratorUtils
-
public class PrometheusMetricsGeneratorUtils extends java.lang.ObjectGenerate metrics in a text format suitable to be consumed by Prometheus. Format specification can be found at {@link https://prometheus.io/docs/instrumenting/exposition_formats/}
-
-
Constructor Summary
Constructors Constructor Description PrometheusMetricsGeneratorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidgenerate(java.lang.String cluster, java.io.OutputStream out, java.util.List<PrometheusRawMetricsProvider> metricsProviders)static voidgenerateSystemMetrics(org.apache.pulsar.common.util.SimpleTextOutputStream stream, java.lang.String cluster)
-
-
-
Method Detail
-
generate
public static void generate(java.lang.String cluster, java.io.OutputStream out, java.util.List<PrometheusRawMetricsProvider> metricsProviders) throws java.io.IOException- Throws:
java.io.IOException
-
generateSystemMetrics
public static void generateSystemMetrics(org.apache.pulsar.common.util.SimpleTextOutputStream stream, java.lang.String cluster)
-
-