You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusMetricsExportAutoConfiguration.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -58,31 +58,31 @@ public class PrometheusMetricsExportAutoConfiguration {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusProperties.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusPropertiesConfigAdapter.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public Properties prometheusProperties() {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusSimpleclientMetricsExportAutoConfiguration.java
+10-10
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,9 @@
61
61
* @author David J. M. Karlsen
62
62
* @author Jonatan Ivanov
63
63
* @since 2.0.0
64
-
* @deprecated in favor of {@link PrometheusMetricsExportAutoConfiguration}
64
+
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusSimpleclientPropertiesConfigAdapter.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/prometheus/PrometheusSimpleclientExemplarsAutoConfiguration.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusSimpleclientPropertiesConfigAdapterTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/prometheus/PrometheusExemplarsAutoConfigurationTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/prometheus/PrometheusScrapeEndpoint.java
+5-6
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
*
36
36
* @author Jon Schneider
37
37
* @author Johnny Lim
38
+
* @author Moritz Halbritter
38
39
* @since 2.0.0
39
40
*/
40
41
@WebEndpoint(id = "prometheus")
@@ -51,17 +52,15 @@ public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/prometheus/PrometheusSimpleclientScrapeEndpoint.java
+2-3
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@
38
38
* @author Jon Schneider
39
39
* @author Johnny Lim
40
40
* @since 2.0.0
41
-
* @deprecated in favor of {@link PrometheusScrapeEndpoint}
41
+
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of
42
+
* {@link PrometheusScrapeEndpoint}
42
43
*/
43
44
@Deprecated(since = "3.3.0", forRemoval = true)
44
45
@WebEndpoint(id = "prometheus")
@@ -63,10 +64,8 @@ public WebEndpointResponse<String> scrape(TextOutputFormat format, @Nullable Set
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/prometheus/TextOutputFormat.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
*
33
33
* @author Andy Wilkinson
34
34
* @since 2.5.0
35
-
* @deprecated in favor of {@link PrometheusOutputFormat}
35
+
* @deprecated since 3.3.0 for removal in 3.5.0 in favor of {@link PrometheusOutputFormat}
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc
+3-1
Original file line number
Diff line number
Diff line change
@@ -543,11 +543,13 @@ scrape_configs:
543
543
----
544
544
545
545
https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage[Prometheus Exemplars] are also supported.
546
-
To enable this feature, a `SpanContextSupplier` bean should be present.
546
+
To enable this feature, a `SpanContext` bean should be present.
547
+
If you're using the deprecated Prometheus simpleclient support and want to enable that feature, a `SpanContextSupplier` bean should be present.
547
548
If you use https://micrometer.io/docs/tracing[Micrometer Tracing], this will be auto-configured for you, but you can always create your own if you want.
548
549
Please check the https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage[Prometheus Docs], since this feature needs to be explicitly enabled on Prometheus' side, and it is only supported using the https://github.com/OpenObservability/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#exemplars[OpenMetrics] format.
549
550
550
551
For ephemeral or batch jobs that may not exist long enough to be scraped, you can use https://github.com/prometheus/pushgateway[Prometheus Pushgateway] support to expose the metrics to Prometheus.
552
+
The Prometheus Pushgateway only works with the deprecated Prometheus simpleclient for now, until the Prometheus client 1.x adds support for it.
551
553
To enable Prometheus Pushgateway support, add the following dependency to your project:
0 commit comments