Update canned layouts via PUT request, rather than manually
parent
2ef362da93
commit
bc0f8b3556
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "0e980b97-c162-487b-a815-3f955df6243f",
|
||||
"measurement": "docker",
|
||||
"app": "docker",
|
||||
"measurement": "docker",
|
||||
"autoflow": true,
|
||||
"cells": [
|
||||
{
|
||||
|
@ -11,16 +11,15 @@
|
|||
"h": 4,
|
||||
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef22",
|
||||
"name": "Docker - Container CPU",
|
||||
"type": "line-stacked",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT mean(\"usage_percent\") AS \"usage_percent\" FROM \"docker_container_cpu\"",
|
||||
"groupbys": [
|
||||
"\"container_name\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"type": "line-stacked"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
|
@ -29,16 +28,15 @@
|
|||
"h": 4,
|
||||
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef00",
|
||||
"name": "Docker - Container Memory",
|
||||
"type": "line-stepplot",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT mean(\"usage\") AS \"usage\" FROM \"docker_container_mem\"",
|
||||
"groupbys": [
|
||||
"\"container_name\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"type": "line-stepplot"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
|
@ -47,16 +45,15 @@
|
|||
"h": 4,
|
||||
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef01",
|
||||
"name": "Docker - Containers",
|
||||
"type": "single-stat",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT max(\"n_containers\") AS \"max_n_containers\" FROM \"docker\"",
|
||||
"groupbys": [
|
||||
"\"host\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"type": "single-stat"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
|
@ -65,18 +62,17 @@
|
|||
"h": 4,
|
||||
"i": "4c79cefb-5152-410c-9b88-74f9bff7ef02",
|
||||
"name": "Docker - Images",
|
||||
"type": "single-stat",
|
||||
"queries": [
|
||||
{
|
||||
"query": "SELECT max(\"n_images\") AS \"max_n_images\" FROM \"docker\"",
|
||||
"groupbys": [
|
||||
"\"host\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
],
|
||||
"type": "single-stat"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 4,
|
||||
|
@ -88,24 +84,22 @@
|
|||
"query": "SELECT max(\"n_containers_running\") AS \"max_n_containers_running\" FROM \"docker\"",
|
||||
"groupbys": [
|
||||
"\"host\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "SELECT max(\"n_containers_stopped\") AS \"max_n_containers_stopped\" FROM \"docker\"",
|
||||
"groupbys": [
|
||||
"\"host\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
},
|
||||
{
|
||||
"query": "SELECT max(\"n_containers_paused\") AS \"max_n_containers_paused\" FROM \"docker\"",
|
||||
"groupbys": [
|
||||
"\"host\""
|
||||
],
|
||||
"wheres": []
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue