From 135a7de765f142cdb9048612bd7a34fcf53861ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duarte?= Date: Tue, 31 May 2022 13:17:54 +0100 Subject: [PATCH] =?UTF-8?q?[observability]=C2=A0Add=20SLI=20numbers=20to?= =?UTF-8?q?=20the=20Workspace=20Success=20Criteria=20Dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboards/success-criteria.json | 170 ++++++++++++++++-- 1 file changed, 159 insertions(+), 11 deletions(-) diff --git a/operations/observability/mixins/workspace/dashboards/success-criteria.json b/operations/observability/mixins/workspace/dashboards/success-criteria.json index 4b36c0274a672c..612e6bf11682bb 100644 --- a/operations/observability/mixins/workspace/dashboards/success-criteria.json +++ b/operations/observability/mixins/workspace/dashboards/success-criteria.json @@ -24,10 +24,159 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1653910692634, + "iteration": 1653999273913, "links": [], "liveNow": false, "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "max": 1, + "min": 0.9, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 0.99 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 4, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "exemplar": false, + "expr": "1-((\n (\n (sum(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\",cluster!~\"prod-meta-.*|ephemeral.*\"}[1d])) OR on() vector(0))\n /\n sum(rate(gitpod_ws_manager_workspace_stops_total{cluster!~\"prod-meta-.*|ephemeral.*\"}[1d]))\n )\n) + (\n (\n (sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\",cluster!~\"prod-meta-.*|ephemeral.*\"}[1d])) OR on() vector(0))\n /\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",cluster!~\"prod-meta-.*|ephemeral.*\"}[1d]))\n )\n))", + "instant": false, + "interval": "", + "legendFormat": "Success Rate", + "refId": "A" + } + ], + "title": "Workspace Success Rate", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 40 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(\n 0.95, \n sum(\n rate(gitpod_ws_manager_workspace_startup_seconds_bucket{type!=\"PREBUILD\",cluster!~\"prod-meta.*|ephemeral.*\"}[1d])\n ) by (le)\n )", + "interval": "", + "legendFormat": "P95", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "histogram_quantile(\n 0.5, \n sum(\n rate(gitpod_ws_manager_workspace_startup_seconds_bucket{type!=\"PREBUILD\",cluster!~\"prod-meta.*|ephemeral.*\"}[1d])\n ) by (le)\n )", + "hide": false, + "legendFormat": "P50", + "range": true, + "refId": "B" + } + ], + "title": "Workspace Startup Time", + "type": "stat" + }, { "datasource": { "type": "prometheus", @@ -90,9 +239,9 @@ "h": 9, "w": 12, "x": 0, - "y": 0 + "y": 9 }, - "id": 4, + "id": 9, "options": { "legend": { "calcs": [], @@ -181,9 +330,9 @@ "h": 9, "w": 12, "x": 12, - "y": 0 + "y": 9 }, - "id": 2, + "id": 10, "options": { "legend": { "calcs": [], @@ -231,7 +380,7 @@ "h": 1, "w": 24, "x": 0, - "y": 9 + "y": 18 }, "id": 8, "panels": [], @@ -300,7 +449,7 @@ "h": 14, "w": 24, "x": 0, - "y": 10 + "y": 19 }, "id": 5, "options": { @@ -375,8 +524,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -392,7 +540,7 @@ "h": 15, "w": 24, "x": 0, - "y": 24 + "y": 33 }, "id": 6, "options": { @@ -486,6 +634,6 @@ "timezone": "", "title": "Success Criteria", "uid": "jgjwvIc7k", - "version": 1, + "version": 2, "weekStart": "" }