From 7754b2e4509ca8bea8ea4e25e3d52b7be75a533b Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 8 Jan 2025 09:53:15 +0000 Subject: [PATCH] Refer to OTLP instead of OpenTelemetry Closes gh-43727 --- .../antora/modules/reference/pages/actuator/metrics.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc index df056a18c6cf..b2b1044c0c2d 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/metrics.adoc @@ -507,10 +507,10 @@ Finally, you can take full control by defining your own javadoc:io.micrometer.ne [[actuator.metrics.export.otlp]] -=== OpenTelemetry +=== OTLP -By default, metrics are exported to {url-micrometer-docs-implementations}/otlp[OpenTelemetry] running on your local machine. -You can provide the location of the https://opentelemetry.io/[OpenTelemetry metric endpoint] to use by using: +By default, metrics are exported over the {url-micrometer-docs-implementations}/otlp[OpenTelemetry protocol (OTLP)] to a consumer running on your local machine. +To export to another location, provide the location of the https://opentelemetry.io/[OTLP metrics endpoint] using configprop:management.otlp.metrics.export.url[]: [configprops,yaml] ---- @@ -521,6 +521,8 @@ management: url: "https://otlp.example.com:4318/v1/metrics" ---- +Custom headers, for example for authentication, can also be provided using configprop:management.otlp.metrics.export.headers.*[] properties. + [[actuator.metrics.export.prometheus]]