72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
{
|
|
"id": "e9c01550-5b33-44a1-8f5f-9a4b460c36d3",
|
|
"meta": {
|
|
"name": "Varnish",
|
|
"measurements": ["varnish"],
|
|
"version": "1.1",
|
|
"dashboardVersion": "1.x",
|
|
"description": "Dashboard for the telegraf input plug-in: Varnish",
|
|
"author": "influxdata",
|
|
"license": "MIT",
|
|
"icon": "",
|
|
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/varnish"
|
|
},
|
|
"data": {
|
|
"cells": [
|
|
{
|
|
"w": 12,
|
|
"h": 4,
|
|
"name": "Varnish - Cache Hits/Misses",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT non_negative_derivative(mean(cache_hit)) AS hits, non_negative_derivative(mean(cache_miss)) AS misses FROM \":db:\".\":rp:\".\"varnish\" 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": ["", ""]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"tempVar": ":host:",
|
|
"id": "",
|
|
"type": "tagValues",
|
|
"label": "",
|
|
"values": [],
|
|
"query": {
|
|
"influxql": "SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:",
|
|
"db": "telegraf",
|
|
"measurement": "varnish",
|
|
"tagKey": "host",
|
|
"fieldKey": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|