Skip to content

Instantly share code, notes, and snippets.

@NWMichl
Created January 10, 2021 22:43
Show Gist options
  • Save NWMichl/d664753a05e5f2137f74b25b3991aeb1 to your computer and use it in GitHub Desktop.
Save NWMichl/d664753a05e5f2137f74b25b3991aeb1 to your computer and use it in GitHub Desktop.
Grafana panel idea to visualize Telegraf inputs.ping metrics, a nice alternative to Smokeping.
{
"aliasColors": {},
"dashLength": 10,
"datasource": "InfluxDB",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 1,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"pluginVersion": "7.3.1",
"pointradius": 2,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:1300",
"alias": "Avg",
"color": "#37872D",
"fill": 0,
"linewidth": 2,
"zindex": 1
},
{
"$$hashKey": "object:1301",
"alias": "Max",
"color": "#1F60C4",
"fill": 0,
"fillBelowTo": "Min",
"lines": false
},
{
"$$hashKey": "object:1302",
"alias": "Min",
"color": "#1F60C4",
"fill": 0
},
{
"$$hashKey": "object:1303",
"alias": "StdDev",
"color": "#FA6400",
"lines": false,
"pointradius": 1,
"points": true
},
{
"$$hashKey": "object:1304",
"alias": "Loss",
"color": "#C4162A",
"lines": false,
"pointradius": 1,
"points": true,
"yaxis": 2
},
{
"$$hashKey": "object:198",
"alias": "Min",
"lines": false
}
],
"spaceLength": 10,
"targets": [
{
"alias": "$col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "ping",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"average_response_ms"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Avg"
],
"type": "alias"
}
],
[
{
"params": [
"maximum_response_ms"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Max"
],
"type": "alias"
}
],
[
{
"params": [
"minimum_response_ms"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Min"
],
"type": "alias"
}
],
[
{
"params": [
"standard_deviation_ms"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"StdDev"
],
"type": "alias"
}
],
[
{
"params": [
"percent_packet_loss"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Loss"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "url",
"operator": "=",
"value": "1.1.1.1"
}
]
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 100,
"yaxis": "left"
}
],
"timeRegions": [],
"title": "Ping",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "ms",
"label": "ICMP echo RTT",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": null,
"format": "percent",
"label": "packet loss",
"logBase": 1,
"max": "100",
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
},
"bars": false,
"dashes": false,
"description": "",
"fillGradient": 0,
"hiddenSeries": false,
"interval": "",
"percentage": false,
"points": false,
"stack": false,
"steppedLine": false,
"timeFrom": null,
"timeShift": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment