Path: blob/main/docker/grafana-dashboard-red-metrics-classic.json
401 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"type": "dashboard"14}15]16},17"description": "request rate, error rate, duration",18"editable": true,19"fiscalYearStartMonth": 0,20"graphTooltip": 0,21"id": 4,22"links": [],23"liveNow": false,24"panels": [25{26"datasource": {27"type": "datasource",28"uid": "grafana"29},30"description": "",31"gridPos": {32"h": 5,33"w": 12,34"x": 0,35"y": 036},37"id": 6,38"options": {39"code": {40"language": "plaintext",41"showLineNumbers": false,42"showMiniMap": false43},44"content": "# RED Metrics: (r)equest rate, (e)rror rate, (d)uration\n\nThis dashboard uses explicit bucket histograms and the stable [OpenTelemetry metrics semantic conventions](https://opentelemetry.io/docs/specs/semconv/general/metrics/).\nTo enable this for the [OpenTelemetry Java instrumentation agent](https://github.com/open-telemetry/opentelemetry-java-instrumentation/), set the following environment variables:\n\n```\nexport OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=explicit_bucket_histogram\nexport OTEL_SEMCONV_STABILITY_OPT_IN=http\n```",45"mode": "markdown"46},47"pluginVersion": "10.3.3",48"type": "text"49},50{51"datasource": {52"type": "prometheus",53"uid": "prometheus"54},55"fieldConfig": {56"defaults": {57"color": {58"mode": "palette-classic"59},60"custom": {61"axisBorderShow": false,62"axisCenteredZero": false,63"axisColorMode": "text",64"axisLabel": "",65"axisPlacement": "auto",66"barAlignment": 0,67"drawStyle": "line",68"fillOpacity": 0,69"gradientMode": "none",70"hideFrom": {71"legend": false,72"tooltip": false,73"viz": false74},75"insertNulls": false,76"lineInterpolation": "linear",77"lineWidth": 1,78"pointSize": 5,79"scaleDistribution": {80"type": "linear"81},82"showPoints": "auto",83"spanNulls": false,84"stacking": {85"group": "A",86"mode": "none"87},88"thresholdsStyle": {89"mode": "off"90}91},92"mappings": [],93"min": 0,94"thresholds": {95"mode": "absolute",96"steps": [97{98"color": "green",99"value": null100},101{102"color": "red",103"value": 80104}105]106},107"unit": "reqps",108"unitScale": true109},110"overrides": []111},112"gridPos": {113"h": 8,114"w": 12,115"x": 0,116"y": 5117},118"id": 1,119"options": {120"legend": {121"calcs": [],122"displayMode": "list",123"placement": "bottom",124"showLegend": true125},126"tooltip": {127"mode": "single",128"sort": "none"129}130},131"targets": [132{133"datasource": {134"type": "prometheus",135"uid": "prometheus"136},137"editorMode": "code",138"expr": "sum(rate({__name__=~\"http_server_request_duration_seconds_count|http_server_request_duration_count|http_server_duration_milliseconds_count|http_server_duration_seconds_count|http_server_duration_count\", job=~\"$job\", instance=~\"$instance\"}[5m]))",139"legendFormat": "__auto",140"range": true,141"refId": "A"142}143],144"title": "Request Rate",145"type": "timeseries"146},147{148"datasource": {149"type": "prometheus",150"uid": "prometheus"151},152"fieldConfig": {153"defaults": {154"color": {155"mode": "palette-classic"156},157"custom": {158"axisBorderShow": false,159"axisCenteredZero": false,160"axisColorMode": "text",161"axisLabel": "",162"axisPlacement": "auto",163"barAlignment": 0,164"drawStyle": "line",165"fillOpacity": 0,166"gradientMode": "none",167"hideFrom": {168"legend": false,169"tooltip": false,170"viz": false171},172"insertNulls": false,173"lineInterpolation": "linear",174"lineWidth": 1,175"pointSize": 5,176"scaleDistribution": {177"type": "linear"178},179"showPoints": "auto",180"spanNulls": false,181"stacking": {182"group": "A",183"mode": "none"184},185"thresholdsStyle": {186"mode": "off"187}188},189"mappings": [],190"min": 0,191"thresholds": {192"mode": "absolute",193"steps": [194{195"color": "green",196"value": null197},198{199"color": "red",200"value": 80201}202]203},204"unit": "percentunit",205"unitScale": true206},207"overrides": []208},209"gridPos": {210"h": 8,211"w": 12,212"x": 0,213"y": 13214},215"id": 2,216"options": {217"legend": {218"calcs": [],219"displayMode": "list",220"placement": "bottom",221"showLegend": true222},223"tooltip": {224"mode": "single",225"sort": "none"226}227},228"targets": [229{230"datasource": {231"type": "prometheus",232"uid": "prometheus"233},234"editorMode": "code",235"expr": "sum(rate({__name__=~\"http_server_request_duration_seconds_count|http_server_request_duration_count|http_server_duration_milliseconds_count|http_server_duration_seconds_count|http_server_duration_count\", job=~\"$job\", instance=~\"$instance\", http_response_status_code=~\"5..\"}[5m])) / sum(rate({__name__=~\"http_server_request_duration_seconds_count|http_server_request_duration_count|http_server_duration_milliseconds_count|http_server_duration_seconds_count|http_server_duration_count\", job=~\"$job\", instance=~\"$instance\"}[5m]))",236"legendFormat": "__auto",237"range": true,238"refId": "A"239}240],241"title": "Error Rate",242"type": "timeseries"243},244{245"datasource": {246"type": "prometheus",247"uid": "prometheus"248},249"description": "",250"fieldConfig": {251"defaults": {252"color": {253"mode": "thresholds"254},255"mappings": [],256"thresholds": {257"mode": "absolute",258"steps": [259{260"color": "green",261"value": null262},263{264"color": "red",265"value": 80266}267]268},269"unit": "reqps",270"unitScale": true271},272"overrides": []273},274"gridPos": {275"h": 8,276"w": 12,277"x": 0,278"y": 21279},280"id": 3,281"options": {282"displayMode": "gradient",283"maxVizHeight": 300,284"minVizHeight": 10,285"minVizWidth": 0,286"namePlacement": "auto",287"orientation": "auto",288"reduceOptions": {289"calcs": [290"lastNotNull"291],292"fields": "",293"values": false294},295"showUnfilled": true,296"sizing": "auto",297"valueMode": "color"298},299"pluginVersion": "10.3.3",300"targets": [301{302"datasource": {303"type": "prometheus",304"uid": "prometheus"305},306"editorMode": "code",307"exemplar": true,308"expr": "sum by (le) (rate({__name__=~\"http_server_request_duration_seconds_bucket|http_server_request_duration_bucket|http_server_duration_milliseconds_bucket|http_server_duration_seconds_bucket|http_server_duration_bucket\", job=~\"$job\", instance=~\"$instance\"}[5m]))",309"format": "heatmap",310"instant": false,311"legendFormat": "{{le}}",312"range": true,313"refId": "A"314}315],316"title": "Duration histogram (s)",317"type": "bargauge"318},319{320"datasource": {321"type": "prometheus",322"uid": "prometheus"323},324"fieldConfig": {325"defaults": {326"custom": {327"hideFrom": {328"legend": false,329"tooltip": false,330"viz": false331},332"scaleDistribution": {333"type": "linear"334}335}336},337"overrides": []338},339"gridPos": {340"h": 8,341"w": 12,342"x": 0,343"y": 29344},345"id": 5,346"options": {347"calculate": false,348"cellGap": 1,349"color": {350"exponent": 0.5,351"fill": "dark-orange",352"mode": "scheme",353"reverse": false,354"scale": "exponential",355"scheme": "Oranges",356"steps": 64357},358"exemplars": {359"color": "rgba(255,0,255,0.7)"360},361"filterValues": {362"le": 1e-9363},364"legend": {365"show": true366},367"rowsFrame": {368"layout": "auto"369},370"tooltip": {371"show": true,372"yHistogram": false373},374"yAxis": {375"axisPlacement": "left",376"reverse": false,377"unit": "s"378}379},380"pluginVersion": "10.2.0",381"targets": [382{383"datasource": {384"type": "prometheus",385"uid": "prometheus"386},387"editorMode": "code",388"exemplar": false,389"expr": "sum by (le) (rate({__name__=~\"http_server_request_duration_seconds_bucket|http_server_request_duration_bucket|http_server_duration_milliseconds_bucket|http_server_duration_seconds_bucket|http_server_duration_bucket\", job=~\"$job\", instance=~\"$instance\"}[5m]))",390"format": "heatmap",391"instant": false,392"range": true,393"refId": "A"394}395],396"title": "Duration Heatmap",397"type": "heatmap"398},399{400"datasource": {401"type": "prometheus",402"uid": "prometheus"403},404"fieldConfig": {405"defaults": {406"color": {407"mode": "palette-classic"408},409"custom": {410"axisBorderShow": false,411"axisCenteredZero": false,412"axisColorMode": "text",413"axisLabel": "",414"axisPlacement": "auto",415"barAlignment": 0,416"drawStyle": "line",417"fillOpacity": 0,418"gradientMode": "none",419"hideFrom": {420"legend": false,421"tooltip": false,422"viz": false423},424"insertNulls": false,425"lineInterpolation": "linear",426"lineWidth": 1,427"pointSize": 5,428"scaleDistribution": {429"type": "linear"430},431"showPoints": "auto",432"spanNulls": false,433"stacking": {434"group": "A",435"mode": "none"436},437"thresholdsStyle": {438"mode": "off"439}440},441"mappings": [],442"min": 0,443"thresholds": {444"mode": "absolute",445"steps": [446{447"color": "green"448},449{450"color": "red",451"value": 80452}453]454},455"unit": "s"456},457"overrides": []458},459"gridPos": {460"h": 8,461"w": 12,462"x": 0,463"y": 37464},465"id": 4,466"options": {467"legend": {468"calcs": [],469"displayMode": "list",470"placement": "bottom",471"showLegend": true472},473"tooltip": {474"mode": "single",475"sort": "none"476}477},478"pluginVersion": "9.5.1",479"targets": [480{481"datasource": {482"type": "prometheus",483"uid": "prometheus"484},485"editorMode": "code",486"exemplar": true,487"expr": "histogram_quantile(0.95, sum by (le) (rate({__name__=~\"http_server_request_duration_seconds_bucket|http_server_request_duration_bucket|http_server_duration_milliseconds_bucket|http_server_duration_seconds_bucket|http_server_duration_bucket\", job=~\"$job\", instance=~\"$instance\"}[5m])))",488"format": "time_series",489"instant": false,490"legendFormat": "95th",491"range": true,492"refId": "A"493},494{495"datasource": {496"type": "prometheus",497"uid": "prometheus"498},499"editorMode": "code",500"exemplar": true,501"expr": "histogram_quantile(0.5, sum by (le) (rate({__name__=~\"http_server_request_duration_seconds_bucket|http_server_request_duration_bucket|http_server_duration_milliseconds_bucket|http_server_duration_seconds_bucket|http_server_duration_bucket\", job=~\"$job\", instance=~\"$instance\"}[5m])))",502"hide": false,503"legendFormat": "50th",504"range": true,505"refId": "B"506}507],508"title": "Duration percentiles",509"type": "timeseries"510}511],512"refresh": "",513"schemaVersion": 39,514"tags": [],515"templating": {516"list": [517{518"allValue": ".+",519"current": {520"selected": true,521"text": [522"All"523],524"value": [525"$__all"526]527},528"datasource": {529"type": "prometheus",530"uid": "prometheus"531},532"definition": "label_values(job)",533"hide": 0,534"includeAll": true,535"label": "",536"multi": true,537"name": "job",538"options": [],539"query": {540"query": "label_values(job)",541"refId": "PrometheusVariableQueryEditor-VariableQuery"542},543"refresh": 1,544"regex": "",545"skipUrlSync": false,546"sort": 0,547"type": "query"548},549{550"allValue": ".+",551"current": {552"selected": true,553"text": [554"All"555],556"value": [557"$__all"558]559},560"datasource": {561"type": "prometheus",562"uid": "prometheus"563},564"definition": "label_values({job=~\"$job\"},instance)",565"hide": 0,566"includeAll": true,567"label": "instance",568"multi": true,569"name": "instance",570"options": [],571"query": {572"query": "label_values({job=~\"$job\"},instance)",573"refId": "PrometheusVariableQueryEditor-VariableQuery"574},575"refresh": 1,576"regex": "",577"skipUrlSync": false,578"sort": 0,579"type": "query"580}581]582},583"time": {584"from": "now-30m",585"to": "now"586},587"timepicker": {},588"timezone": "",589"title": "RED Metrics (classic histogram)",590"uid": "f543a537-cb96-470d-a349-660ad1513136",591"version": 1,592"weekStart": ""593}594595596