update grafana dashboard

pull/3/head
lance 5 years ago
parent 636917345d
commit 34de34f07a

@ -61,7 +61,8 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "GET - prometheus-django-metrics", "alias": "/.*prometheus.*/",
"fill": 0,
"hideTooltip": true, "hideTooltip": true,
"legend": false, "legend": false,
"lines": false "lines": false
@ -72,9 +73,9 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(django_http_requests_total_by_view_transport_method_total[1m]) * 60", "expr": "rate(django_http_responses_total_by_status_view_method_total[1m]) * 60",
"instant": false, "hide": false,
"legendFormat": "{{ method }} - {{ view }}", "legendFormat": "{{ status }} - {{ method }} - {{ view }} ",
"refId": "A" "refId": "A"
} }
], ],
@ -82,7 +83,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Requests by Method/View", "title": "Responses by Status/Method/View",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 2,
@ -134,13 +135,13 @@
"y": 0 "y": 0
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 6, "id": 12,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
"max": false, "max": false,
"min": false, "min": false,
"show": true, "show": false,
"total": false, "total": false,
"values": false "values": false
}, },
@ -156,8 +157,12 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "Unapplied", "alias": "django",
"color": "#F2495C" "color": "#5794F2"
},
{
"alias": "prometheus",
"color": "#FF9830"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
@ -165,21 +170,16 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "job:django_migrations_applied_total:max", "expr": "rate(process_cpu_seconds_total[1m]) * 100",
"legendFormat": "Applied", "legendFormat": "{{ job }}",
"refId": "A" "refId": "A"
},
{
"expr": "job:django_migrations_unapplied_total:max",
"legendFormat": "Unapplied",
"refId": "B"
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "DB Migrations", "title": "Estimated CPU",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -235,7 +235,7 @@
"id": 8, "id": 8,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": true, "avg": false,
"current": false, "current": false,
"hideEmpty": true, "hideEmpty": true,
"hideZero": true, "hideZero": true,
@ -246,7 +246,7 @@
"sort": "avg", "sort": "avg",
"sortDesc": true, "sortDesc": true,
"total": false, "total": false,
"values": true "values": false
}, },
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
@ -260,7 +260,7 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "GET - prometheus-django-metrics", "alias": "/.*prometheus.*/",
"fill": 0, "fill": 0,
"hideTooltip": true, "hideTooltip": true,
"legend": false, "legend": false,
@ -273,6 +273,7 @@
"targets": [ "targets": [
{ {
"expr": "rate(django_http_requests_latency_seconds_by_view_method_sum{job=\"django\"}[1m])", "expr": "rate(django_http_requests_latency_seconds_by_view_method_sum{job=\"django\"}[1m])",
"hide": false,
"legendFormat": "{{ method }} - {{ view }}", "legendFormat": "{{ method }} - {{ view }}",
"refId": "A" "refId": "A"
} }
@ -333,13 +334,13 @@
"y": 8 "y": 8
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 4, "id": 6,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
"max": false, "max": false,
"min": false, "min": false,
"show": false, "show": true,
"total": false, "total": false,
"values": false "values": false
}, },
@ -355,8 +356,8 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "DB Connections", "alias": "Unapplied",
"color": "#B877D9" "color": "#F2495C"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
@ -364,17 +365,21 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(django_db_new_connections_total[1m]) * 60", "expr": "job:django_migrations_applied_total:max",
"instant": false, "legendFormat": "Applied",
"legendFormat": "DB Connections",
"refId": "A" "refId": "A"
},
{
"expr": "job:django_migrations_unapplied_total:max",
"legendFormat": "Unapplied",
"refId": "B"
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "DB Connections", "title": "DB Migrations",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -390,8 +395,8 @@
}, },
"yaxes": [ "yaxes": [
{ {
"format": "none", "format": "short",
"label": "", "label": null,
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
@ -403,7 +408,7 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": false "show": true
} }
], ],
"yaxis": { "yaxis": {
@ -422,7 +427,7 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 7, "h": 8,
"w": 19, "w": 19,
"x": 0, "x": 0,
"y": 16 "y": 16
@ -478,7 +483,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "DB Operations", "title": "DB Model Operations",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -524,13 +529,13 @@
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 7, "h": 8,
"w": 5, "w": 5,
"x": 19, "x": 19,
"y": 16 "y": 16
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 12, "id": 4,
"legend": { "legend": {
"avg": false, "avg": false,
"current": false, "current": false,
@ -552,12 +557,101 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"alias": "django", "alias": "DB Connections",
"color": "#5794F2" "color": "#B877D9"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(django_db_new_connections_total[1m]) * 60",
"instant": false,
"legendFormat": "DB Connections",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "DB Connections",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
}, },
"yaxes": [
{ {
"alias": "prometheus", "format": "none",
"color": "#FF9830" "label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 19,
"x": 0,
"y": 24
},
"hiddenSeries": false,
"id": 14,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*/",
"color": "#5794F2"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
@ -565,8 +659,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "rate(process_cpu_seconds_total[1m]) * 100", "expr": "rate(django_db_execute_total[1m])",
"legendFormat": "{{ job }}",
"refId": "A" "refId": "A"
} }
], ],
@ -574,7 +667,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Estimated CPU", "title": "DB Executions",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -603,7 +696,7 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": true "show": false
} }
], ],
"yaxis": { "yaxis": {
@ -612,7 +705,7 @@
} }
} }
], ],
"refresh": "1m", "refresh": "10s",
"schemaVersion": 21, "schemaVersion": 21,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
@ -640,5 +733,5 @@
"timezone": "browser", "timezone": "browser",
"title": "XMR Auctions", "title": "XMR Auctions",
"uid": "pVe331UWk", "uid": "pVe331UWk",
"version": 1 "version": 10
} }