Skip to content

Commit

Permalink
[observability] Add SLI numbers to the Workspace Success Criteria Das…
Browse files Browse the repository at this point in the history
…hboard
  • Loading branch information
atduarte authored and roboquat committed Jun 1, 2022
1 parent 7c0ecdb commit 135a7de
Showing 1 changed file with 159 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -90,9 +239,9 @@
"h": 9,
"w": 12,
"x": 0,
"y": 0
"y": 9
},
"id": 4,
"id": 9,
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -181,9 +330,9 @@
"h": 9,
"w": 12,
"x": 12,
"y": 0
"y": 9
},
"id": 2,
"id": 10,
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -231,7 +380,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 9
"y": 18
},
"id": 8,
"panels": [],
Expand Down Expand Up @@ -300,7 +449,7 @@
"h": 14,
"w": 24,
"x": 0,
"y": 10
"y": 19
},
"id": 5,
"options": {
Expand Down Expand Up @@ -375,8 +524,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -392,7 +540,7 @@
"h": 15,
"w": 24,
"x": 0,
"y": 24
"y": 33
},
"id": 6,
"options": {
Expand Down Expand Up @@ -486,6 +634,6 @@
"timezone": "",
"title": "Success Criteria",
"uid": "jgjwvIc7k",
"version": 1,
"version": 2,
"weekStart": ""
}

0 comments on commit 135a7de

Please sign in to comment.