Replies: 3 comments
-
There is an error message in the log2024-06-25 13:39:56.585 DEBUG 32557 --- [alina-utility-2] org.apache.catalina.session.ManagerBase : Start expire sessions StandardManager at 1719293996582 sessioncount 0 |
Beta Was this translation helpful? Give feedback.
-
Default value is once per minute OTEL_METRIC_EXPORT_INTERVAL | The time interval (in milliseconds) between the start of two export attempts. | 60000 |
Beta Was this translation helpful? Give feedback.
-
I added the |
Beta Was this translation helpful? Give feedback.
-
The metric data for etem.machine.memory is only reported once each time the Java program starts; how can I make it report data once per minute instead? Did I use the wrong method?
Can I use scheduleAtFixedRate for this?
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit);
This is my startup configuration. OTEL_METRIC_EXPORT_INTERVAL=10000 configuration does not take effect
opentelemetry-javaagent-1.33.1
otelcol-contrib_0.97.0
-Dotel.javaagent.debug=true -javaagent:/Users/rht/code/opentelemetry-java-instrumentation/javaagent/build/libs/opentelemetry-javaagent-1.33.1.jar -Dotel.service.name=my-service-06 -Dotel.instrumentation.jdbc.enabled=true
environment variables
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317;OTEL_INSTRUMENTATION_COMMON_DB_STATEMENT_SANITIZER_ENABLED=false;OTEL_METRIC_EXPORT_INTERVAL=10000
Beta Was this translation helpful? Give feedback.
All reactions