111 lines
2.9 KiB
JSON
111 lines
2.9 KiB
JSON
{
|
||
"id": "13863734-d579-4834-9ac1-b01c10398970",
|
||
"meta": {
|
||
"name": "Ping",
|
||
"measurements": ["ping"],
|
||
"version": "1.1",
|
||
"dashboardVersion": "1.x",
|
||
"description": "Dashboard for the telegraf input plug-in: Ping",
|
||
"author": "influxdata",
|
||
"license": "MIT",
|
||
"icon": "",
|
||
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/ping"
|
||
},
|
||
"data": {
|
||
"cells": [
|
||
{
|
||
"w": 4,
|
||
"h": 4,
|
||
"name": "Ping – Packet Loss Percent",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT max(\"percent_packet_loss\") AS \"packet_loss\" FROM \":db:\".\":rp:\".\"ping\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"url\"",
|
||
"groupbys": ["\"url\""]
|
||
}
|
||
],
|
||
"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": "Ping – Response Times (ms)",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT mean(\"average_response_ms\") AS \"average\", mean(\"minimum_response_ms\") AS \"min\", mean(\"maximum_response_ms\") AS \"max\" FROM \":db:\".\":rp:\".\"ping\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"url\"",
|
||
"groupbys": ["\"url\""]
|
||
}
|
||
],
|
||
"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": "ping",
|
||
"tagKey": "host",
|
||
"fieldKey": ""
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|