Skip to content
Snippets Groups Projects
Commit 8f46f1b1 authored by ale's avatar ale
Browse files

Update the HTTP Grafana dashboard with cache metrics

parent dd67f45b
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
"editable": true, "editable": true,
"gnetId": null, "gnetId": null,
"graphTooltip": 1, "graphTooltip": 1,
"id": 2, "iteration": 1577011457110,
"iteration": 1560275101593,
"links": [], "links": [],
"panels": [ "panels": [
{ {
...@@ -26,6 +25,7 @@ ...@@ -26,6 +25,7 @@
"dashes": false, "dashes": false,
"datasource": "localhost", "datasource": "localhost",
"fill": 1, "fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 12, "w": 12,
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false, "percentage": false,
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
...@@ -111,6 +114,7 @@ ...@@ -111,6 +114,7 @@
"dashes": false, "dashes": false,
"datasource": "localhost", "datasource": "localhost",
"fill": 1, "fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 12, "w": 12,
...@@ -131,6 +135,9 @@ ...@@ -131,6 +135,9 @@
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false, "percentage": false,
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
...@@ -141,11 +148,11 @@ ...@@ -141,11 +148,11 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "topk(10, global:nginx_http_requests_errs:rate5m{vhost=~\"^$vhost$\"})", "expr": "topk(10, sum(rate(nginx_http_requests{vhost=~\"^$vhost\",code=~\"[45].*\"}[5m])) by (code))",
"format": "time_series", "format": "time_series",
"interval": "", "interval": "",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{vhost}}", "legendFormat": "{{code}}",
"refId": "A" "refId": "A"
} }
], ],
...@@ -153,7 +160,7 @@ ...@@ -153,7 +160,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Errors by host", "title": "Errors by code",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
...@@ -197,6 +204,7 @@ ...@@ -197,6 +204,7 @@
"dashes": false, "dashes": false,
"datasource": "localhost", "datasource": "localhost",
"fill": 1, "fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 12, "w": 12,
...@@ -217,6 +225,9 @@ ...@@ -217,6 +225,9 @@
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false, "percentage": false,
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
...@@ -282,6 +293,7 @@ ...@@ -282,6 +293,7 @@
"dashes": false, "dashes": false,
"datasource": "localhost", "datasource": "localhost",
"fill": 1, "fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 12, "w": 12,
...@@ -302,6 +314,9 @@ ...@@ -302,6 +314,9 @@
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false, "percentage": false,
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
...@@ -324,7 +339,7 @@ ...@@ -324,7 +339,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Error percentage", "title": "Error percentage (5XX)",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
...@@ -368,6 +383,7 @@ ...@@ -368,6 +383,7 @@
"dashes": false, "dashes": false,
"datasource": "localhost", "datasource": "localhost",
"fill": 0, "fill": 0,
"fillGradient": 0,
"gridPos": { "gridPos": {
"h": 6, "h": 6,
"w": 12, "w": 12,
...@@ -388,6 +404,9 @@ ...@@ -388,6 +404,9 @@
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"nullPointMode": "null", "nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false, "percentage": false,
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
...@@ -460,10 +479,97 @@ ...@@ -460,10 +479,97 @@
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} }
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 12
},
"id": 11,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "global:nginx_http_cached_requests:ratio{vhost=~\"^$vhost\"}",
"legendFormat": "{{cache_status}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Cache Status",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "percentunit",
"label": null,
"logBase": 1,
"max": "1",
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
} }
], ],
"refresh": "10s", "refresh": "10s",
"schemaVersion": 18, "schemaVersion": 20,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
...@@ -528,5 +634,5 @@ ...@@ -528,5 +634,5 @@
"timezone": "", "timezone": "",
"title": "HTTP", "title": "HTTP",
"uid": "xCSUMFnmz", "uid": "xCSUMFnmz",
"version": 4 "version": 5
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment