[libbeat] beat.cgroup.memory.mem.usage.bytes should be a gauge in metrics #31582
Labels
8.6-candidate
bug
good first issue
Indicates a good issue for first-time contributors
libbeat
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
Periodic metrics logged by Beats can include a negative value:
"monitoring.metrics.beat.cgroup.memory.mem.usage.bytes": -327680,
These metrics work by diffing the previous value (from -30s ago) to the current value. So if the value is a gauge (goes up and down) rather than a counter you get this problem. There is a list of metric names that are gauges in the code at
beats/libbeat/monitoring/report/log/log.go
Lines 39 to 66 in 0c20dbb
beat.cgroup.memory.mem.usage.bytes
is not listed there.beat.cgroup.memory.mem.usage.bytes
needs added to that list.The text was updated successfully, but these errors were encountered: