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 class
Configuration options for push-based interaction with Prometheus. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.prometheus.HistogramFlavor
getStep()
boolean
boolean
void
setDescriptions
(boolean descriptions) void
setEnabled
(boolean enabled) void
setHistogramFlavor
(io.micrometer.prometheus.HistogramFlavor histogramFlavor) void
-
Constructor Details
-
PrometheusProperties
public PrometheusProperties()
-
-
Method Details
-
isDescriptions
public boolean isDescriptions() -
setDescriptions
public void setDescriptions(boolean descriptions) -
getHistogramFlavor
public io.micrometer.prometheus.HistogramFlavor getHistogramFlavor() -
setHistogramFlavor
public void setHistogramFlavor(io.micrometer.prometheus.HistogramFlavor histogramFlavor) -
getStep
-
setStep
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getPushgateway
-