From cdbdcbd399e883c72d0c7d93289dfd9f6ee044f4 Mon Sep 17 00:00:00 2001 From: Alexander Didenko Date: Tue, 26 Nov 2024 13:02:09 +0100 Subject: [PATCH] Update helm chart and Grafana dashboard Pull-in some fixes that I've done and verified in a real env. --- chart/minigun/Chart.yaml | 2 +- chart/minigun/templates/deployment.yaml | 12 +- chart/minigun/templates/servicemonitor.yaml | 1 - chart/minigun/values.yaml | 2 +- grafana/Minigun.json | 4402 ++++++++++--------- 5 files changed, 2369 insertions(+), 2050 deletions(-) diff --git a/chart/minigun/Chart.yaml b/chart/minigun/Chart.yaml index 2c9997c..385f408 100644 --- a/chart/minigun/Chart.yaml +++ b/chart/minigun/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.6.0" +appVersion: "0.6.1" diff --git a/chart/minigun/templates/deployment.yaml b/chart/minigun/templates/deployment.yaml index bd4a01d..f716297 100644 --- a/chart/minigun/templates/deployment.yaml +++ b/chart/minigun/templates/deployment.yaml @@ -33,7 +33,7 @@ spec: {{- end }} benchmark: {{ $name }} spec: - {{- with $spec.imagePullSecrets }} + {{- with $spec.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} @@ -43,12 +43,12 @@ spec: containers: - name: minigun args: - - --name={{ $name }} + - -name + - {{ $name | quote }} {{- range $k, $v := $spec.args }} - {{- if eq $k "http-header" }} - - --{{ $k }}='{{ $v }}' - {{- else }} - - --{{ $k }}={{ $v }} + - -{{ $k }} + {{- if ne (printf "%v" $v) "true" }} + - {{ $v | quote }} {{- end }} {{- end }} securityContext: diff --git a/chart/minigun/templates/servicemonitor.yaml b/chart/minigun/templates/servicemonitor.yaml index b53c3fb..a923f9c 100644 --- a/chart/minigun/templates/servicemonitor.yaml +++ b/chart/minigun/templates/servicemonitor.yaml @@ -31,7 +31,6 @@ spec: - __name__ path: /metrics port: http - relabelings: scheme: http scrapeTimeout: {{ $spec.serviceMonitor.scrapeTimeout }} jobLabel: app.kubernetes.io/instance diff --git a/chart/minigun/values.yaml b/chart/minigun/values.yaml index 16d9573..ff43066 100644 --- a/chart/minigun/values.yaml +++ b/chart/minigun/values.yaml @@ -33,7 +33,7 @@ benchmarkDeployments: repository: ghcr.io/wayfair-incubator/minigun pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "v0.6.0" + tag: "v0.6.1" imagePullSecrets: [] nameOverride: "" diff --git a/grafana/Minigun.json b/grafana/Minigun.json index d6db102..00b0263 100644 --- a/grafana/Minigun.json +++ b/grafana/Minigun.json @@ -1,26 +1,21 @@ { "__inputs": [ { - "name": "DS_PROMETHEUS1", - "label": "prometheus1", + "name": "DS_MIMIR", + "label": "Mimir", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], + "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "7.5.6" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" + "version": "11.1.4" }, { "type": "datasource", @@ -30,8 +25,14 @@ }, { "type": "panel", - "id": "singlestat", - "name": "Singlestat", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", "version": "" } ], @@ -39,7 +40,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -50,15 +54,17 @@ }, "description": "Metrics from Minigun HTTP Benchmark tool.", "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, - "iteration": 1635956692080, "links": [], "panels": [ { "collapsed": false, - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, "gridPos": { "h": 1, "w": 24, @@ -67,285 +73,274 @@ }, "id": 100, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "refId": "A" + } + ], "title": "Overall per benchmark name", "type": "row" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, "overrides": [] }, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, - "w": 3, + "w": 4, "x": 0, "y": 1 }, "id": 102, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:660", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:661", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "tableColumn": "", + "pluginVersion": "11.1.4", "targets": [ { - "expr": "sum(minigun_requests_total{cluster_name=\"$cluster_name\", namespace=~\"^$namespace$\", name=\"$name\"})", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "editorMode": "code", + "expr": "sum(increase(minigun_requests_total{cluster=\"$cluster\", namespace=~\"^$namespace$\", name=\"$name\"}[$__range]))", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "", + "range": true, "refId": "A" } ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, "title": "Requests Completed", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:663", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "mappings": [ + { + "options": { + "match": "null", + "result": { + "color": "#299c46", + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#d44a3a", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "#299c46", + "value": 0 + } + ] + }, + "unit": "short" + }, "overrides": [] }, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, - "w": 3, - "x": 3, + "w": 4, + "x": 4, "y": 1 }, "id": 103, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:399", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:400", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "tableColumn": "", + "pluginVersion": "11.1.4", "targets": [ { - "expr": "sum(minigun_requests_success_total{cluster_name=\"$cluster_name\", namespace=~\"^$namespace$\", name=\"$name\"})", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "editorMode": "code", + "expr": "sum(increase(minigun_requests_success_total{cluster=\"$cluster\", namespace=~\"^$namespace$\", name=\"$name\"}[$__range]))", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "", + "range": true, "refId": "A" } ], - "thresholds": "0,0", - "timeFrom": null, - "timeShift": null, "title": "Successful Requests", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:402", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, + "defaults": { + "mappings": [ + { + "options": { + "match": "null", + "result": { + "color": "#d44a3a", + "text": "0" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "#d44a3a", + "value": 0 + } + ] + }, + "unit": "short" + }, "overrides": [] }, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, "gridPos": { "h": 3, - "w": 3, - "x": 6, + "w": 4, + "x": 8, "y": 1 }, "id": 104, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "$$hashKey": "object:440", - "name": "value to text", - "value": 1 - }, - { - "$$hashKey": "object:441", - "name": "range to text", - "value": 2 - } - ], "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "tableColumn": "", + "pluginVersion": "11.1.4", "targets": [ { - "expr": "sum(minigun_requests_errors_total{cluster_name=\"$cluster_name\", namespace=~\"^$namespace$\", name=\"$name\"})", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "editorMode": "code", + "expr": "sum(increase(minigun_requests_errors_total{cluster=\"$cluster\", namespace=~\"^$namespace$\", name=\"$name\"}[$__range]))", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "", + "range": true, "refId": "A" } ], - "thresholds": "0,0", - "timeFrom": null, - "timeShift": null, "title": "Failed Requests", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "$$hashKey": "object:443", - "op": "=", - "text": "0", - "value": "null" - } - ], - "valueName": "avg" + "type": "stat" }, { "collapsed": false, - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, "gridPos": { "h": 1, "w": 24, @@ -354,83 +349,184 @@ }, "id": 98, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "refId": "A" + } + ], "title": "Main Metrics", "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 2, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/^In/" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/^Out/" + }, + "properties": [ + { + "id": "custom.stacking", + "value": { + "group": "B", + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "zero" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "rgb(255, 255, 255)", + "mode": "fixed" + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 10, + 10 + ], + "fill": "dash" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 5 }, - "height": "200px", - "hiddenSeries": false, "id": 32, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/^In/", - "stack": "A" - }, - { - "alias": "/^Out/", - "stack": "B" + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 }, - { - "alias": "zero", - "color": "rgb(255, 255, 255)", - "dashes": true + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "7.5.6", "targets": [ { - "expr": "sum (irate (minigun_requests_bytes_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum (irate (minigun_requests_bytes_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "instant": false, "interval": "10s", @@ -441,7 +537,11 @@ "step": 10 }, { - "expr": "-sum (irate (minigun_response_bytes_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "-sum (irate (minigun_response_bytes_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "interval": "10s", @@ -452,6 +552,10 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "expr": "vector(0)", "format": "time_series", "intervalFactor": 1, @@ -459,113 +563,123 @@ "refId": "C" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Network I/O pressure", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:946", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:947", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 5 }, - "height": "200px", - "hiddenSeries": false, "id": 90, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(irate(minigun_httptrace_connect_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(irate(minigun_httptrace_connect_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -577,112 +691,122 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Connections rate", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:629", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:630", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 2, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 12 }, - "height": "200px", - "hiddenSeries": false, "id": 92, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "round(sum(irate(minigun_requests_total{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance), 0.001)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "round(sum(irate(minigun_requests_total{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance), 0.001)", "format": "time_series", "hide": false, "instant": false, @@ -694,112 +818,122 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Request Volume", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:654", - "format": "reqps", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:655", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 2, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 12 }, - "height": "200px", - "hiddenSeries": false, "id": 96, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "round(sum(irate(minigun_response_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance, status), 0.001)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "round(sum(irate(minigun_response_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance, status), 0.001)", "format": "time_series", "hide": false, "instant": false, @@ -811,113 +945,123 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Response Volume by Status", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:679", - "format": "reqps", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:680", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 2, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 19 }, - "height": "200px", - "hiddenSeries": false, "id": 123, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "round(sum(irate(minigun_requests_errors_total{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance), 0.001)", + "expr": "round(sum(irate(minigun_requests_errors_total{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance), 0.001)", "format": "time_series", "hide": false, "instant": false, @@ -929,113 +1073,123 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Request Errors Volume", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:654", - "format": "reqps", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:655", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 2, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 19 }, - "height": "200px", - "hiddenSeries": false, "id": 124, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "irate(minigun_requests_success_total{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])/irate(minigun_requests_total{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])", + "expr": "irate(minigun_requests_success_total{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])/irate(minigun_requests_total{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])", "format": "time_series", "hide": false, "instant": false, @@ -1047,115 +1201,125 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Request Success Percentage", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:654", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:655", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "Full time of every request starting from the beginning (DNS query) and ending with receiving full response.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 26 }, - "height": "200px", - "hiddenSeries": false, "id": 88, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_requests_duration_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_requests_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_requests_duration_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_requests_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -1167,122 +1331,136 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_requests_duration_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_requests_duration_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Full request time", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:704", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:705", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "Time since request headers and body are sent and until the full response received.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 26 }, - "height": "200px", - "hiddenSeries": false, "id": 107, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_response_duration_seconds_sum{cluster_name=\"$cluster_name\",status=\"200\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_response_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_response_duration_seconds_sum{cluster=\"$cluster\",status=\"200\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_response_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -1294,60 +1472,26 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_response_duration_seconds{cluster_name=\"$cluster_name\",status=\"200\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_response_duration_seconds{cluster=\"$cluster\",status=\"200\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Response time", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:771", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:772", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { "collapsed": false, - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, "gridPos": { "h": 1, "w": 24, @@ -1356,72 +1500,132 @@ }, "id": 106, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "refId": "A" + } + ], "title": "DNS, TCP and TLS", "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 34 }, - "height": "200px", - "hiddenSeries": false, "id": 95, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(irate(minigun_httptrace_dns_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(irate(minigun_httptrace_dns_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -1433,114 +1637,124 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "DNS query rate", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:796", - "format": "ops", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:797", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 34 }, - "height": "200px", - "hiddenSeries": false, "id": 108, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_httptrace_dns_duration_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_dns_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_httptrace_dns_duration_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_dns_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -1552,120 +1766,133 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_httptrace_dns_duration_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_httptrace_dns_duration_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "DNS query duration", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:821", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:822", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 41 }, - "height": "200px", - "hiddenSeries": false, "id": 109, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(irate(minigun_httptrace_connect_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(irate(minigun_httptrace_connect_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -1677,114 +1904,123 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "TCP connect rate", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:162", - "format": "ops", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:163", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 41 }, - "height": "200px", - "hiddenSeries": false, "id": 110, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_httptrace_connect_duration_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_connect_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_httptrace_connect_duration_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_connect_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -1796,120 +2032,134 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_httptrace_connect_duration_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_httptrace_connect_duration_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "TCP connect time", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:187", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:188", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 48 }, - "height": "200px", - "hiddenSeries": false, "id": 111, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(irate(minigun_httptrace_tls_handshake_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(irate(minigun_httptrace_tls_handshake_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -1921,114 +2171,124 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "TLS handshake rate", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:846", - "format": "ops", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:847", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, - "editable": true, - "error": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 48 }, - "height": "200px", - "hiddenSeries": false, "id": 112, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_httptrace_tls_handshake_duration_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_tls_handshake_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_httptrace_tls_handshake_duration_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_tls_handshake_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -2040,60 +2300,26 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_httptrace_tls_handshake_duration_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_httptrace_tls_handshake_duration_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "TLS handshake time", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:871", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:872", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { "collapsed": false, - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, "gridPos": { "h": 1, "w": 24, @@ -2102,74 +2328,134 @@ }, "id": 114, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "refId": "A" + } + ], "title": "HTTP Metrics", "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "Time required to write request body to the remote endpoint.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 56 }, - "height": "200px", - "hiddenSeries": false, "id": 115, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_httptrace_write_request_body_duration_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_write_request_body_duration_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_httptrace_write_request_body_duration_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_write_request_body_duration_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -2181,122 +2467,136 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_httptrace_write_request_body_duration_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_httptrace_write_request_body_duration_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Write request body duration", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:896", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:897", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "Time from the beginning of request till the first byte of response is received.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 56 }, - "height": "200px", - "hiddenSeries": false, "id": 116, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(irate(minigun_httptrace_time_to_first_byte_seconds_sum{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_time_to_first_byte_seconds_count{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", + "expr": "avg(irate(minigun_httptrace_time_to_first_byte_seconds_sum{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name) /\navg(irate(minigun_httptrace_time_to_first_byte_seconds_count{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}[5m])) by (name)", "format": "time_series", "hide": false, "instant": false, @@ -2308,60 +2608,26 @@ "step": 10 }, { + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "exemplar": true, - "expr": "avg(minigun_httptrace_time_to_first_byte_seconds{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", + "expr": "avg(minigun_httptrace_time_to_first_byte_seconds{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=~\"$name\"}) by (name, quantile)", "interval": "", "legendFormat": "{{quantile}}:", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Time to first byte", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:921", - "format": "s", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:922", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { "collapsed": false, - "datasource": "${DS_PROMETHEUS1}", + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, "gridPos": { "h": 1, "w": 24, @@ -2370,73 +2636,133 @@ }, "id": 118, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "mimir" + }, + "refId": "A" + } + ], "title": "Benchmark Health", "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "The length of the tasks queue in Minigun benchmark tool.\n\nIdeally this should be zero all the time. If you get constant high value here, then it means Minigun worker(s) can't run HTTP requests at the desired rate which could be caused by the target endpoint slowness or by the lack of Minigun resources/workers. Try increasing the workers count in your Minigun benchmark and make sure they have enough CPU.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 64 }, - "height": "200px", - "hiddenSeries": false, "id": 119, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(minigun_runtime_channel_length{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=\"$name\"}) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(minigun_runtime_channel_length{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=\"$name\"}) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -2448,120 +2774,134 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Task queue length", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:846", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:847", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 0, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 64 }, - "height": "200px", - "hiddenSeries": false, "id": 120, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": false + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "avg(kube_pod_container_resource_limits_cpu_cores{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",container=\"minigun\",pod=~\"^$instance$\"}) by (container)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "avg(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\",namespace=~\"^$namespace$\",container=\"minigun\",pod=~\"^$instance$\"}) by (container)", "interval": "", "legendFormat": "Limit ({{ container }})", "refId": "B" }, { - "expr": "sum by (pod)( rate(container_cpu_usage_seconds_total{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",image!=\"\",container=\"minigun\",container!=\"POD\",pod=~\"^$instance$\"}[5m] ) )", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum by (pod)( rate(container_cpu_usage_seconds_total{cluster=\"$cluster\",namespace=~\"^$namespace$\",image!=\"\",container=\"minigun\",container!=\"POD\",pod=~\"^$instance$\"}[5m] ) )", "format": "time_series", "hide": false, "instant": false, @@ -2573,114 +2913,124 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "CPU usage", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:846", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:847", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "The number of task queue full events.\n\nIdeally this should be zero all the time. If you get constant high value here, then it means Minigun worker(s) can't run HTTP requests at the desired rate which could be caused by the target endpoint slowness or by the lack of Minigun resources/workers. Try increasing the workers count in your Minigun benchmark and make sure they have enough CPU.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 71 }, - "height": "200px", - "hiddenSeries": false, "id": 121, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum(irate(minigun_runtime_channel_full_events{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=\"$name\"}[5m])) by (instance)", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "sum(irate(minigun_runtime_channel_full_events{cluster=\"$cluster\",namespace=~\"^$namespace$\",instance=~\"^$instance$\",name=\"$name\"}[5m])) by (instance)", "format": "time_series", "hide": false, "instant": false, @@ -2692,167 +3042,135 @@ "step": 10 } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Task queue full events", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:846", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:847", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_PROMETHEUS1}", - "decimals": 1, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, "description": "This should be 0% all the time. If it's not, it means Minigun workers are throttled and benchmark result will be affected by it.", - "editable": true, - "error": false, "fieldConfig": { - "defaults": {}, - "overrides": [] + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 0, - "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 71 }, - "height": "200px", - "hiddenSeries": false, "id": 122, "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 300, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", "options": { - "alertThreshold": false + "legend": { + "calcs": [ + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "width": 300 + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } }, - "percentage": false, "pluginVersion": "7.5.6", - "pointradius": 5, - "points": false, - "renderer": "flot", "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { - "expr": "avg by (pod)(rate(container_cpu_cfs_throttled_periods_total{cluster_name=\"$cluster_name\",image!=\"\",container=\"minigun\",namespace=~\"^$namespace$\",pod=~\"^$instance$\"}[5m] )) / avg by (pod)(rate(container_cpu_cfs_periods_total{cluster_name=\"$cluster_name\",image!=\"\",container=\"minigun\",namespace=~\"^$namespace$\",pod=~\"^$instance$\"}[5m]))", + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "expr": "avg by (pod)(rate(container_cpu_cfs_throttled_periods_total{cluster=\"$cluster\",image!=\"\",container=\"minigun\",namespace=~\"^$namespace$\",pod=~\"^$instance$\"}[5m] )) / avg by (pod)(rate(container_cpu_cfs_periods_total{cluster=\"$cluster\",image!=\"\",container=\"minigun\",namespace=~\"^$namespace$\",pod=~\"^$instance$\"}[5m]))", "interval": "", "legendFormat": "{{ pod }}", "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "CPU throttle rate", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:846", - "format": "percentunit", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:847", - "format": "Bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" } ], - "refresh": false, - "schemaVersion": 27, - "style": "dark", + "refresh": "5m", + "schemaVersion": 39, "tags": [ "kubernetes" ], @@ -2861,26 +3179,27 @@ { "allValue": ".*", "current": {}, - "datasource": "${DS_PROMETHEUS1}", - "definition": "label_values(kube_node_info, cluster_name)", - "description": null, - "error": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "definition": "label_values(minigun_config_workers,cluster)", "hide": 0, "includeAll": false, "label": "Cluster", "multi": false, - "name": "cluster_name", + "name": "cluster", "options": [], "query": { - "query": "label_values(kube_node_info, cluster_name)", - "refId": "kubernetes-monitoring-cluster_name-Variable-Query" + "qryType": 1, + "query": "label_values(minigun_config_workers,cluster)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "(?!^federation$).*", "skipUrlSync": false, - "sort": 0, + "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -2888,10 +3207,11 @@ { "allValue": ".*", "current": {}, - "datasource": "${DS_PROMETHEUS1}", - "definition": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\"}, namespace) ", - "description": null, - "error": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "definition": "label_values(minigun_config_workers{cluster=\"$cluster\"}, namespace) ", "hide": 0, "includeAll": true, "label": "Namespace", @@ -2899,15 +3219,14 @@ "name": "namespace", "options": [], "query": { - "query": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\"}, namespace) ", + "query": "label_values(minigun_config_workers{cluster=\"$cluster\"}, namespace) ", "refId": "kubernetes-monitoring-namespace-Variable-Query" }, "refresh": 2, "regex": "", "skipUrlSync": false, - "sort": 0, + "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -2915,10 +3234,11 @@ { "allValue": ".*", "current": {}, - "datasource": "${DS_PROMETHEUS1}", - "definition": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\"}, name) ", - "description": null, - "error": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "definition": "label_values(minigun_config_workers{cluster=\"$cluster\",namespace=~\"^$namespace$\"}, name) ", "hide": 0, "includeAll": false, "label": "Benchmark name", @@ -2926,15 +3246,14 @@ "name": "name", "options": [], "query": { - "query": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\"}, name) ", + "query": "label_values(minigun_config_workers{cluster=\"$cluster\",namespace=~\"^$namespace$\"}, name) ", "refId": "kubernetes-monitoring-name-Variable-Query" }, "refresh": 2, "regex": "", "skipUrlSync": false, - "sort": 0, + "sort": 1, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -2942,10 +3261,11 @@ { "allValue": ".*", "current": {}, - "datasource": "${DS_PROMETHEUS1}", - "definition": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",name=~\"$name\"}, instance) ", - "description": null, - "error": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_MIMIR}" + }, + "definition": "label_values(minigun_config_workers{cluster=\"$cluster\",namespace=~\"^$namespace$\",name=~\"$name\"}, instance) ", "hide": 0, "includeAll": true, "label": "Benchmark test instance", @@ -2953,7 +3273,7 @@ "name": "instance", "options": [], "query": { - "query": "label_values(minigun_config_workers{cluster_name=\"$cluster_name\",namespace=~\"^$namespace$\",name=~\"$name\"}, instance) ", + "query": "label_values(minigun_config_workers{cluster=\"$cluster\",namespace=~\"^$namespace$\",name=~\"$name\"}, instance) ", "refId": "kubernetes-monitoring-instance-Variable-Query" }, "refresh": 2, @@ -2961,7 +3281,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -2996,5 +3315,6 @@ "timezone": "browser", "title": "Kubernetes: Minigun HTTP Benchmark", "uid": "minigun", - "version": 23 -} + "version": 1, + "weekStart": "" +} \ No newline at end of file