diff --git a/canned/docker.json b/canned/docker.json index 496684165..c924518f3 100644 --- a/canned/docker.json +++ b/canned/docker.json @@ -37,6 +37,73 @@ "wheres": [] } ] - } + }, + { + "x": 0, + "y": 0, + "w": 4, + "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": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "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": [] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "4c79cefb-5152-410c-9b88-74f9bff7ef03", + "name": "Docker - Container State", + "queries": [ + { + "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": [] + } + ] + } ] } diff --git a/canned/docker_blkio.json b/canned/docker_blkio.json new file mode 100644 index 000000000..9647ee2c1 --- /dev/null +++ b/canned/docker_blkio.json @@ -0,0 +1,46 @@ +{ + "id": "0e980b97-c162-487b-a815-3f955df62440", + "measurement": "docker_container_blkio", + "app": "docker", + "autoflow": true, + "cells": [ + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "4c79cefb-5152-410c-9b88-74f9bff7ef50", + "name": "Docker - Container Block IO", + "queries": [ + { + "query": "SELECT max(\"io_serviced_recursive_read\") AS \"max_io_read\" FROM \"docker_container_blkio\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + }, + { + "query": "SELECT max(\"io_serviced_recursive_sync\") AS \"max_io_sync\" FROM \"docker_container_blkio\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + }, + { + "query": "SELECT max(\"io_serviced_recursive_write\") AS \"max_io_write\" FROM \"docker_container_blkio\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + }, + { + "query": "SELECT max(\"io_serviced_recursive_total\") AS \"max_io_total\" FROM \"docker_container_blkio\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + } + ] + } + ] +} diff --git a/canned/docker_net.json b/canned/docker_net.json new file mode 100644 index 000000000..35ac0104c --- /dev/null +++ b/canned/docker_net.json @@ -0,0 +1,32 @@ +{ + "id": "0e980b97-c162-487b-a815-3f955df62430", + "measurement": "docker_container_net", + "app": "docker", + "autoflow": true, + "cells": [ + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "4c79cefb-5152-410c-9b88-74f9bff7ef23", + "name": "Docker - Container Network", + "queries": [ + { + "query": "SELECT derivative(mean(\"tx_bytes\"), 10s) AS \"net_tx_bytes\" FROM \"docker_container_net\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + }, + { + "query": "SELECT derivative(mean(\"rx_bytes\"), 10s) AS \"net_rx_bytes\" FROM \"docker_container_net\"", + "groupbys": [ + "\"container_name\"" + ], + "wheres": [] + } + ] + } + ] +}