Class PrometheusMetricsGeneratorUtils
java.lang.Object
org.apache.pulsar.broker.stats.prometheus.PrometheusMetricsGeneratorUtils
Generate 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerate(String cluster, OutputStream out, List<PrometheusRawMetricsProvider> metricsProviders) static voidgenerateSystemMetrics(org.apache.pulsar.common.util.SimpleTextOutputStream stream, String cluster)
-
Constructor Details
-
PrometheusMetricsGeneratorUtils
public PrometheusMetricsGeneratorUtils()
-
-
Method Details
-
generate
public static void generate(String cluster, OutputStream out, List<PrometheusRawMetricsProvider> metricsProviders) throws IOException - Throws:
IOException
-
generateSystemMetrics
public static void generateSystemMetrics(org.apache.pulsar.common.util.SimpleTextOutputStream stream, String cluster)
-