From 3acebf49da60a7293fe3397ab117c7fed3e2ab40 Mon Sep 17 00:00:00 2001 From: Nicky Semenza Date: Fri, 28 Apr 2017 15:25:59 -0400 Subject: [PATCH] add canned dashboard for phpfpm --- CHANGELOG.md | 1 + README.md | 1 + canned/phpfpm.json | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 canned/phpfpm.json diff --git a/CHANGELOG.md b/CHANGELOG.md index b5f6170a3..30e7dd6a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ 1. [#1340](https://github.com/influxdata/chronograf/pull/1340): Fix no active query in DE and Cell editing 1. [#1338](https://github.com/influxdata/chronograf/pull/1338): Require url and name when adding a new source 1. [#1348](https://github.com/influxdata/chronograf/pull/1348): Fix broken 'Add Kapacitor' Link + 1. [#1348](https://github.com/influxdata/chronograf/pull/1350): Add a canned dashboard for phpfpm ### Features diff --git a/README.md b/README.md index e59c02984..c94d7fa6b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Currently, Chronograf offers dashboard templates for the following Telegraf inpu * Network * [NGINX](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/nginx) * [NSQ](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/nsq) +* [PHPfpm](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/phpfpm) * [Ping](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/ping) * [PostgreSQL](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/postgresql) * Processes diff --git a/canned/phpfpm.json b/canned/phpfpm.json new file mode 100644 index 000000000..7a3c3f71e --- /dev/null +++ b/canned/phpfpm.json @@ -0,0 +1,76 @@ +{ + "id": "e6b69c66-6183-4728-9f1d-1b0f1fc01b7d", + "measurement": "phpfpm", + "app": "phpfpm", + "autoflow": true, + "cells": [ + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "da42044d-8d10-4e3c-a0a2-41512266fd00", + "name": "phpfpm – Accepted Connections", + "queries": [ + { + "query": "SELECT non_negative_derivative(mean(\"accepted_conn\"),1s) FROM \"phpfpm\"", + "label": "count", + "groupbys": [ + "\"pool\"" + ] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "7aae5ec6-dbaf-4926-b922-d585e6a869be", + "name": "phpfpm – Processes", + "queries": [ + { + "query": "SELECT mean(\"active_processes\") as \"active\",mean(\"idle_processes\") as \"idle\" FROM \"phpfpm\"", + "label": "count", + "groupbys": [ + "\"pool\"" + ] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "e4de9091-7250-4634-bf38-81a441ef0f27", + "name": "phpfpm – Slow Requests", + "queries": [ + { + "query": "SELECT non_negative_derivative(mean(\"slow_requests\"),1s) FROM \"phpfpm\"", + "label": "count", + "groupbys": [ + "\"pool\"" + ] + } + ] + }, + { + "x": 0, + "y": 0, + "w": 4, + "h": 4, + "i": "7ed72ef0-a429-4edd-9c8e-a11625a279c2", + "name": "phpfpm – Max Children Reached", + "queries": [ + { + "query": "SELECT mean(\"max_children_reached\") FROM \"phpfpm\"", + "label": "count", + "groupbys": [ + "\"pool\"" + ] + } + ] + } + ] +}