chronograf/protoboards/system.json

516 lines
14 KiB
JSON
Raw Normal View History

{
"id": "ca968048-f31c-4ce4-8bb4-8d178dda39d1",
"meta": {
"name": "System",
"measurements": [
"cpu",
"disk",
"diskio",
"system",
"mem",
"net",
"netstat",
"processes",
"procstat"
],
"version": "1.0",
"dashboardVersion": "1.x",
"description": "Dashboard for the telegraf input plug-in: system",
"author": "influxdata",
"license": "MIT",
"icon": "",
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system"
},
"data": {
"cells": [
{
"w": 4,
"h": 4,
"name": "CPU Usage",
"queries": [
{
"query": "SELECT 100 - mean(\"usage_idle\") AS \"usage\" FROM \":db:\".\":rp:\".\"cpu\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
"label": "% CPU time"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "% CPU time",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System - Disk used %",
"queries": [
{
"query": "SELECT mean(\"used_percent\") AS \"used_percent\" FROM \":db:\".\":rp:\".\"disk\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"path\"",
"groupbys": ["\"path\""],
"label": "% used"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "% used",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System Disk MB/s",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"read_bytes\"), 1s) / 1000000 AS \"read_megabytes_per_second\" FROM \":db:\".\":rp:\".\"diskio\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"name\"",
"groupbys": ["\"name\""],
"label": "MB/s"
},
{
"query": "SELECT non_negative_derivative(max(\"write_bytes\"), 1s) / 1000000 AS \"write_megabytes_per_second\" FROM \":db:\".\":rp:\".\"diskio\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"name\"",
"groupbys": ["\"name\""]
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "MB/s",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System Load",
"queries": [
{
"query": "SELECT mean(\"load1\") AS \"load\" FROM \":db:\".\":rp:\".\"system\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System - Memory Gigabytes Used",
"queries": [
{
"query": "SELECT mean(\"used\") / 1073741824 AS \"used\", mean(\"available\") / 1073741824 AS \"available\" FROM \":db:\".\":rp:\".\"mem\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
"label": "GB"
}
],
"type": "line-stacked",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "GB",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System Network Mb/s",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"bytes_recv\"), 1s) / 125000 as \"rx_megabits_per_second\" FROM \":db:\".\":rp:\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)",
"label": "Mb/s"
},
{
"query": "SELECT non_negative_derivative(max(\"bytes_sent\"), 1s) / 125000 as \"tx_megabits_per_second\" FROM \":db:\".\":rp:\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "Mb/s",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System Network Error Rate",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"err_in\"), 1s) / 125000 as \"tx_errors_per_second\" FROM \":db:\".\":rp:\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
},
{
"query": "SELECT non_negative_derivative(max(\"err_out\"), 1s) / 125000 as \"rx_errors_per_second\" FROM \":db:\".\":rp:\".\"net\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System - Open Sockets",
"queries": [
{
"query": "SELECT mean(\"tcp_established\") AS \"tcp_established\" FROM \":db:\".\":rp:\".\"netstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
},
{
"query": "SELECT mean(\"udp_socket\") AS \"udp_socket\" FROM \":db:\".\":rp:\".\"netstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System - Sockets Created/Second ",
"queries": [
{
"query": "SELECT non_negative_derivative(max(\"tcp_established\")) AS \"tcp_established\" FROM \":db:\".\":rp:\".\"netstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
},
{
"query": "SELECT non_negative_derivative(max(\"udp_socket\")) AS \"udp_socket\" FROM \":db:\".\":rp:\".\"netstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "System - Total Processes",
"queries": [
{
"query": "SELECT mean(\"total\") AS \"total\" FROM \":db:\".\":rp:\".\"processes\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "Processes Resident Memory (MB)",
"queries": [
{
"query": "SELECT max(\"memory_rss\") / 1000000 AS \"max_mb_memory_rss\" FROM \":db:\".\":rp:\".\"procstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"exe\"",
"groupbys": ["\"exe\""],
"label": "MB"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "MB",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
},
{
"w": 4,
"h": 4,
"name": "Processes CPU Usage %",
"queries": [
{
"query": "SELECT max(\"cpu_usage\") AS \"cpu_usage\" FROM \":db:\".\":rp:\".\"procstat\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"exe\"",
"groupbys": ["\"exe\""],
"label": "%"
}
],
"type": "line",
"axes": {
"x": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y": {
"prefix": "",
"suffix": "%",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
},
"y2": {
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear",
"label": "",
"bounds": ["", ""]
}
}
}
],
"templates": [
{
"tempVar": ":host:",
"id": "",
"type": "tagValues",
"label": "",
"values": [],
"query": {
"influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:",
"db": "telegraf",
"measurement": "cpu",
"tagKey": "host",
"fieldKey": ""
}
}
]
}
}