Update nginx layouts to be rates rather than absolutes

pull/10616/head
Chris Goller 2016-11-11 12:16:30 -06:00
parent 99eba5eb02
commit 3ec929d2d3
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
"name": "NGINX Client connections",
"queries": [
{
"query": "select mean(\"accepts\") as \"accepts\", mean(\"handled\") as \"handled\", mean(\"active\") as \"active\" from nginx",
"query": "select non_negative_derivative(max(\"accepts\"), 1s) as \"accepts\", non_negative_derivative(max(\"handled\"), 1s) as \"handled\", non_negative_derivative(max(\"active\"), 1s) as \"active\" from nginx",
"db": "telegraf",
"rp": "",
"groupbys": [
@ -32,7 +32,7 @@
"name": "NGINX Client errors",
"queries": [
{
"query": "select mean(\"accepts\") - mean(\"handled\") as \"dropped\" from nginx",
"query": "select non_negative_derivative(max(\"accepts\")) - non_negative_derivative(max(\"handled\")) from nginx",
"db": "telegraf",
"rp": "",
"groupbys": [
@ -52,7 +52,7 @@
"name": "NGINX Client requests",
"queries": [
{
"query": "select mean(\"requests\") as \"requests\" from nginx",
"query": "select non_negative_derivative(max(\"requests\"), 1s) as \"requests\" from nginx",
"db": "telegraf",
"rp": "",
"groupbys": [
@ -72,7 +72,7 @@
"name": "NGINX Active Client state",
"queries": [
{
"query": "select mean(\"waiting\") as \"waiting\", mean(\"reading\") as \"reading\", mean(\"writing\") as \"writing\" from nginx",
"query": "select non_negative_derivative(max(\"waiting\"), 1s) as \"waiting\", non_negative_derivative(max(\"reading\"), 1s) as \"reading\", non_negative_derivative(max(\"writing\"), 1s) as \"writing\" from nginx",
"db": "telegraf",
"rp": "",
"groupbys": [