Path: blob/main/operations/observability/mixins/cross-teams/dashboards/gitpod-grpc-client.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 Client metrics",24"editable": true,25"fiscalYearStartMonth": 0,26"graphTooltip": 1,27"id": 7,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(grpc_client_started_total{grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_type=~\"$type\", job=~\"$job\"}[1m])) by (grpc_service, grpc_method)",130"legendFormat": "{{grpc_service}}.{{grpc_method}}",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(grpc_client_handled_total{grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_type=~\"$type\", job=~\"$job\"}[1m])) by (grpc_service, grpc_method, grpc_code)",224"legendFormat": "{{grpc_service}}.{{grpc_method}} - {{grpc_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(grpc_client_handled_total{grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_code!=\"OK\", grpc_type=~\"$type\", job=~\"$job\"}[1m])) by (grpc_service, grpc_method, grpc_code)",331"legendFormat": "{{grpc_service}}.{{grpc_method}} - {{grpc_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(grpc_client_handling_seconds_bucket{grpc_type=\"unary\", grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_type=\"unary\", job=~\"$job\"}[5m])) by (grpc_service, grpc_method, le)\n)",438"legendFormat": "{{grpc_service}}.{{grpc_method}}",439"range": true,440"refId": "A"441}442],443"title": "99th percentile response latency [5m]",444"type": "timeseries"445},446{447"collapsed": false,448"gridPos": {449"h": 1,450"w": 24,451"x": 0,452"y": 35453},454"id": 15,455"panels": [],456"title": "Messaging",457"type": "row"458},459{460"datasource": {461"type": "prometheus",462"uid": "${datasource}"463},464"description": "Rate of messages received by server",465"fieldConfig": {466"defaults": {467"color": {468"mode": "palette-classic"469},470"custom": {471"axisCenteredZero": false,472"axisColorMode": "text",473"axisLabel": "",474"axisPlacement": "auto",475"barAlignment": 0,476"drawStyle": "line",477"fillOpacity": 0,478"gradientMode": "none",479"hideFrom": {480"legend": false,481"tooltip": false,482"viz": false483},484"lineInterpolation": "linear",485"lineWidth": 1,486"pointSize": 5,487"scaleDistribution": {488"type": "linear"489},490"showPoints": "auto",491"spanNulls": false,492"stacking": {493"group": "A",494"mode": "none"495},496"thresholdsStyle": {497"mode": "off"498}499},500"mappings": [],501"thresholds": {502"mode": "absolute",503"steps": [504{505"color": "green",506"value": null507},508{509"color": "red",510"value": 80511}512]513}514},515"overrides": []516},517"gridPos": {518"h": 8,519"w": 12,520"x": 0,521"y": 36522},523"id": 17,524"options": {525"legend": {526"calcs": [],527"displayMode": "list",528"placement": "bottom",529"showLegend": true530},531"tooltip": {532"mode": "single",533"sort": "none"534}535},536"targets": [537{538"datasource": {539"type": "prometheus",540"uid": "${datasource}"541},542"editorMode": "code",543"expr": "sum(increase(grpc_client_msg_received_total{grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_type=~\"$type\", job=~\"$job\"}[1m])) by (grpc_service, grpc_method)",544"legendFormat": "__auto",545"range": true,546"refId": "A"547}548],549"title": "Server messages received [1m]",550"type": "timeseries"551},552{553"datasource": {554"type": "prometheus",555"uid": "${datasource}"556},557"description": "Rate of messages sent by server",558"fieldConfig": {559"defaults": {560"color": {561"mode": "palette-classic"562},563"custom": {564"axisCenteredZero": false,565"axisColorMode": "text",566"axisLabel": "",567"axisPlacement": "auto",568"barAlignment": 0,569"drawStyle": "line",570"fillOpacity": 0,571"gradientMode": "none",572"hideFrom": {573"legend": false,574"tooltip": false,575"viz": false576},577"lineInterpolation": "linear",578"lineWidth": 1,579"pointSize": 5,580"scaleDistribution": {581"type": "linear"582},583"showPoints": "auto",584"spanNulls": false,585"stacking": {586"group": "A",587"mode": "none"588},589"thresholdsStyle": {590"mode": "off"591}592},593"mappings": [],594"thresholds": {595"mode": "absolute",596"steps": [597{598"color": "green",599"value": null600},601{602"color": "red",603"value": 80604}605]606}607},608"overrides": []609},610"gridPos": {611"h": 8,612"w": 12,613"x": 12,614"y": 36615},616"id": 18,617"options": {618"legend": {619"calcs": [],620"displayMode": "list",621"placement": "bottom",622"showLegend": true623},624"tooltip": {625"mode": "single",626"sort": "none"627}628},629"targets": [630{631"datasource": {632"type": "prometheus",633"uid": "${datasource}"634},635"editorMode": "code",636"expr": "sum(increase(grpc_client_msg_sent_total{grpc_service=~\"$service\", grpc_method=~\"$method\", grpc_type=~\"$type\", job=~\"$job\"}[1m])) by (grpc_service, grpc_method)",637"legendFormat": "__auto",638"range": true,639"refId": "A"640}641],642"title": "Server messages sent [1m]",643"type": "timeseries"644}645],646"refresh": false,647"schemaVersion": 37,648"style": "dark",649"tags": [650"grpc",651"client"652],653"templating": {654"list": [655{656"current": {657"selected": false,658"text": "VictoriaMetrics",659"value": "VictoriaMetrics"660},661"hide": 0,662"includeAll": false,663"multi": false,664"name": "datasource",665"options": [],666"query": "prometheus",667"queryValue": "",668"refresh": 1,669"regex": "",670"skipUrlSync": false,671"type": "datasource"672},673{674"allValue": ".*",675"current": {676"selected": true,677"text": [678"All"679],680"value": [681"$__all"682]683},684"datasource": {685"type": "prometheus",686"uid": "${datasource}"687},688"definition": "label_values(grpc_client_started_total, grpc_service)",689"description": "gRPC Service Name",690"hide": 0,691"includeAll": true,692"label": "Service",693"multi": true,694"name": "service",695"options": [],696"query": {697"query": "label_values(grpc_client_started_total, grpc_service)",698"refId": "StandardVariableQuery"699},700"refresh": 1,701"regex": "",702"skipUrlSync": false,703"sort": 5,704"type": "query"705},706{707"allValue": ".*",708"current": {709"selected": true,710"text": [711"All"712],713"value": [714"$__all"715]716},717"datasource": {718"type": "prometheus",719"uid": "${datasource}"720},721"definition": "label_values(grpc_client_started_total{grpc_service=~\"$service\"}, grpc_method)",722"description": "gRPC Method Name",723"hide": 0,724"includeAll": true,725"label": "Method",726"multi": true,727"name": "method",728"options": [],729"query": {730"query": "label_values(grpc_client_started_total{grpc_service=~\"$service\"}, grpc_method)",731"refId": "StandardVariableQuery"732},733"refresh": 1,734"regex": "",735"skipUrlSync": false,736"sort": 5,737"type": "query"738},739{740"allValue": ".*",741"current": {742"selected": true,743"text": [744"All"745],746"value": [747"$__all"748]749},750"datasource": {751"type": "prometheus",752"uid": "${datasource}"753},754"definition": "label_values(grpc_client_started_total{grpc_service=~\"$service\", grpc_method=~\"$method\"}, grpc_type)",755"description": "gRPC request type - bidirectional stream, server stream, unary, client_stream",756"hide": 0,757"includeAll": true,758"label": "Type",759"multi": true,760"name": "type",761"options": [],762"query": {763"query": "label_values(grpc_client_started_total{grpc_service=~\"$service\", grpc_method=~\"$method\"}, grpc_type)",764"refId": "StandardVariableQuery"765},766"refresh": 1,767"regex": "",768"skipUrlSync": false,769"sort": 5,770"type": "query"771},772{773"current": {774"selected": true,775"text": [776"All"777],778"value": [779"$__all"780]781},782"datasource": {783"type": "prometheus",784"uid": "${datasource}"785},786"definition": "label_values(grpc_client_started_total, job)",787"hide": 0,788"includeAll": true,789"label": "Job",790"multi": true,791"name": "job",792"options": [],793"query": {794"query": "label_values(grpc_client_started_total, job)",795"refId": "StandardVariableQuery"796},797"refresh": 1,798"regex": "",799"skipUrlSync": false,800"sort": 1,801"type": "query"802}803]804},805"time": {806"from": "now-12h",807"to": "now"808},809"timepicker": {810"refresh_intervals": [811"30s",812"1m",813"5m",814"15m",815"30m",816"1h",817"2h",818"1d"819]820},821"timezone": "utc",822"title": "gRPC / Client",823"uid": "dxEjpXn4z",824"version": 1,825"weekStart": "monday"826}827828829