diff --git a/dashboard.json b/dashboard.json index a820150..2b7f2f1 100644 --- a/dashboard.json +++ b/dashboard.json @@ -92,14 +92,16 @@ "id": 2, "options": { "legend": { - "calcs": [], + "calcs": [ + "last" + ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "mode": "multi", - "sort": "none" + "sort": "asc" } }, "targets": [ @@ -109,11 +111,12 @@ "uid": "adxa1mg0zfym8a" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, sum(rate(app_times_seconds_bucket[30s])) by (le,status))\n", + "expr": "histogram_quantile(0.50, sum(rate(app_times_seconds_bucket[30s])) by (le))\n", + "hide": false, "instant": false, - "legendFormat": "p95", + "legendFormat": "p50", "range": true, - "refId": "A" + "refId": "C" }, { "datasource": { @@ -121,7 +124,7 @@ "uid": "adxa1mg0zfym8a" }, "editorMode": "code", - "expr": "histogram_quantile(0.75, sum(rate(app_times_seconds_bucket[30s])) by (le,status))\n", + "expr": "histogram_quantile(0.75, sum(rate(app_times_seconds_bucket[30s])) by (le))\n", "hide": false, "instant": false, "legendFormat": "p75", @@ -134,12 +137,37 @@ "uid": "adxa1mg0zfym8a" }, "editorMode": "code", - "expr": "histogram_quantile(0.50, sum(rate(app_times_seconds_bucket[30s])) by (le,status))\n", + "expr": "histogram_quantile(0.90, sum(rate(app_times_seconds_bucket[30s])) by (le))\n", + "instant": false, + "legendFormat": "p90", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.95, sum(rate(app_times_seconds_bucket[30s])) by (le))\n", "hide": false, "instant": false, - "legendFormat": "p50", + "legendFormat": "p95", "range": true, - "refId": "C" + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.99, sum(rate(app_times_seconds_bucket[30s])) by (le))\n", + "hide": false, + "instant": false, + "legendFormat": "p99", + "range": true, + "refId": "E" }, { "datasource": { @@ -230,14 +258,16 @@ "id": 4, "options": { "legend": { - "calcs": [], + "calcs": [ + "last" + ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "mode": "multi", - "sort": "none" + "sort": "asc" } }, "targets": [ @@ -248,12 +278,12 @@ }, "disableTextWrap": false, "editorMode": "code", - "expr": "app_times_summary_seconds{}", + "expr": "app_times_summary_seconds{status=\"10ms\"}", "fullMetaSearch": false, "hide": false, "includeNullMetadata": true, "instant": false, - "legendFormat": "{{quantile}}", + "legendFormat": "{{quantile}} - {{status}}", "range": true, "refId": "A", "useBackend": false @@ -268,7 +298,6 @@ "type": "prometheus", "uid": "adxa1mg0zfym8a" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -320,7 +349,8 @@ "value": 80 } ] - } + }, + "unit": "s" }, "overrides": [] }, @@ -330,17 +360,19 @@ "x": 0, "y": 8 }, - "id": 1, + "id": 5, "options": { "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", "showLegend": true }, "tooltip": { - "mode": "single", - "sort": "none" + "mode": "multi", + "sort": "asc" } }, "targets": [ @@ -349,19 +381,80 @@ "type": "prometheus", "uid": "adxa1mg0zfym8a" }, - "disableTextWrap": false, "editorMode": "code", - "expr": "avg_over_time(go_goroutines[5m])", - "fullMetaSearch": false, - "includeNullMetadata": true, + "expr": "histogram_quantile(0.50, sum(rate(app_times_native_seconds{status=\"10ms\"}[30s])))", + "hide": false, "instant": false, - "legendFormat": "__auto", + "legendFormat": "p50", "range": true, - "refId": "A", - "useBackend": false + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.75, sum(rate(app_times_native_seconds{status=\"10ms\"}[30s])))\n", + "hide": false, + "instant": false, + "legendFormat": "p75", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.90, sum(rate(app_times_native_seconds{status=\"10ms\"}[30s])))\n", + "hide": false, + "instant": false, + "legendFormat": "p90", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.95, sum(rate(app_times_native_seconds{status=\"10ms\"}[30s])))\n", + "instant": false, + "legendFormat": "p95", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.99, sum(rate(app_times_native_seconds{status=\"10ms\"}[30s])))\n", + "hide": false, + "instant": false, + "legendFormat": "p99", + "range": true, + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "editorMode": "code", + "expr": "rate(app_times_seconds_sum[1m]) / rate(app_times_seconds_count[1m])", + "hide": false, + "instant": false, + "legendFormat": "mean", + "range": true, + "refId": "D" } ], - "title": "Basic", + "title": "Native", "type": "timeseries" }, { @@ -435,7 +528,9 @@ "id": 3, "options": { "legend": { - "calcs": [], + "calcs": [ + "lastNotNull" + ], "displayMode": "table", "placement": "right", "showLegend": true @@ -457,7 +552,7 @@ "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, - "legendFormat": "{{rps}}", + "legendFormat": "requests", "range": true, "refId": "A", "useBackend": false @@ -465,6 +560,110 @@ ], "title": "Requests", "type": "timeseries" + }, + { + "datasource": { + "default": true, + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 1, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "adxa1mg0zfym8a" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "avg_over_time(go_goroutines[1m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "goroutines", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "goroutines", + "type": "timeseries" } ], "refresh": "", @@ -474,13 +673,13 @@ "list": [] }, "time": { - "from": "now-15m", + "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "App", "uid": "bdxa1umuwhs00d", - "version": 12, + "version": 27, "weekStart": "" } \ No newline at end of file