Skip to content

Instantly share code, notes, and snippets.

@denzuko
Created August 8, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denzuko/6b372a2fa931929af251627baad2831a to your computer and use it in GitHub Desktop.
Save denzuko/6b372a2fa931929af251627baad2831a to your computer and use it in GitHub Desktop.
{
"meta": {
"chronografVersion": "1.6.1",
"sources": {
"0": {
"name": "http://influxdb:8086",
"link": "/chronograf/v1/sources/0"
}
}
},
"dashboard": {
"id": 1,
"cells": [
{
"i": "732d13d1-fd22-4e4f-ae26-af96262b740b",
"x": 0,
"y": 6,
"w": 12,
"h": 3,
"name": "Disk I/O",
"queries": [
{
"query": "SELECT mean(\"writes\") AS \"mean_writes\" FROM \"telegraf\".\"autogen\".\"diskio\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"name\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "diskio",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_writes",
"args": [
{
"value": "writes",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"name"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
},
{
"query": "SELECT mean(\"reads\") AS \"mean_reads\" FROM \"telegraf\".\"autogen\".\"diskio\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"name\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "diskio",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_reads",
"args": [
{
"value": "reads",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"name"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "f6a5851b-6431-4726-8ecc-e4059087841c",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "ac662855-4306-4b1f-8d04-609e3fdfe19a",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "47336376-b3ba-4a08-8c16-77a238317d33",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"links": {
"self": "/chronograf/v1/dashboards/1/cells/732d13d1-fd22-4e4f-ae26-af96262b740b"
}
},
{
"i": "d90760bc-f59d-470b-a517-681cc4b78a56",
"x": 0,
"y": 3,
"w": 12,
"h": 3,
"name": "Network Input/Output",
"queries": [
{
"query": "SELECT mean(\"bytes_recv\") AS \"mean_bytes_recv\", mean(\"err_in\") AS \"mean_err_in\", mean(\"drop_in\") AS \"mean_drop_in\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"dc\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "net",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_bytes_recv",
"args": [
{
"value": "bytes_recv",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_err_in",
"args": [
{
"value": "err_in",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_drop_in",
"args": [
{
"value": "drop_in",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"dc"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
},
{
"query": "SELECT mean(\"bytes_sent\") AS \"mean_bytes_sent\", mean(\"drop_out\") AS \"mean_drop_out\", mean(\"err_out\") AS \"mean_err_out\" FROM \"telegraf\".\"autogen\".\"net\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"dc\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "net",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_bytes_sent",
"args": [
{
"value": "bytes_sent",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_drop_out",
"args": [
{
"value": "drop_out",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_err_out",
"args": [
{
"value": "err_out",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"dc"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "f6a5851b-6431-4726-8ecc-e4059087841c",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "ac662855-4306-4b1f-8d04-609e3fdfe19a",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "47336376-b3ba-4a08-8c16-77a238317d33",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"links": {
"self": "/chronograf/v1/dashboards/1/cells/d90760bc-f59d-470b-a517-681cc4b78a56"
}
},
{
"i": "a50f03bc-cc4b-4aba-bf8d-448faa9109b3",
"x": 6,
"y": 0,
"w": 6,
"h": 3,
"name": "Ram Usage",
"queries": [
{
"query": "SELECT mean(\"used_percent\") AS \"mean_used_percent\", mean(\"available_percent\") AS \"mean_available_percent\" FROM \"telegraf\".\"autogen\".\"mem\" WHERE time > now() - 1h GROUP BY time(:interval:) FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "mem",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_used_percent",
"args": [
{
"value": "used_percent",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_available_percent",
"args": [
{
"value": "available_percent",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": []
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": {
"upper": "",
"lower": "now() - 1h"
},
"shifts": null
},
"source": "/chronograf/v1/sources/0"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "f6a5851b-6431-4726-8ecc-e4059087841c",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "ac662855-4306-4b1f-8d04-609e3fdfe19a",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "47336376-b3ba-4a08-8c16-77a238317d33",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"links": {
"self": "/chronograf/v1/dashboards/1/cells/a50f03bc-cc4b-4aba-bf8d-448faa9109b3"
}
},
{
"i": "5313658e-56d0-4675-89f9-9bf80ae37422",
"x": 0,
"y": 0,
"w": 6,
"h": 3,
"name": "CPU Usage",
"queries": [
{
"query": "SELECT mean(\"usage_idle\") AS \"mean_usage_idle\", mean(\"usage_system\") AS \"mean_usage_system\", mean(\"usage_user\") AS \"mean_usage_user\" FROM \"telegraf\".\"autogen\".\"cpu\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"dc\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "cpu",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_usage_idle",
"args": [
{
"value": "usage_idle",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_usage_system",
"args": [
{
"value": "usage_system",
"type": "field",
"alias": ""
}
]
},
{
"value": "mean",
"type": "func",
"alias": "mean_usage_user",
"args": [
{
"value": "usage_user",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"dc"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
},
{
"query": "SELECT mean(\"usage_percent\") AS \"mean_usage_percent\" FROM \"telegraf\".\"autogen\".\"docker_container_cpu\" WHERE time > :dashboardTime: GROUP BY time(:interval:), \"container_name\" FILL(null)",
"queryConfig": {
"database": "telegraf",
"measurement": "docker_container_cpu",
"retentionPolicy": "autogen",
"fields": [
{
"value": "mean",
"type": "func",
"alias": "mean_usage_percent",
"args": [
{
"value": "usage_percent",
"type": "field",
"alias": ""
}
]
}
],
"tags": {},
"groupBy": {
"time": "auto",
"tags": [
"container_name"
]
},
"areTagsAccepted": false,
"fill": "null",
"rawText": null,
"range": null,
"shifts": null
},
"source": "/chronograf/v1/sources/0"
}
],
"axes": {
"x": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
},
"y2": {
"bounds": [
"",
""
],
"label": "",
"prefix": "",
"suffix": "",
"base": "10",
"scale": "linear"
}
},
"type": "line",
"colors": [
{
"id": "f6a5851b-6431-4726-8ecc-e4059087841c",
"type": "scale",
"hex": "#31C0F6",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "ac662855-4306-4b1f-8d04-609e3fdfe19a",
"type": "scale",
"hex": "#A500A5",
"name": "Nineteen Eighty Four",
"value": "0"
},
{
"id": "47336376-b3ba-4a08-8c16-77a238317d33",
"type": "scale",
"hex": "#FF7E27",
"name": "Nineteen Eighty Four",
"value": "0"
}
],
"legend": {},
"tableOptions": {
"verticalTimeAxis": true,
"sortBy": {
"internalName": "time",
"displayName": "",
"visible": true
},
"wrapping": "truncate",
"fixFirstColumn": true
},
"fieldOptions": [
{
"internalName": "time",
"displayName": "",
"visible": true
}
],
"timeFormat": "MM/DD/YYYY HH:mm:ss",
"decimalPlaces": {
"isEnforced": true,
"digits": 2
},
"links": {
"self": "/chronograf/v1/dashboards/1/cells/5313658e-56d0-4675-89f9-9bf80ae37422"
}
}
],
"templates": [],
"name": "Preformance Monitoring",
"organization": "default",
"links": {
"self": "/chronograf/v1/dashboards/1",
"cells": "/chronograf/v1/dashboards/1/cells",
"templates": "/chronograf/v1/dashboards/1/templates"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment