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
# HELP promexample_runtime_jvm_gc_count The number of collections that have occurred for a given JVM garbage collector.
# TYPE promexample_runtime_jvm_gc_count counter
# HELP promexample_runtime_jvm_gc_time Time spent in a given JVM garbage collector in milliseconds.
# TYPE promexample_runtime_jvm_gc_time counter
# HELP promexample_runtime_jvm_memory_area Bytes of a given JVM memory area.
# TYPE promexample_runtime_jvm_memory_area gauge
blabla
# HELP promexample_runtime_jvm_memory_pool Bytes of a given JVM memory pool.
# TYPE promexample_runtime_jvm_memory_pool gauge
blabla
# HELP promexample_system_disk_io System disk IO
# TYPE promexample_system_disk_io counter
blabla
# HELP promexample_system_disk_operations System disk operations
# TYPE promexample_system_disk_operations counter
blabla
# HELP promexample_system_memory_usage System memory usage
# TYPE promexample_system_memory_usage gauge
blabla
# HELP promexample_system_memory_utilization System memory utilization
# TYPE promexample_system_memory_utilization gauge
blabla
# HELP promexample_system_network_errors System network errors
# TYPE promexample_system_network_errors counter
blabla
# HELP promexample_system_network_io System network IO
# TYPE promexample_system_network_io counter
blabla
# HELP promexample_system_network_packets System network packets
# TYPE promexample_system_network_packets counter
ProcessMetrics is missing.
But When I disable the javaagent oshi, manually code like this :
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import io.opentelemetry.instrumentation.oshi.ProcessMetrics;
import io.opentelemetry.instrumentation.oshi.SystemMetrics;
@SpringBootApplication
public class DemoApplication {
static {
ProcessMetrics.registerObservers();
SystemMetrics.registerObservers();
}
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
and the add -Dotel.instrumentation.oshi.enabled=false
my collector receive the ProcessMetrics:
# HELP promexample_runtime_java_cpu_time Runtime Java CPU time
# TYPE promexample_runtime_java_cpu_time gauge
blabla
# HELP promexample_runtime_java_memory Runtime Java memory
# TYPE promexample_runtime_java_memory gauge
blabla
# HELP promexample_runtime_jvm_gc_count The number of collections that have occurred for a given JVM garbage collector.
# TYPE promexample_runtime_jvm_gc_count counter
blabla
# HELP promexample_runtime_jvm_gc_time Time spent in a given JVM garbage collector in milliseconds.
# TYPE promexample_runtime_jvm_gc_time counter
blabla
# HELP promexample_runtime_jvm_memory_area Bytes of a given JVM memory area.
# TYPE promexample_runtime_jvm_memory_area gauge
blabla
# HELP promexample_runtime_jvm_memory_pool Bytes of a given JVM memory pool.
# TYPE promexample_runtime_jvm_memory_pool gauge
blabla
# HELP promexample_system_disk_io System disk IO
# TYPE promexample_system_disk_io counter
blabla
# HELP promexample_system_disk_operations System disk operations
# TYPE promexample_system_disk_operations counter
blabla
# HELP promexample_system_memory_usage System memory usage
# TYPE promexample_system_memory_usage gauge
blabla
# HELP promexample_system_memory_utilization System memory utilization
# TYPE promexample_system_memory_utilization gauge
blabla
# HELP promexample_system_network_errors System network errors
# TYPE promexample_system_network_errors counter
blabla
# HELP promexample_system_network_io System network IO
# TYPE promexample_system_network_io counter
blabla
# HELP promexample_system_network_packets System network packets
# TYPE promexample_system_network_packets counter
and I do somethine wrong ?
The text was updated successfully, but these errors were encountered:
my app start with
my pom.xml
my collector receive all the metrics like this
ProcessMetrics is missing.
But When I disable the javaagent oshi, manually code like this :
and the add -Dotel.instrumentation.oshi.enabled=false
my collector receive the ProcessMetrics:
and I do somethine wrong ?
The text was updated successfully, but these errors were encountered: