Path: blob/main/docker/grafana-dashboard-red-metrics-native.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"links": [],22"liveNow": false,23"panels": [24{25"datasource": {26"type": "datasource",27"uid": "grafana"28},29"description": "",30"gridPos": {31"h": 5,32"w": 12,33"x": 0,34"y": 035},36"id": 6,37"options": {38"code": {39"language": "plaintext",40"showLineNumbers": false,41"showMiniMap": false42},43"content": "# RED Metrics: (r)equest rate, (e)rror rate, (d)uration\n\nThis dashboard uses exponential 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=base2_exponential_bucket_histogram\nexport OTEL_SEMCONV_STABILITY_OPT_IN=http\n```",44"mode": "markdown"45},46"pluginVersion": "10.3.3",47"type": "text"48},49{50"datasource": {51"type": "prometheus",52"uid": "prometheus"53},54"fieldConfig": {55"defaults": {56"color": {57"mode": "palette-classic"58},59"custom": {60"axisBorderShow": false,61"axisCenteredZero": false,62"axisColorMode": "text",63"axisLabel": "",64"axisPlacement": "auto",65"barAlignment": 0,66"drawStyle": "line",67"fillOpacity": 0,68"gradientMode": "none",69"hideFrom": {70"legend": false,71"tooltip": false,72"viz": false73},74"insertNulls": false,75"lineInterpolation": "linear",76"lineWidth": 1,77"pointSize": 5,78"scaleDistribution": {79"type": "linear"80},81"showPoints": "auto",82"spanNulls": false,83"stacking": {84"group": "A",85"mode": "none"86},87"thresholdsStyle": {88"mode": "off"89}90},91"mappings": [],92"min": 0,93"thresholds": {94"mode": "absolute",95"steps": [96{97"color": "green",98"value": null99},100{101"color": "red",102"value": 80103}104]105},106"unit": "reqps",107"unitScale": true108},109"overrides": []110},111"gridPos": {112"h": 8,113"w": 12,114"x": 0,115"y": 5116},117"id": 1,118"options": {119"legend": {120"calcs": [],121"displayMode": "list",122"placement": "bottom",123"showLegend": true124},125"tooltip": {126"mode": "single",127"sort": "none"128}129},130"targets": [131{132"datasource": {133"type": "prometheus",134"uid": "prometheus"135},136"editorMode": "code",137"expr": "sum(histogram_count(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\", job=~\"$job\", instance=~\"$instance\"}[5m])))",138"legendFormat": "__auto",139"range": true,140"refId": "A"141}142],143"title": "Request Rate",144"type": "timeseries"145},146{147"datasource": {148"type": "prometheus",149"uid": "prometheus"150},151"fieldConfig": {152"defaults": {153"color": {154"mode": "palette-classic"155},156"custom": {157"axisBorderShow": false,158"axisCenteredZero": false,159"axisColorMode": "text",160"axisLabel": "",161"axisPlacement": "auto",162"barAlignment": 0,163"drawStyle": "line",164"fillOpacity": 0,165"gradientMode": "none",166"hideFrom": {167"legend": false,168"tooltip": false,169"viz": false170},171"insertNulls": false,172"lineInterpolation": "linear",173"lineWidth": 1,174"pointSize": 5,175"scaleDistribution": {176"type": "linear"177},178"showPoints": "auto",179"spanNulls": false,180"stacking": {181"group": "A",182"mode": "none"183},184"thresholdsStyle": {185"mode": "off"186}187},188"mappings": [],189"min": 0,190"thresholds": {191"mode": "absolute",192"steps": [193{194"color": "green",195"value": null196},197{198"color": "red",199"value": 80200}201]202},203"unit": "percentunit",204"unitScale": true205},206"overrides": []207},208"gridPos": {209"h": 8,210"w": 12,211"x": 0,212"y": 13213},214"id": 2,215"options": {216"legend": {217"calcs": [],218"displayMode": "list",219"placement": "bottom",220"showLegend": true221},222"tooltip": {223"mode": "single",224"sort": "none"225}226},227"targets": [228{229"datasource": {230"type": "prometheus",231"uid": "prometheus"232},233"editorMode": "code",234"expr": "sum(histogram_count(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\", job=~\"$job\", instance=~\"$instance\", http_response_status_code=~\"5..\"}[5m]))) / sum(histogram_count(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\", job=~\"$job\", instance=~\"$instance\"}[5m])))\n\n",235"legendFormat": "__auto",236"range": true,237"refId": "A"238}239],240"title": "Error Rate",241"type": "timeseries"242},243{244"datasource": {245"type": "prometheus",246"uid": "prometheus"247},248"fieldConfig": {249"defaults": {250"custom": {251"hideFrom": {252"legend": false,253"tooltip": false,254"viz": false255},256"scaleDistribution": {257"type": "linear"258}259},260"unitScale": true261},262"overrides": []263},264"gridPos": {265"h": 8,266"w": 12,267"x": 0,268"y": 21269},270"id": 5,271"options": {272"calculate": false,273"cellGap": 1,274"color": {275"exponent": 0.5,276"fill": "dark-orange",277"mode": "scheme",278"reverse": false,279"scale": "exponential",280"scheme": "Oranges",281"steps": 64282},283"exemplars": {284"color": "rgba(255,0,255,0.7)"285},286"filterValues": {287"le": 1e-9288},289"legend": {290"show": true291},292"rowsFrame": {293"layout": "auto"294},295"tooltip": {296"mode": "single",297"showColorScale": false,298"yHistogram": false299},300"yAxis": {301"axisPlacement": "left",302"reverse": false,303"unit": "s"304}305},306"pluginVersion": "10.3.3",307"targets": [308{309"datasource": {310"type": "prometheus",311"uid": "prometheus"312},313"editorMode": "code",314"exemplar": true,315"expr": "sum(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\",job=~\"$job\", instance=~\"$instance\"}[5m]))",316"format": "time_series",317"instant": false,318"range": true,319"refId": "A"320}321],322"title": "Duration Heatmap",323"type": "heatmap"324},325{326"datasource": {327"type": "prometheus",328"uid": "prometheus"329},330"fieldConfig": {331"defaults": {332"color": {333"mode": "palette-classic"334},335"custom": {336"axisBorderShow": false,337"axisCenteredZero": false,338"axisColorMode": "text",339"axisLabel": "",340"axisPlacement": "auto",341"barAlignment": 0,342"drawStyle": "line",343"fillOpacity": 0,344"gradientMode": "none",345"hideFrom": {346"legend": false,347"tooltip": false,348"viz": false349},350"insertNulls": false,351"lineInterpolation": "linear",352"lineWidth": 1,353"pointSize": 5,354"scaleDistribution": {355"type": "linear"356},357"showPoints": "auto",358"spanNulls": false,359"stacking": {360"group": "A",361"mode": "none"362},363"thresholdsStyle": {364"mode": "off"365}366},367"mappings": [],368"min": 0,369"thresholds": {370"mode": "absolute",371"steps": [372{373"color": "green",374"value": null375},376{377"color": "red",378"value": 80379}380]381},382"unit": "s",383"unitScale": true384},385"overrides": []386},387"gridPos": {388"h": 8,389"w": 12,390"x": 0,391"y": 29392},393"id": 4,394"options": {395"legend": {396"calcs": [],397"displayMode": "list",398"placement": "bottom",399"showLegend": true400},401"tooltip": {402"mode": "single",403"sort": "none"404}405},406"pluginVersion": "9.5.1",407"targets": [408{409"datasource": {410"type": "prometheus",411"uid": "prometheus"412},413"editorMode": "code",414"exemplar": true,415"expr": "histogram_quantile(0.95, sum(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\",job=~\"$job\", instance=~\"$instance\"}[5m])))",416"format": "time_series",417"instant": false,418"legendFormat": "95th",419"range": true,420"refId": "A"421},422{423"datasource": {424"type": "prometheus",425"uid": "prometheus"426},427"editorMode": "code",428"exemplar": true,429"expr": "histogram_quantile(0.5, sum(rate({__name__=~\"http_server_request_duration_seconds|http_server_request_duration|http_server_duration_milliseconds|http_server_duration_seconds|http_server_duration\",job=~\"$job\", instance=~\"$instance\"}[5m])))",430"hide": false,431"legendFormat": "50th",432"range": true,433"refId": "B"434}435],436"title": "Duration percentiles",437"type": "timeseries"438}439],440"refresh": "",441"schemaVersion": 39,442"tags": [],443"templating": {444"list": [445{446"allValue": ".+",447"current": {448"selected": true,449"text": [450"All"451],452"value": [453"$__all"454]455},456"datasource": {457"type": "prometheus",458"uid": "prometheus"459},460"definition": "label_values(job)",461"hide": 0,462"includeAll": true,463"label": "",464"multi": true,465"name": "job",466"options": [],467"query": {468"query": "label_values(job)",469"refId": "PrometheusVariableQueryEditor-VariableQuery"470},471"refresh": 1,472"regex": "",473"skipUrlSync": false,474"sort": 0,475"type": "query"476},477{478"allValue": ".+",479"current": {480"selected": true,481"text": [482"All"483],484"value": [485"$__all"486]487},488"datasource": {489"type": "prometheus",490"uid": "prometheus"491},492"definition": "label_values({job=~\"$job\"},instance)",493"hide": 0,494"includeAll": true,495"label": "instance",496"multi": true,497"name": "instance",498"options": [],499"query": {500"query": "label_values({job=~\"$job\"},instance)",501"refId": "PrometheusVariableQueryEditor-VariableQuery"502},503"refresh": 1,504"regex": "",505"skipUrlSync": false,506"sort": 0,507"type": "query"508}509]510},511"time": {512"from": "now-30m",513"to": "now"514},515"timepicker": {},516"timezone": "",517"title": "RED Metrics (native histogram)",518"uid": "f543a537-cb96-470d-a349-660ad1513135",519"version": 1,520"weekStart": ""521}522523524