diff --git a/operations/observability/mixins/workspace/dashboards/success-criteria.json b/operations/observability/mixins/workspace/dashboards/success-criteria.json index f5eb60037a3dba..6f86d97d6b2176 100644 --- a/operations/observability/mixins/workspace/dashboards/success-criteria.json +++ b/operations/observability/mixins/workspace/dashboards/success-criteria.json @@ -22,7 +22,7 @@ "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 54, - "iteration": 1642434789546, + "iteration": 1649063422822, "links": [], "liveNow": false, "panels": [ @@ -72,8 +72,7 @@ "mode": "absolute", "steps": [ { - "color": "red", - "value": null + "color": "red" }, { "color": "green", @@ -98,7 +97,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "targets": [ @@ -108,14 +108,107 @@ "uid": "${datasource}" }, "exemplar": false, - "expr": "1-((\n (\n sum(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\",type!~\"PREBUILD\"}[1d])) OR on() vector(0)\n /\n sum(rate(gitpod_ws_manager_workspace_stops_total{type!~\"PREBUILD\"}[1d]))\n )\n) + (\n (\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))", + "expr": "1-((\n (\n sum(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\"}[1d])) OR on() vector(0)\n /\n sum(rate(gitpod_ws_manager_workspace_stops_total[1d]))\n )\n) + (\n (\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))", "instant": false, "interval": "", "legendFormat": "Success Rate", "refId": "A" } ], - "title": "Workspace Success Rate", + "title": "Workspace Success Rate Overall", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "mappings": [], + "max": 1, + "min": 0.9, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 0.99 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 22, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "exemplar": false, + "expr": "1-((\n (\n sum by (cluster)(rate(gitpod_ws_manager_workspace_stops_total{reason=\"failed\"}[1d])) OR on() vector(0)\n /\n sum by (cluster)(rate(gitpod_ws_manager_workspace_stops_total[1d]))\n )\n) + (\n (\n sum by (cluster)(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\",grpc_code!~\"OK|ResourceExhausted\"}[1d])) OR on() vector(0)\n /\n sum by (cluster)(rate(grpc_server_handled_total{grpc_method=\"StartWorkspace\"}[1d]))\n )\n))", + "instant": false, + "interval": "", + "legendFormat": "{{ cluster }}", + "refId": "A" + } + ], + "title": "Workspace Success Rate Cluster Wise", "type": "timeseries" }, { @@ -179,7 +272,7 @@ "h": 27, "w": 24, "x": 0, - "y": 22 + "y": 44 }, "id": 2, "options": { @@ -189,7 +282,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "targets": [ @@ -210,7 +304,7 @@ } ], "refresh": "1m", - "schemaVersion": 34, + "schemaVersion": 35, "style": "dark", "tags": [ "workspace", @@ -220,9 +314,9 @@ "list": [ { "current": { - "selected": true, - "text": "prometheus", - "value": "prometheus" + "selected": false, + "text": "VictoriaMetrics", + "value": "VictoriaMetrics" }, "hide": 0, "includeAll": false, @@ -235,6 +329,36 @@ "regex": "", "skipUrlSync": false, "type": "datasource" + }, + { + "current": { + "selected": true, + "text": [ + "us38" + ], + "value": [ + "us38" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(container_cpu_usage_seconds_total, cluster)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "cluster", + "options": [], + "query": { + "query": "label_values(container_cpu_usage_seconds_total, cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" } ] },