grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.37k stars 97 forks source link

Process metrics is reporting negative values for storage units #1258

Open marctc opened 6 days ago

marctc commented 6 days ago

For example, for memory usage, in a cluster i saw this:

process_memory_usage_bytes{asserts_env="demo", instance="lpr537h2", job="default/beyla"}
-5246976
grcevski commented 6 days ago

Maybe an overflow? That looks like a pretty large negative number...

marctc commented 6 days ago

Maybe an overflow? That looks like a pretty large negative number...

If that's the case we have a bug in the calculation, as it would be very hard to have that much memory to overflow an int64, right?