-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
I do not see any HTTP server request/response metrics, such as:
http.server.request.duration
Otel is sending only jvm related metrics
example
jvm_memory_committed_total
{instance="f3eb0e4f-c802-43ee-ae17-0d5d857bf1d3",
job="local-inventory-management-service",
jvm_memory_pool_name="G1 Eden Space",
jvm_memory_type="heap"}
jvm_class_unloaded_total
{instance="f3eb0e4f-c802-43ee-ae17-0d5d857bf1d3",
job="local-inventory-management-service"
}
I am using the spring boot starter
dependencyManagement {
imports {
mavenBom("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.20.0")
mavenBom "io.netty:netty-bom:4.2.4.Final"
}
}
dependencies{
implementation 'io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter'
implementation 'io.opentelemetry:opentelemetry-sdk-extension-autoconfigure'
implementation 'org.springframework.boot:spring-boot-starter-actuator' // not sure this is needed
implementation 'io.micrometer:micrometer-registry-prometheus' //not sure this is needed
runtimeOnly 'io.opentelemetry:opentelemetry-exporter-otlp:1.43.0'
runtimeOnly 'io.opentelemetry:opentelemetry-sdk-metrics'
}
My application .property file
application.properties
otel.service.name= my-service-name
otel.exporter.otlp.endpoint= https://myurl-where-otel-is-deployed
otel.exporter.otlp.headers=Authorization=Basic user:pass
otel.metrics.exporter=otlp
otel.traces.exporter=otlp
otel.logs.exporter=none
otel.instrumentation.spring-web.enabled=true
otel.instrumentation.spring-web.metrics.enabled=true
otel.instrumentation.http-server.metrics.enabled=true
otel.instrumentation.spring-webclient.enabled=true
otel.instrumentation.spring-webclient.metrics.enabled=true
otel.java.global-autoconfigure.enabled=true
Please let me know am I missing anything,
or any more info is needed
Originally posted by @Prateek-Wayne in #14715