Commit ae50318d authored by ale's avatar ale

Fix units on some Grafana dashboards

parent 987cfcb6
Pipeline #3374 passed with stage
in 4 minutes and 38 seconds
{
"__inputs": [
{
"name": "DS_LOCALHOST",
"label": "localhost",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.1.6"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
}
],
"annotations": {
"list": [
{
"$$hashKey": "object:82",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
......@@ -17,7 +46,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1526069737246,
"iteration": 1560210581737,
"links": [],
"panels": [
{
......@@ -25,7 +54,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 6,
......@@ -66,6 +95,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "QPS by vhost",
"tooltip": {
......@@ -109,7 +139,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 6,
......@@ -145,12 +175,13 @@
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{code}}/{{vhost}}",
"legendFormat": "{{vhost}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Errors by host",
"tooltip": {
......@@ -194,7 +225,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 6,
......@@ -226,7 +257,6 @@
"steppedLine": false,
"targets": [
{
"$$hashKey": "object:133",
"expr": "topk(10, sum(rate(nginx_http_requests{vhost=~\"^$vhost$\"}[5m])) by (backend))",
"format": "time_series",
"intervalFactor": 1,
......@@ -236,6 +266,7 @@
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "QPS by backend",
"tooltip": {
......@@ -279,7 +310,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"datasource": "${DS_LOCALHOST}",
"fill": 0,
"gridPos": {
"h": 6,
......@@ -311,33 +342,31 @@
"steppedLine": false,
"targets": [
{
"$$hashKey": "object:307",
"expr": "histogram_quantile(0.5, sum(rate(nginx_http_requests_ms{vhost=~\"^$vhost$\"}[5m])) by (vhost,le))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "50pct",
"legendFormat": "{{vhost}}/50pct",
"refId": "A"
},
{
"$$hashKey": "object:382",
"expr": "histogram_quantile(0.9, sum(rate(nginx_http_requests_ms{vhost=~\"^$vhost$\"}[5m])) by (vhost,le))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "90pct",
"legendFormat": "{{vhost}}/90pct",
"refId": "B"
},
{
"$$hashKey": "object:404",
"expr": "histogram_quantile(0.99, sum(rate(nginx_http_requests_ms{vhost=~\"^$vhost$\"}[5m])) by (vhost,le))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "99pct",
"legendFormat": "{{vhost}}/99pct",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Request latency",
"tooltip": {
......@@ -355,7 +384,7 @@
},
"yaxes": [
{
"format": "short",
"format": "ms",
"label": null,
"logBase": 1,
"max": null,
......@@ -377,20 +406,17 @@
}
}
],
"schemaVersion": 16,
"refresh": "10s",
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": ".*",
"current": {
"selected": false,
"tags": [],
"text": "grafana.example.com:443",
"value": "grafana.example.com:443"
},
"datasource": "localhost",
"current": {},
"datasource": "${DS_LOCALHOST}",
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Host",
......@@ -400,6 +426,7 @@
"query": "label_values(nginx_http_requests, vhost)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
......@@ -410,7 +437,7 @@
]
},
"time": {
"from": "now-1h",
"from": "now-6h",
"to": "now"
},
"timepicker": {
......@@ -441,5 +468,5 @@
"timezone": "",
"title": "HTTP",
"uid": "xCSUMFnmz",
"version": 4
}
"version": 1
}
\ No newline at end of file
{
"__inputs": [
{
"name": "DS_LOCALHOST",
"label": "localhost",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.1.6"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
}
],
"annotations": {
"list": [
{
......@@ -15,14 +45,12 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 5,
"iteration": 1558800275735,
"id": null,
"iteration": 1560209742277,
"links": [
{
"asDropdown": false,
"icon": "external link",
"tags": [],
"title": "",
"type": "dashboards"
}
],
......@@ -32,11 +60,11 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"fill": 1,
"datasource": "${DS_LOCALHOST}",
"fill": 0,
"gridPos": {
"h": 8,
"w": 12,
"h": 5,
"w": 8,
"x": 0,
"y": 0
},
......@@ -52,16 +80,7 @@
},
"lines": true,
"linewidth": 1,
"links": [
{
"dashUri": "db/service-overview",
"dashboard": "Service overview",
"includeVars": true,
"params": "service",
"title": "Service",
"type": "dashboard"
}
],
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
......@@ -73,12 +92,18 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, sum(rate(cgroup_cpu_usage{mode=\"user\",host=~\"^$host$\"}[5m])) by (service))",
"expr": "rate(cgroup_cpu_usage{mode=\"user\",service=\"$service.service\"}[5m])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{service}}",
"legendFormat": "{{host}}/user",
"refId": "A"
},
{
"expr": "rate(group_cpu_usage{mode=\"system\",service=\"$service.service\"}[5m])",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{host}}/sys",
"refId": "B"
}
],
"thresholds": [],
......@@ -101,7 +126,7 @@
},
"yaxes": [
{
"format": "short",
"format": "none",
"label": null,
"logBase": 1,
"max": null,
......@@ -127,12 +152,12 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"h": 5,
"w": 8,
"x": 8,
"y": 0
},
"id": 4,
......@@ -159,10 +184,10 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, sum(cgroup_memory_usage{host=~\"^$host$\"}) by (service))",
"expr": "cgroup_memory_usage{service=\"$service.service\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{service}}",
"legendFormat": "{{host}}",
"refId": "A"
}
],
......@@ -184,6 +209,180 @@
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 0
},
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(cgroup_blkio_bytes{service=\"$service.service\"}[5m])) by (host,mode)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{mode}}/{{host}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Disk I/O",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_LOCALHOST}",
"fill": 1,
"gridPos": {
"h": 5,
"w": 24,
"x": 0,
"y": 5
},
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "vhosts",
"repeatDirection": "h",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "global:nginx_http_requests_total:rate5m{vhost=\"$vhosts\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{vhost}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "HTTP qps",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
......@@ -208,50 +407,26 @@
}
}
],
"refresh": "5s",
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": ".*",
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"datasource": "localhost",
"allValue": null,
"current": {},
"datasource": "${DS_LOCALHOST}",
"definition": "",
"hide": 0,
"includeAll": true,
"label": "Host",
"includeAll": false,
"label": "Service",
"multi": false,
"name": "host",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "host1",
"value": "host1"
},
{
"selected": false,
"text": "host2",
"value": "host2"
},
{
"selected": false,
"text": "host3",
"value": "host3"
}
],
"query": "label_values(up, host)",
"refresh": 0,
"regex": "",
"name": "service",
"options": [],
"query": "label_values(cgroup_cpu_usage, service)",
"refresh": 1,
"regex": "/(.*)\\.service/",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
......@@ -259,11 +434,33 @@
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_LOCALHOST}",
"definition": "",
"hide": 2,
"includeAll": false,
"label": null,
"multi": false,
"name": "vhosts",
"options": [],
"query": "query_result(sum (vhostmap{service=\"$service.service\"}) by (vhost))",
"refresh": 1,
"regex": "/^.*vhost=\"([^\"]*)\".*$/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"from": "now-7d",
"to": "now"
},
"timepicker": {
......@@ -292,7 +489,7 @@
]
},
"timezone": "",
"title": "All services",
"uid": "HnScjOniz",
"title": "Service overview",
"uid": "xfV2rd7ik",
"version": 1
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment