Update canned layouts via PUT request, rather than manually

pull/10616/head
Jared Scheib 2017-02-23 17:22:16 -08:00
parent 2ef362da93
commit bc0f8b3556
1 changed files with 21 additions and 27 deletions

View File

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