Commit a2e7e7c4 authored by ale's avatar ale

Add summary graphs to service overview

parent d35e0f3b
Pipeline #3430 failed with stage
in 180 minutes and 3 seconds
......@@ -16,7 +16,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": 5,
"iteration": 1560276264564,
"iteration": 1560284240045,
"links": [
{
"asDropdown": false,
......@@ -73,7 +73,7 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(5, sum(rate(cgroup_cpu_usage{mode=\"user\",host=~\"^$host$\"}[5m])) by (service))",
"expr": "topk(5, service:cpu_usage:rate1m{host=~\"^$host$\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
......@@ -105,7 +105,7 @@
"label": null,
"logBase": 1,
"max": null,
"min": null,
"min": "0",
"show": true
},
{
......@@ -184,7 +184,110 @@
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"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": "localhost",
"fill": 1,
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 8
},
"id": 5,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [
{
"dashUri": "db/service-overview",
"dashboard": "Service overview",
"includeVars": true,
"params": "service",
"title": "Service",
"type": "dashboard"
}
],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(service:cpu_usage:rate1m{host=~\"^$host$\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{service}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "CPU (sum)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
......@@ -192,6 +295,83 @@
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "localhost",
"fill": 1,
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 8
},
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"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(cgroup_memory_usage{host=~\"^$host$\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{service}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Memory (sum)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
......@@ -216,9 +396,10 @@
{
"allValue": ".*",
"current": {
"selected": false,
"tags": [],
"text": "latitanza",
"value": "latitanza"
"text": "sofferenza",
"value": "sofferenza"
},
"datasource": "localhost",
"definition": "label_values(up, host)",
......@@ -273,5 +454,5 @@
"timezone": "",
"title": "All services",
"uid": "HnScjOniz",
"version": 2
}
\ No newline at end of file
"version": 3
}
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