Add system memory metrics in v3 (#19486)

Following memory metrics will be added under /system/memory

- available
- buffers
- cache
- free
- shared
- total
- used
- used_perc
This commit is contained in:
Shireesh Anjal
2024-04-17 10:40:25 +05:30
committed by GitHub
parent f65dd3e5a2
commit 6df76ca73c
5 changed files with 123 additions and 9 deletions
-9
View File
@@ -50,15 +50,6 @@ const (
interfaceTxBytes MetricName = "tx_bytes"
interfaceTxErrors MetricName = "tx_errors"
// memory stats
memUsed MetricName = "used"
memUsedPerc MetricName = "used_perc"
memFree MetricName = "free"
memShared MetricName = "shared"
memBuffers MetricName = "buffers"
memCache MetricName = "cache"
memAvailable MetricName = "available"
// cpu stats
cpuUser MetricName = "user"
cpuSystem MetricName = "system"