Add layout for telegraf's procstat measurement
parent
1649b83473
commit
03c546cfd2
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"id": "44644fae-21e7-4897-81e6-b11d2643cd61",
|
||||
"measurement": "procstat",
|
||||
"app": "system",
|
||||
"autoflow": true,
|
||||
"cells": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 4,
|
||||
"h": 4,
|
||||
"i": "e75a6baa-9938-4ade-b83f-55a239039964",
|
||||
"name": "Processes – Resident Memory (MB)",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT max(\"memory_rss\") / 1000000 AS \"max_mb_memory_rss\" FROM \"procstat\"",
|
||||
"groupbys": ["\"exe\""],
|
||||
"wheres": [],
|
||||
"label": "MB"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 4,
|
||||
"h": 4,
|
||||
"i": "2bfae447-47c6-4f85-9fec-494301d29a04",
|
||||
"name": "Processes – CPU Usage %",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT max(\"cpu_usage\") AS \"cpu_usage\" FROM \"procstat\"",
|
||||
"groupbys": ["\"exe\""],
|
||||
"wheres": [],
|
||||
"label": "%"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue