191 lines
5.0 KiB
JSON
191 lines
5.0 KiB
JSON
{
|
||
"id": "3c6775c6-ee39-4f74-a454-2c3a3d65bc2a",
|
||
"meta": {
|
||
"name": "PHPfpm",
|
||
"measurements": ["phpfpm"],
|
||
"version": "1.0",
|
||
"dashboardVersion": "1.x",
|
||
"description": "Dashboard for the telegraf input plug-in: PHPfpm",
|
||
"author": "influxdata",
|
||
"license": "MIT",
|
||
"icon": "",
|
||
"url": "https://github.com/influxdata/telegraf/tree/master/plugins/inputs/phpfpm"
|
||
},
|
||
"data": {
|
||
"cells": [
|
||
{
|
||
"w": 4,
|
||
"h": 4,
|
||
"name": "phpfpm – Accepted Connections",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT non_negative_derivative(mean(\"accepted_conn\"),1s) FROM \":db:\".\":rp:\".\"phpfpm\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"pool\"",
|
||
"groupbys": ["\"pool\""],
|
||
"label": "count"
|
||
}
|
||
],
|
||
"type": "line",
|
||
"axes": {
|
||
"x": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y": {
|
||
"prefix": "",
|
||
"suffix": "count",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y2": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"w": 4,
|
||
"h": 4,
|
||
"name": "phpfpm – Processes",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT mean(\"active_processes\") as \"active\",mean(\"idle_processes\") as \"idle\" FROM \":db:\".\":rp:\".\"phpfpm\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"pool\"",
|
||
"groupbys": ["\"pool\""],
|
||
"label": "count"
|
||
}
|
||
],
|
||
"type": "line",
|
||
"axes": {
|
||
"x": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y": {
|
||
"prefix": "",
|
||
"suffix": "count",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y2": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"w": 4,
|
||
"h": 4,
|
||
"name": "phpfpm – Slow Requests",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT non_negative_derivative(mean(\"slow_requests\"),1s) FROM \":db:\".\":rp:\".\"phpfpm\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"pool\"",
|
||
"groupbys": ["\"pool\""],
|
||
"label": "count"
|
||
}
|
||
],
|
||
"type": "line",
|
||
"axes": {
|
||
"x": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y": {
|
||
"prefix": "",
|
||
"suffix": "count",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y2": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"w": 4,
|
||
"h": 4,
|
||
"name": "phpfpm – Max Children Reached",
|
||
"queries": [
|
||
{
|
||
"query": "SELECT mean(\"max_children_reached\") FROM \":db:\".\":rp:\".\"phpfpm\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:), \"pool\"",
|
||
"groupbys": ["\"pool\""],
|
||
"label": "count"
|
||
}
|
||
],
|
||
"type": "line",
|
||
"axes": {
|
||
"x": {
|
||
"prefix": "",
|
||
"suffix": "",
|
||
"base": "10",
|
||
"scale": "linear",
|
||
"label": "",
|
||
"bounds": ["", ""]
|
||
},
|
||
"y": {
|
||
"prefix": "",
|
||
"suffix": "count",
|
||
"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": "phpfpm",
|
||
"tagKey": "host",
|
||
"fieldKey": ""
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|