Skip to content

Commit

Permalink
fix: Nginx dashboard detailed query (#1764)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajesh Rajendran <[email protected]>
  • Loading branch information
rjshrjndrn authored Jul 27, 2020
1 parent 1cadb4d commit abb891a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": 80,
"iteration": 1595407742621,
"iteration": 1595831733218,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -189,19 +189,19 @@
"steppedLine": false,
"targets": [
{
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] offset 1d)) / sum(increase(nginx_http_requests_total[5m] ))) * 100",
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] )) / sum(increase(nginx_http_requests_total[5m] ))) * 100",
"interval": "",
"legendFormat": "Today",
"refId": "A"
},
{
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] offset 1d)) / sum(increase(nginx_http_requests_total[5m] offset 1w))) * 100",
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] offset 1d)) / sum(increase(nginx_http_requests_total[5m] offset 1d))) * 100",
"interval": "",
"legendFormat": "Yesteday",
"refId": "B"
},
{
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] offset 1d)) / sum(increase(nginx_http_requests_total[5m] offset 1d))) * 100",
"expr": "(sum(increase(nginx_http_requests_total{status!~\"4..|5..\"}[5m] offset 1w)) / sum(increase(nginx_http_requests_total[5m] offset 1w))) * 100",
"interval": "",
"legendFormat": "Last Week",
"refId": "C"
Expand Down Expand Up @@ -297,13 +297,13 @@
"steppedLine": false,
"targets": [
{
"expr": "(sum(increase(nginx_http_requests_total{ status!~\"2..|3..\"}[5m] offset 1w)) / sum(increase(nginx_http_requests_total[5m]))) * 100",
"expr": "(sum(increase(nginx_http_requests_total{ status!~\"2..|3..\"}[5m])) / sum(increase(nginx_http_requests_total[5m]))) * 100",
"interval": "",
"legendFormat": "Today",
"refId": "A"
},
{
"expr": "(sum(increase(nginx_http_requests_total{ status!~\"2..|3..\"}[5m] offset 1w)) / sum(increase(nginx_http_requests_total[5m] offset 1d))) * 100",
"expr": "(sum(increase(nginx_http_requests_total{ status!~\"2..|3..\"}[5m] offset 1d)) / sum(increase(nginx_http_requests_total[5m] offset 1d))) * 100",
"interval": "",
"legendFormat": "Yesterday",
"refId": "B"
Expand Down Expand Up @@ -1201,5 +1201,5 @@
"timezone": "",
"title": "Nginx Detailed",
"uid": "9wKzPxZMz",
"version": 10
"version": 11
}

0 comments on commit abb891a

Please sign in to comment.