Class PrometheusProperties
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusProperties
@ConfigurationProperties(prefix="management.prometheus.metrics.export")
public class PrometheusProperties
extends Object
@ConfigurationProperties
for configuring metrics export
to Prometheus.- Since:
- 2.0.0
- Author:
- Jon Schneider, Stephane Nicoll
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated, for removal: This API element is subject to removal in a future version.since 3.3.0 for removal in 3.5.0static class
Configuration options for push-based interaction with Prometheus. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getStep()
boolean
boolean
void
setDescriptions
(boolean descriptions) void
setEnabled
(boolean enabled) void
setHistogramFlavor
(PrometheusProperties.HistogramFlavor histogramFlavor) void
-
Constructor Details
-
PrometheusProperties
public PrometheusProperties()
-
-
Method Details
-
isDescriptions
public boolean isDescriptions() -
setDescriptions
public void setDescriptions(boolean descriptions) -
getHistogramFlavor
@Deprecated(since="3.3.0", forRemoval=true) @DeprecatedConfigurationProperty(since="3.3.0", reason="No longer supported. Works only when using the Prometheus simpleclient.") public PrometheusProperties.HistogramFlavor getHistogramFlavor()Deprecated, for removal: This API element is subject to removal in a future version. -
setHistogramFlavor
-
getStep
-
setStep
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getPushgateway
-
getProperties
-