Class PrometheusProperties.Builder
java.lang.Object
io.prometheus.metrics.config.PrometheusProperties.Builder
- Enclosing class:
PrometheusProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MetricsPropertiesprivate ExemplarsPropertiesprivate ExporterFilterPropertiesprivate ExporterHttpServerPropertiesprivate ExporterPropertiesprivate final PrometheusProperties.MetricPropertiesMapprivate OpenMetrics2Propertiesprivate ExporterOpenTelemetryPropertiesprivate ExporterPushgatewayProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()defaultMetricsProperties(MetricsProperties defaultMetricsProperties) enableOpenMetrics2(Consumer<OpenMetrics2Properties.Builder> configurator) exemplarProperties(ExemplarsProperties exemplarProperties) exporterFilterProperties(ExporterFilterProperties exporterFilterProperties) exporterHttpServerProperties(ExporterHttpServerProperties exporterHttpServerProperties) exporterOpenTelemetryProperties(ExporterOpenTelemetryProperties exporterOpenTelemetryProperties) exporterProperties(ExporterProperties exporterProperties) metricProperties(Map<String, MetricsProperties> metricProperties) openMetrics2Properties(OpenMetrics2Properties openMetrics2Properties) pushgatewayProperties(ExporterPushgatewayProperties pushgatewayProperties) putMetricProperty(String name, MetricsProperties props) Convenience for adding a single named MetricsProperties
-
Field Details
-
defaultMetricsProperties
-
metricProperties
-
exemplarProperties
-
exporterProperties
-
exporterFilterProperties
-
exporterHttpServerProperties
-
pushgatewayProperties
-
otelConfig
-
openMetrics2Properties
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
defaultMetricsProperties
public PrometheusProperties.Builder defaultMetricsProperties(MetricsProperties defaultMetricsProperties) -
metricProperties
public PrometheusProperties.Builder metricProperties(Map<String, MetricsProperties> metricProperties) -
putMetricProperty
Convenience for adding a single named MetricsProperties -
exemplarProperties
-
exporterProperties
-
exporterFilterProperties
public PrometheusProperties.Builder exporterFilterProperties(ExporterFilterProperties exporterFilterProperties) -
exporterHttpServerProperties
public PrometheusProperties.Builder exporterHttpServerProperties(ExporterHttpServerProperties exporterHttpServerProperties) -
pushgatewayProperties
public PrometheusProperties.Builder pushgatewayProperties(ExporterPushgatewayProperties pushgatewayProperties) -
exporterOpenTelemetryProperties
public PrometheusProperties.Builder exporterOpenTelemetryProperties(ExporterOpenTelemetryProperties exporterOpenTelemetryProperties) -
enableOpenMetrics2
public PrometheusProperties.Builder enableOpenMetrics2(Consumer<OpenMetrics2Properties.Builder> configurator) -
openMetrics2Properties
public PrometheusProperties.Builder openMetrics2Properties(OpenMetrics2Properties openMetrics2Properties) -
build
-