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 ExporterOpenTelemetryPropertiesprivate ExporterPushgatewayProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()defaultMetricsProperties(MetricsProperties defaultMetricsProperties) exemplarProperties(ExemplarsProperties exemplarProperties) exporterFilterProperties(ExporterFilterProperties exporterFilterProperties) exporterHttpServerProperties(ExporterHttpServerProperties exporterHttpServerProperties) exporterOpenTelemetryProperties(ExporterOpenTelemetryProperties exporterOpenTelemetryProperties) exporterProperties(ExporterProperties exporterProperties) metricProperties(Map<String, MetricsProperties> metricProperties) 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
-
-
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) -
build
-