add metrics for process stats

Tested on a COS VM:

```
$ curl -s localhost:20257/metrics | grep "^system_"
system_interrupts_total{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 8.759236e+07
system_processes_total{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 692506
system_procs_blocked{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 0
system_procs_running{kernel_version="5.4.49+",os_version="cos 85-13310.1041.24"} 2
```
This commit is contained in:
Karan Goel
2021-01-13 09:14:08 -08:00
parent b951f24297
commit 71098097c0
7 changed files with 132 additions and 8 deletions
+13 -1
View File
@@ -15,7 +15,19 @@
},
"cpu/load_15m": {
"displayName": "cpu/load_15m"
}
},
"system/processes_total": {
"displayName": "system/processes_total"
},
"system/procs_running": {
"displayName": "system/procs_running"
},
"system/procs_blocked": {
"displayName": "system/procs_blocked"
},
"system/interrupts_total": {
"displayName": "system/interrupts_total"
}
}
},
"disk": {