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
I am currently trying to set up my java-agent for metric gathering with my jboss standalone.conf file where the flags needed for otel are added to it. These are the current flags I am using to start up my JBOSS application and it is not crashing it, however, I am not able to see the metrics sent to my otel-collector ( I only care about metrics but set up the logs and traces to not see anymore errors). -javaagent:opentelemetry-javaagent-all.jar \ -Dotel.exporter=otlp \ -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=otlp \ -Dotel.logs.exporter=otlp \ -Dotel.exporter.otlp.protocol=http/protobuf \ -Dotel.exporter.otlp.traces.protocol=http/protobuf \ -Dotel.exporter.otlp.metrics.protocol=http/protobuf \ -Dotel.exporter.otlp.logs.protocol=http/protobuf \ -Dotel.exporter.otlp.endpoint=http://172.17.x.xxxx:4318 \ -Dotel.exporter.otlp.metrics.endpoint=http://172.17.x.xxx:4318/v1/metrics \ -Dotel.exporter.otlp.traces.endpoint=http://172.17.x.xxxx:4318/v1/traces \ -Dotel.exporter.otlp.logs.endpoint=http://172.17.x.xxxx:4318/v1/logs \ -Dotel.logs.export.interval=1 \ -Dotel.traces.export.interval=1 \ -Dotel.jmx.config=config_file.yaml \ -Dotel.jmx.discovery.delay=0 \ -Dotel.metric.export.interval=1
The config file is just the example one below:
`---
rules:
bean: java.lang:type=Threading
mapping:
ThreadCount:
metric: my.own.jvm.thread.count
type: updowncounter
desc: The current number of threads
unit: "1"
`
The error I am getting is: 2025-02-04 14:04:02,887 ERROR [stderr] [opentelemetry.auto.trace 2025-02-04 14:04:02:887 +0000] [grpc-default-executor-0] WARN io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Error message: INTERNAL: http2 exception
But I am also getting it for the metrics and logs as well. Please let me know if you see something wrong as I just started using otel-collector and java-agent. Thank you!
The text was updated successfully, but these errors were encountered:
Hello everyone,
I am currently trying to set up my java-agent for metric gathering with my jboss standalone.conf file where the flags needed for otel are added to it. These are the current flags I am using to start up my JBOSS application and it is not crashing it, however, I am not able to see the metrics sent to my otel-collector ( I only care about metrics but set up the logs and traces to not see anymore errors).
-javaagent:opentelemetry-javaagent-all.jar \ -Dotel.exporter=otlp \ -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=otlp \ -Dotel.logs.exporter=otlp \ -Dotel.exporter.otlp.protocol=http/protobuf \ -Dotel.exporter.otlp.traces.protocol=http/protobuf \ -Dotel.exporter.otlp.metrics.protocol=http/protobuf \ -Dotel.exporter.otlp.logs.protocol=http/protobuf \ -Dotel.exporter.otlp.endpoint=http://172.17.x.xxxx:4318 \ -Dotel.exporter.otlp.metrics.endpoint=http://172.17.x.xxx:4318/v1/metrics \ -Dotel.exporter.otlp.traces.endpoint=http://172.17.x.xxxx:4318/v1/traces \ -Dotel.exporter.otlp.logs.endpoint=http://172.17.x.xxxx:4318/v1/logs \ -Dotel.logs.export.interval=1 \ -Dotel.traces.export.interval=1 \ -Dotel.jmx.config=config_file.yaml \ -Dotel.jmx.discovery.delay=0 \ -Dotel.metric.export.interval=1
The config file is just the example one below:
`---
rules:
mapping:
ThreadCount:
metric: my.own.jvm.thread.count
type: updowncounter
desc: The current number of threads
unit: "1"
`
The error I am getting is:
2025-02-04 14:04:02,887 ERROR [stderr] [opentelemetry.auto.trace 2025-02-04 14:04:02:887 +0000] [grpc-default-executor-0] WARN io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Error message: INTERNAL: http2 exception
But I am also getting it for the metrics and logs as well. Please let me know if you see something wrong as I just started using otel-collector and java-agent. Thank you!
The text was updated successfully, but these errors were encountered: