Skip to content

Commit

Permalink
Add generated dashboards
Browse files Browse the repository at this point in the history
(cherry picked from commit 04e9a25)
  • Loading branch information
amnonh committed Jun 21, 2020
1 parent aa5a415 commit 6adbfd3
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 260 deletions.
218 changes: 88 additions & 130 deletions grafana/build/manager_2.1/scylla-manager.2.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
}
],
"thresholds": "",
"title": "Active Repair Tasks",
"title": "Active Repair",
"transparent": true,
"type": "singlestat",
"valueFontSize": "150%",
Expand Down Expand Up @@ -527,7 +527,7 @@
}
],
"thresholds": "",
"title": "Active Backup Tasks",
"title": "Active Backup",
"transparent": true,
"type": "singlestat",
"valueFontSize": "150%",
Expand All @@ -542,69 +542,58 @@
},
{
"cacheTimeout": null,
"class": "single_stat_panel",
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"class": "gauge_percent_panel",
"datasource": "prometheus",
"editable": true,
"error": false,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": false
},
"gridPos": {
"h": 6,
"w": 2,
"x": 14,
"y": 4
},
"id": 7,
"interval": null,
"isNew": true,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "rgba(50, 172, 45, 0.97)",
"value": 0
}
]
},
"unit": "percent"
},
"overrides": [],
"values": false
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
"orientation": "horizontal",
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"tableColumn": "",
"pluginVersion": "6.7.3",
"span": 1,
"targets": [
{
"expr": "sum(avg(scylla_manager_repair_progress{cluster=~\"[[cluster]]\", instance=~\"$instance\", keyspace=~\"$keyspace\"}) by (task) * sum(scylla_manager_task_active_count{cluster=~\"[[cluster]]\", type=\"repair\"}) by (task))",
Expand All @@ -613,85 +602,64 @@
"refId": "A"
}
],
"thresholds": "0,0",
"title": "Repair progress",
"title": "Repair",
"transparent": true,
"type": "singlestat",
"valueFontSize": "150%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
"type": "gauge"
},
{
"cacheTimeout": null,
"class": "single_stat_panel",
"colorBackground": false,
"colorValue": false,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"class": "gauge_percent_panel",
"datasource": "prometheus",
"editable": true,
"error": false,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": false
},
"gridPos": {
"h": 6,
"w": 2,
"x": 16,
"y": 4
},
"id": 8,
"interval": null,
"isNew": true,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [
{
"id": 0,
"op": "=",
"text": "N/A",
"type": 1,
"value": "null"
}
],
"max": 100,
"min": 0,
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "rgba(50, 172, 45, 0.97)",
"value": 0
}
]
},
"unit": "percent"
},
"overrides": [],
"values": false
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
"orientation": "horizontal",
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"tableColumn": "",
"pluginVersion": "6.7.3",
"span": 1,
"targets": [
{
"expr": "sum(avg(scylla_manager_backup_percent_progress{cluster=~\"[[cluster]]\", instance=~\"$instance\", keyspace=~\"$keyspace\"}) by (task) * sum(scylla_manager_task_active_count{cluster=~\"[[cluster]]\", type=\"backup\"}) by (task))",
Expand All @@ -700,19 +668,9 @@
"refId": "A"
}
],
"thresholds": "0,0",
"title": "Backup progress",
"title": "Backup",
"transparent": true,
"type": "singlestat",
"valueFontSize": "150%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
"type": "gauge"
},
{
"class": "text_panel",
Expand Down
Loading

0 comments on commit 6adbfd3

Please sign in to comment.