1
0
Fork 0

Dashboard rationalization

Change-Id: Id1f7d2719080456bc7ceb168cb32ee6cd4d4a800
Closes-bug: PROD-20082
This commit is contained in:
Michal Kobus 2018-06-19 18:43:37 +02:00
parent 2d26b366a1
commit 758a110fa5
1 changed files with 593 additions and 485 deletions

View File

@ -1,20 +1,40 @@
{%- raw %} {%- raw %}
{ {
"annotations": { "annotations": {
"list": [] "list": [
{
"$$hashKey": "object:143",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
}, },
"editable": true, "editable": true,
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"hideControls": false, "id": 134,
"id": null, "iteration": 1529426501345,
"links": [], "links": [],
"refresh": "1m",
"rows": [
{
"collapse": false,
"height": "250px",
"panels": [ "panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 40,
"panels": [],
"repeat": null,
"title": "General",
"type": "row"
},
{ {
"cacheTimeout": null, "cacheTimeout": null,
"colorBackground": false, "colorBackground": false,
@ -24,7 +44,7 @@
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(50, 172, 45, 0.97)"
], ],
"datasource": null, "datasource": "prometheus",
"format": "none", "format": "none",
"gauge": { "gauge": {
"maxValue": 100, "maxValue": 100,
@ -33,7 +53,13 @@
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 36, "gridPos": {
"h": 4,
"w": 12,
"x": 0,
"y": 1
},
"id": 39,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
@ -61,26 +87,24 @@
"to": "null" "to": "null"
} }
], ],
"span": 3,
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
"lineColor": "rgb(31, 120, 193)", "lineColor": "rgb(31, 120, 193)",
"show": true "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "grafana_stat_total_orgs", "expr": "grafana_stat_totals_dashboard",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "",
"refId": "A", "refId": "A",
"step": 60 "step": 60
} }
], ],
"thresholds": "", "thresholds": "",
"title": "Organizations", "title": "Dashboards",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [
@ -101,7 +125,7 @@
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(50, 172, 45, 0.97)"
], ],
"datasource": null, "datasource": "prometheus",
"format": "none", "format": "none",
"gauge": { "gauge": {
"maxValue": 100, "maxValue": 100,
@ -110,81 +134,11 @@
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 37, "gridPos": {
"interval": null, "h": 4,
"links": [], "w": 12,
"mappingType": 1, "x": 12,
"mappingTypes": [ "y": 1
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 3,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true
},
"tableColumn": "",
"targets": [
{
"expr": "grafana_stat_total_playlists",
"format": "time_series",
"intervalFactor": 2,
"refId": "A",
"step": 60
}
],
"thresholds": "",
"title": "Playlists",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
}, },
"id": 38, "id": 38,
"interval": null, "interval": null,
@ -214,12 +168,11 @@
"to": "null" "to": "null"
} }
], ],
"span": 3,
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
"lineColor": "rgb(31, 120, 193)", "lineColor": "rgb(31, 120, 193)",
"show": true "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
@ -253,7 +206,7 @@
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(50, 172, 45, 0.97)"
], ],
"datasource": null, "datasource": "prometheus",
"format": "none", "format": "none",
"gauge": { "gauge": {
"maxValue": 100, "maxValue": 100,
@ -262,7 +215,13 @@
"thresholdLabels": false, "thresholdLabels": false,
"thresholdMarkers": true "thresholdMarkers": true
}, },
"id": 39, "gridPos": {
"h": 4,
"w": 12,
"x": 0,
"y": 5
},
"id": 37,
"interval": null, "interval": null,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
@ -290,17 +249,16 @@
"to": "null" "to": "null"
} }
], ],
"span": 3,
"sparkline": { "sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)", "fillColor": "rgba(31, 118, 189, 0.18)",
"full": false, "full": false,
"lineColor": "rgb(31, 120, 193)", "lineColor": "rgb(31, 120, 193)",
"show": true "show": false
}, },
"tableColumn": "", "tableColumn": "",
"targets": [ "targets": [
{ {
"expr": "grafana_stat_totals_dashboard", "expr": "grafana_stat_total_playlists",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"refId": "A", "refId": "A",
@ -308,7 +266,7 @@
} }
], ],
"thresholds": "", "thresholds": "",
"title": "Dashboards", "title": "Playlists",
"type": "singlestat", "type": "singlestat",
"valueFontSize": "80%", "valueFontSize": "80%",
"valueMaps": [ "valueMaps": [
@ -319,33 +277,123 @@
} }
], ],
"valueName": "current" "valueName": "current"
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
"title": "General",
"titleSize": "h6"
}, },
{ {
"collapse": false, "cacheTimeout": null,
"height": "250px", "colorBackground": false,
"panels": [ "colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": "prometheus",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 12,
"x": 12,
"y": 5
},
"id": 36,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "grafana_stat_total_orgs",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
"step": 60
}
],
"thresholds": "",
"title": "Organizations",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 41,
"panels": [],
"repeat": null,
"title": "Resources",
"type": "row"
},
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": null, "datasource": "prometheus",
"fill": 1, "fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 10
},
"id": 32, "id": 32,
"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
}, },
@ -359,15 +407,14 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"spaceLength": 10, "spaceLength": 10,
"span": 6,
"stack": true, "stack": true,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "irate(process_cpu_seconds_total{job=\"grafana\"}[5m])", "expr": "rate(process_cpu_seconds_total{job=\"grafana\"}[$rate_interval])",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "total", "legendFormat": "usage",
"refId": "A", "refId": "A",
"step": 10 "step": 10
} }
@ -375,7 +422,7 @@
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeShift": null, "timeShift": null,
"title": "CPU Usage", "title": "CPU usage rate",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 0,
@ -391,8 +438,8 @@
}, },
"yaxes": [ "yaxes": [
{ {
"format": "percentunit", "format": "short",
"label": null, "label": "Seconds / Second",
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": "0", "min": "0",
@ -406,21 +453,33 @@
"min": null, "min": null,
"show": true "show": true
} }
] ],
"yaxis": {
"align": false,
"alignLevel": null
}
}, },
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": null, "datasource": "prometheus",
"fill": 1, "fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 10
},
"id": 33, "id": 33,
"legend": { "legend": {
"alignAsTable": true,
"avg": false, "avg": false,
"current": false, "current": false,
"max": false, "max": false,
"min": false, "min": false,
"rightSide": true,
"show": true, "show": true,
"total": false, "total": false,
"values": false "values": false
@ -435,11 +494,11 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"spaceLength": 10, "spaceLength": 10,
"span": 6,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"$$hashKey": "object:208",
"expr": "process_resident_memory_bytes{job=\"grafana\"}", "expr": "process_resident_memory_bytes{job=\"grafana\"}",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -448,6 +507,7 @@
"step": 10 "step": 10
}, },
{ {
"$$hashKey": "object:209",
"expr": "process_virtual_memory_bytes{job=\"grafana\"}", "expr": "process_virtual_memory_bytes{job=\"grafana\"}",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
@ -475,6 +535,7 @@
}, },
"yaxes": [ "yaxes": [
{ {
"$$hashKey": "object:258",
"format": "bytes", "format": "bytes",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -483,6 +544,7 @@
"show": true "show": true
}, },
{ {
"$$hashKey": "object:259",
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
@ -490,22 +552,67 @@
"min": null, "min": null,
"show": true "show": true
} }
] ],
"yaxis": {
"align": false,
"alignLevel": null
}
} }
], ],
"repeat": null, "refresh": "1m",
"repeatIteration": null, "schemaVersion": 16,
"repeatRowId": null,
"showTitle": true,
"title": "CPU and Memory",
"titleSize": "h6"
}
],
"schemaVersion": 14,
"style": "dark", "style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
"list": [] "list": [
{
"allValue": null,
"current": {
"tags": [],
"text": "3m",
"value": "3m"
},
"hide": 0,
"includeAll": false,
"label": "rate_interval",
"multi": false,
"name": "rate_interval",
"options": [
{
"selected": false,
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "2m",
"value": "2m"
},
{
"selected": true,
"text": "3m",
"value": "3m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "15m",
"value": "15m"
}
],
"query": "1m,2m,3m,5m,10m,15m",
"type": "custom"
}
]
}, },
"time": { "time": {
"from": "now-1h", "from": "now-1h",
@ -538,6 +645,7 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Grafana", "title": "Grafana",
"version": 11 "uid": null,
"version": 12
} }
{%- endraw %} {%- endraw %}