Update nginx layouts to be rates rather than absolutes
parent
99eba5eb02
commit
3ec929d2d3
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue