183 lines
4.6 KiB
JSON
183 lines
4.6 KiB
JSON
{
|
|
"id": "f2c6c654-c554-4092-a065-22d01c7004ea",
|
|
"meta": {
|
|
"name": "Redis",
|
|
"measurements": ["redis"],
|
|
"version": "1.0",
|
|
"dashboardVersion": "1.x",
|
|
"description": "Dashboard for the telegraf input plug-in: Redis",
|
|
"author": "influxdata",
|
|
"license": "MIT",
|
|
"icon": "",
|
|
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/redis"
|
|
},
|
|
"data": {
|
|
"cells": [
|
|
{
|
|
"w": 4,
|
|
"h": 4,
|
|
"name": "Redis - Connected Clients",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT mean(\"clients\") AS \"clients\" FROM \":db:\".\":rp:\".\"redis\" 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": "Redis - Blocked Clients",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT mean(\"blocked_clients\") AS \"blocked_clients\" FROM \":db:\".\":rp:\".\"redis\" 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": "Redis - CPU",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT non_negative_derivative(max(\"used_cpu_user\")) AS \"used_cpu_per_second\" FROM \":db:\".\":rp:\".\"redis\" 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": "Redis - Memory",
|
|
"queries": [
|
|
{
|
|
"query": "SELECT non_negative_derivative(max(\"used_memory\")) AS \"used_memory_per_second\" FROM \":db:\".\":rp:\".\"redis\" 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": "redis",
|
|
"tagKey": "host",
|
|
"fieldKey": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|