Skip to content

Commit

Permalink
ad docs and dashboard for indexer RED metrics (#3892)
Browse files Browse the repository at this point in the history
* ad docs and dashboard for indexer RED metrics

* ad docs and dashboard for indexer RED metrics

* changed read for write on the suitable places for indexer write docs

---------

Co-authored-by: Eneko Fernandez <[email protected]>
  • Loading branch information
MohamedMSaeed and enekofb authored Jul 28, 2023
1 parent 13f8a32 commit 4a289bc
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 28 deletions.
223 changes: 195 additions & 28 deletions website/docs/assets/dashboards/explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 31,
"id": 3,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -90,7 +90,7 @@
},
"textMode": "auto"
},
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -157,7 +157,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -172,7 +172,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(http_request_duration_seconds_count{handler=\"/v1/query\"}[1m]))",
"expr": "sum(rate(http_request_duration_seconds_count{handler=\"/v1/query\"}[2m]))",
"legendFormat": "total",
"range": true,
"refId": "A"
Expand All @@ -183,7 +183,7 @@
"uid": "prometheus"
},
"editorMode": "code",
"expr": "sum(rate(http_request_duration_seconds_count{handler=\"/v1/query\",code!~\"2..\"}[1m]))",
"expr": "sum(rate(http_request_duration_seconds_count{handler=\"/v1/query\",code!~\"2..\"}[2m]))",
"hide": false,
"legendFormat": "errors",
"range": true,
Expand Down Expand Up @@ -258,7 +258,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -273,7 +273,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(http_request_duration_seconds_sum{code=\"200\",handler=\"/v1/query\",method=\"POST\"}[1m])) / sum(rate(http_request_duration_seconds_count{code=\"200\",handler=\"/v1/query\",method=\"POST\"}[1m]))",
"expr": "sum(rate(http_request_duration_seconds_sum{code=\"200\",handler=\"/v1/query\",method=\"POST\"}[2m])) / sum(rate(http_request_duration_seconds_count{code=\"200\",handler=\"/v1/query\",method=\"POST\"}[2m]))",
"legendFormat": "200s",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -346,7 +346,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -361,7 +361,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(datastore_latency_seconds_count{action=~\"Get.*\"}[1m])) by (action)",
"expr": "sum(rate(datastore_latency_seconds_count{action=~\"Get.*\"}[2m])) by (action)",
"legendFormat": "{{action}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -429,7 +429,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -444,7 +444,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(datastore_latency_seconds_sum{action=~\"Get.*\",status=\"success\"}[1m])) / sum(rate(datastore_latency_seconds_count{action=~\"Get.*\",status=\"success\"}[1m]))\n",
"expr": "sum(rate(datastore_latency_seconds_sum{action=~\"Get.*\",status=\"success\"}[2m])) / sum(rate(datastore_latency_seconds_count{action=~\"Get.*\",status=\"success\"}[2m]))\n",
"legendFormat": "success",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -517,7 +517,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -532,7 +532,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(irate(indexer_latency_seconds_count[1m])) by (action)",
"expr": "sum(irate(indexer_latency_seconds_count[2m])) by (action)",
"legendFormat": "{{action}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -600,7 +600,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -615,7 +615,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(indexer_latency_seconds_sum{status=\"success\"}[1m])) / sum(rate(indexer_latency_seconds_count{status=\"success\"}[1m]))\n",
"expr": "sum(rate(indexer_latency_seconds_sum{status=\"success\"}[2m])) / sum(rate(indexer_latency_seconds_count{status=\"success\"}[2m]))\n",
"legendFormat": "success",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -701,7 +701,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -758,10 +758,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": {},
"fill": 1,
"fillGradient": 0,
"gridPos": {
Expand Down Expand Up @@ -790,7 +787,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -877,7 +874,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -892,7 +889,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(irate(datastore_latency_seconds_count{action=~\"Store.*\"}[1m])) by (action)",
"expr": "sum(irate(datastore_latency_seconds_count{action=~\"Store.*\"}[2m])) by (action)",
"legendFormat": "{{action}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -961,7 +958,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.5.2",
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -976,7 +973,7 @@
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(datastore_latency_seconds_sum{action=~\"Store.*\",status=\"success\"}[1m])) / sum(rate(datastore_latency_seconds_count{action=~\"Store.*\",status=\"success\"}[1m]))\n",
"expr": "sum(rate(datastore_latency_seconds_sum{action=~\"Store.*\",status=\"success\"}[2m])) / sum(rate(datastore_latency_seconds_count{action=~\"Store.*\",status=\"success\"}[2m]))\n",
"legendFormat": "success",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -1011,6 +1008,176 @@
"yaxis": {
"align": true
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 33
},
"hiddenSeries": false,
"id": 22,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(irate(indexer_latency_seconds_count{action=~\"Add|Remove.*\"}[2m])) by (action)",
"legendFormat": "{{action}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Indexer Write Request Rate",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:384",
"format": "short"
},
{
"$$hashKey": "object:385",
"format": "short"
}
],
"yaxis": {
"align": true
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 33
},
"hiddenSeries": false,
"id": 23,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.2",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "P1809F7CD0C75ACF3"
},
"editorMode": "code",
"expr": "sum(rate(indexer_latency_seconds_sum{action=~\"Add|Remove.*\",status=\"success\"}[2m])) / sum(rate(indexer_latency_seconds_count{action=~\"Add|Remove.*\",status=\"success\"}[2m]))\n",
"legendFormat": "success",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Indexer Write Requests Duration",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:725",
"format": "s",
"label": "Latency",
"show": true
},
{
"$$hashKey": "object:726",
"format": "short"
}
],
"yaxis": {
"align": true
}
}
],
"refresh": "5s",
Expand All @@ -1021,13 +1188,13 @@
"list": []
},
"time": {
"from": "now-5m",
"from": "now-15m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Explorer",
"uid": "Lp7_c9UVk",
"version": 14,
"version": 2,
"weekStart": ""
}
}
Loading

0 comments on commit 4a289bc

Please sign in to comment.