Path: blob/main/operations/observability/mixins/cross-teams/dashboards/gitpod-connect-server.json
2500 views
{1"annotations": {2"list": [3{4"builtIn": 1,5"datasource": {6"type": "grafana",7"uid": "-- Grafana --"8},9"enable": true,10"hide": true,11"iconColor": "rgba(0, 211, 255, 1)",12"name": "Annotations & Alerts",13"target": {14"limit": 100,15"matchAny": false,16"tags": [],17"type": "dashboard"18},19"type": "dashboard"20}21]22},23"description": "Common visualisations of gRPC (Golang) Server metrics",24"editable": true,25"fiscalYearStartMonth": 0,26"graphTooltip": 1,27"id": 80,28"links": [],29"liveNow": false,30"panels": [31{32"collapsed": false,33"gridPos": {34"h": 1,35"w": 24,36"x": 0,37"y": 038},39"id": 2,40"panels": [],41"title": "Requests",42"type": "row"43},44{45"datasource": {46"type": "prometheus",47"uid": "${datasource}"48},49"description": "Rate of gRPC requests started",50"fieldConfig": {51"defaults": {52"color": {53"mode": "palette-classic"54},55"custom": {56"axisCenteredZero": false,57"axisColorMode": "text",58"axisLabel": "",59"axisPlacement": "auto",60"barAlignment": 0,61"drawStyle": "line",62"fillOpacity": 0,63"gradientMode": "none",64"hideFrom": {65"legend": false,66"tooltip": false,67"viz": false68},69"lineInterpolation": "linear",70"lineWidth": 1,71"pointSize": 5,72"scaleDistribution": {73"type": "linear"74},75"showPoints": "auto",76"spanNulls": false,77"stacking": {78"group": "A",79"mode": "none"80},81"thresholdsStyle": {82"mode": "off"83}84},85"mappings": [],86"thresholds": {87"mode": "absolute",88"steps": [89{90"color": "green",91"value": null92},93{94"color": "red",95"value": 8096}97]98},99"unit": "opm"100},101"overrides": []102},103"gridPos": {104"h": 8,105"w": 24,106"x": 0,107"y": 1108},109"id": 4,110"options": {111"legend": {112"calcs": [],113"displayMode": "list",114"placement": "bottom",115"showLegend": true116},117"tooltip": {118"mode": "single",119"sort": "none"120}121},122"targets": [123{124"datasource": {125"type": "prometheus",126"uid": "${datasource}"127},128"editorMode": "code",129"expr": "sum(increase(connect_server_started_total{package=~\"$package\", call=~\"$call\", call_type=~\"$type\"}[1m])) by (package, call)",130"legendFormat": "{{package}}.{{call}}",131"range": true,132"refId": "A"133}134],135"title": "Requests started [1m]",136"type": "timeseries"137},138{139"datasource": {140"type": "prometheus",141"uid": "${datasource}"142},143"description": "Rate of requests completed, by status",144"fieldConfig": {145"defaults": {146"color": {147"mode": "palette-classic"148},149"custom": {150"axisCenteredZero": false,151"axisColorMode": "text",152"axisLabel": "",153"axisPlacement": "auto",154"barAlignment": 0,155"drawStyle": "line",156"fillOpacity": 0,157"gradientMode": "none",158"hideFrom": {159"legend": false,160"tooltip": false,161"viz": false162},163"lineInterpolation": "linear",164"lineWidth": 1,165"pointSize": 5,166"scaleDistribution": {167"type": "linear"168},169"showPoints": "auto",170"spanNulls": false,171"stacking": {172"group": "A",173"mode": "none"174},175"thresholdsStyle": {176"mode": "off"177}178},179"mappings": [],180"thresholds": {181"mode": "absolute",182"steps": [183{184"color": "green",185"value": null186},187{188"color": "red",189"value": 80190}191]192},193"unit": "opm"194},195"overrides": []196},197"gridPos": {198"h": 8,199"w": 24,200"x": 0,201"y": 9202},203"id": 6,204"options": {205"legend": {206"calcs": [],207"displayMode": "list",208"placement": "bottom",209"showLegend": true210},211"tooltip": {212"mode": "single",213"sort": "none"214}215},216"targets": [217{218"datasource": {219"type": "prometheus",220"uid": "${datasource}"221},222"editorMode": "code",223"expr": "sum(increase(connect_server_handled_seconds_count{package=~\"$package\", call=~\"$call\", call_type=~\"$type\"}[1m])) by (package, call, code)",224"legendFormat": "{{package}}.{{call}} - {{code}}",225"range": true,226"refId": "A"227}228],229"title": "Requests completed [1m]",230"type": "timeseries"231},232{233"collapsed": false,234"gridPos": {235"h": 1,236"w": 24,237"x": 0,238"y": 17239},240"id": 11,241"panels": [],242"title": "Errors",243"type": "row"244},245{246"datasource": {247"type": "prometheus",248"uid": "${datasource}"249},250"description": "Rate of errors, by status",251"fieldConfig": {252"defaults": {253"color": {254"mode": "palette-classic"255},256"custom": {257"axisCenteredZero": false,258"axisColorMode": "text",259"axisLabel": "",260"axisPlacement": "auto",261"barAlignment": 0,262"drawStyle": "line",263"fillOpacity": 0,264"gradientMode": "none",265"hideFrom": {266"legend": false,267"tooltip": false,268"viz": false269},270"lineInterpolation": "linear",271"lineWidth": 1,272"pointSize": 5,273"scaleDistribution": {274"type": "linear"275},276"showPoints": "auto",277"spanNulls": false,278"stacking": {279"group": "A",280"mode": "none"281},282"thresholdsStyle": {283"mode": "off"284}285},286"mappings": [],287"thresholds": {288"mode": "absolute",289"steps": [290{291"color": "green",292"value": null293},294{295"color": "red",296"value": 80297}298]299},300"unit": "opm"301},302"overrides": []303},304"gridPos": {305"h": 8,306"w": 24,307"x": 0,308"y": 18309},310"id": 7,311"options": {312"legend": {313"calcs": [],314"displayMode": "list",315"placement": "bottom",316"showLegend": true317},318"tooltip": {319"mode": "single",320"sort": "none"321}322},323"targets": [324{325"datasource": {326"type": "prometheus",327"uid": "${datasource}"328},329"editorMode": "code",330"expr": "sum(increase(connect_server_handled_seconds_count{package=~\"$package\", call=~\"$call\", call_type=~\"$type\", code!=\"ok\"}[1m])) by (package, call, code)",331"legendFormat": "{{package}}.{{call}} - {{code}}",332"range": true,333"refId": "A"334}335],336"title": "Request errors [1m]",337"type": "timeseries"338},339{340"collapsed": false,341"gridPos": {342"h": 1,343"w": 24,344"x": 0,345"y": 26346},347"id": 13,348"panels": [],349"title": "Latency",350"type": "row"351},352{353"datasource": {354"type": "prometheus",355"uid": "${datasource}"356},357"description": "",358"fieldConfig": {359"defaults": {360"color": {361"mode": "palette-classic"362},363"custom": {364"axisCenteredZero": false,365"axisColorMode": "text",366"axisLabel": "",367"axisPlacement": "auto",368"barAlignment": 0,369"drawStyle": "line",370"fillOpacity": 0,371"gradientMode": "none",372"hideFrom": {373"legend": false,374"tooltip": false,375"viz": false376},377"lineInterpolation": "linear",378"lineWidth": 1,379"pointSize": 5,380"scaleDistribution": {381"type": "linear"382},383"showPoints": "auto",384"spanNulls": false,385"stacking": {386"group": "A",387"mode": "none"388},389"thresholdsStyle": {390"mode": "off"391}392},393"mappings": [],394"thresholds": {395"mode": "absolute",396"steps": [397{398"color": "green",399"value": null400},401{402"color": "red",403"value": 80404}405]406},407"unit": "s"408},409"overrides": []410},411"gridPos": {412"h": 8,413"w": 24,414"x": 0,415"y": 27416},417"id": 9,418"options": {419"legend": {420"calcs": [],421"displayMode": "list",422"placement": "bottom",423"showLegend": true424},425"tooltip": {426"mode": "single",427"sort": "none"428}429},430"targets": [431{432"datasource": {433"type": "prometheus",434"uid": "${datasource}"435},436"editorMode": "code",437"expr": "histogram_quantile(0.99, \n sum(rate(connect_server_handled_seconds_bucket{call_type=~\"$type\", package=~\"$package\", call=~\"$call\"}[5m])) by (package, call, le)\n)\n\n",438"legendFormat": "{{package}}.{{call}}",439"range": true,440"refId": "A"441}442],443"title": "99th percentile response latency [5m]",444"type": "timeseries"445}446],447"schemaVersion": 37,448"style": "dark",449"tags": [450"connect",451"server"452],453"templating": {454"list": [455{456"current": {457"selected": false,458"text": "VictoriaMetrics",459"value": "VictoriaMetrics"460},461"hide": 0,462"includeAll": false,463"multi": false,464"name": "datasource",465"options": [],466"query": "prometheus",467"refresh": 1,468"regex": "",469"skipUrlSync": false,470"type": "datasource"471},472{473"allValue": ".*",474"current": {475"selected": true,476"text": [477"All"478],479"value": [480"$__all"481]482},483"datasource": {484"type": "prometheus",485"uid": "${datasource}"486},487"definition": "label_values(connect_server_started_total, package)",488"description": "Connect / gRPC Service Name",489"hide": 0,490"includeAll": true,491"label": "Package",492"multi": true,493"name": "package",494"options": [],495"query": {496"query": "label_values(connect_server_started_total, package)",497"refId": "StandardVariableQuery"498},499"refresh": 1,500"regex": "",501"skipUrlSync": false,502"sort": 5,503"type": "query"504},505{506"allValue": ".*",507"current": {508"selected": true,509"text": [510"All"511],512"value": [513"$__all"514]515},516"datasource": {517"type": "prometheus",518"uid": "${datasource}"519},520"definition": "label_values(connect_server_started_total{package=~\"$package\"}, call)",521"description": "Connect Call Name",522"hide": 0,523"includeAll": true,524"label": "Call",525"multi": true,526"name": "call",527"options": [],528"query": {529"query": "label_values(connect_server_started_total{package=~\"$package\"}, call)",530"refId": "StandardVariableQuery"531},532"refresh": 1,533"regex": "",534"skipUrlSync": false,535"sort": 5,536"type": "query"537},538{539"allValue": ".*",540"current": {541"selected": true,542"text": [543"All"544],545"value": [546"$__all"547]548},549"datasource": {550"type": "prometheus",551"uid": "${datasource}"552},553"definition": "label_values(connect_server_started_total{package=~\"$package\", call=~\"$call\"}, call_type)",554"description": "Connect request type - bidirectional stream, server stream, unary, client_stream",555"hide": 0,556"includeAll": true,557"label": "Type",558"multi": true,559"name": "type",560"options": [],561"query": {562"query": "label_values(connect_server_started_total{package=~\"$package\", call=~\"$call\"}, call_type)",563"refId": "StandardVariableQuery"564},565"refresh": 1,566"regex": "",567"skipUrlSync": false,568"sort": 5,569"type": "query"570}571]572},573"time": {574"from": "now-6h",575"to": "now"576},577"timepicker": {578"refresh_intervals": [579"30s",580"1m",581"5m",582"15m",583"30m",584"1h",585"2h",586"1d"587]588},589"timezone": "utc",590"title": "Connect / Server",591"uid": "Ce3ZWpNVk",592"version": 3,593"weekStart": "monday"594}595596597