diff --git a/grafana/dashboards/k6-prometheus.json b/grafana/dashboards/k6-prometheus.json index fbf5d0a..ab8568e 100644 --- a/grafana/dashboards/k6-prometheus.json +++ b/grafana/dashboards/k6-prometheus.json @@ -18,7 +18,8 @@ "description": "Visualize k6 OSS results stored in Prometheus", "editable": true, "fiscalYearStartMonth": 0, - "graphTooltip": 0, + "gnetId": 19665, + "graphTooltip": 2, "links": [ { "asDropdown": false, @@ -46,6 +47,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -212,7 +214,7 @@ "showLegend": true }, "tooltip": { - "mode": "single", + "mode": "multi", "sort": "none" } }, @@ -223,7 +225,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "avg(k6_vus{testid=~\"$testid\"})", + "expr": "sum(k6_vus{testid=~\"$testid\"})", "instant": false, "legendFormat": "vus", "range": true, @@ -339,9 +341,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -401,9 +405,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -462,9 +468,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -474,12 +482,19 @@ "editorMode": "code", "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))", "instant": false, + "interval": "", "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Peak RPS", + "transformations": [ + { + "id": "reduce", + "options": {} + } + ], "type": "stat" }, { @@ -524,9 +539,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -555,6 +572,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -660,6 +678,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -792,6 +811,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -827,7 +847,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -965,6 +986,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1001,7 +1023,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1144,6 +1167,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1180,7 +1204,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1349,7 +1374,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1462,7 +1488,7 @@ "frameIndex": 2, "showHeader": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -1636,7 +1662,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] } @@ -1711,7 +1738,7 @@ } ] }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "targets": [ { "datasource": { @@ -1802,6 +1829,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1839,7 +1867,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] }, @@ -1904,13 +1933,12 @@ "content": "### Visualize other k6 results \n\nAt the top of the dashboard, click `Add` and select `Visualization` from the dropdown menu. Choose the visualization type and input the PromQL queries for the `k6_` metric(s).\n\nAlternatively, click on the `Explore` icon on the menu bar and input the queries for the `k6_` metric(s). From `Explore`, you can add new Panels to this dashboard. \n\nNote that all k6 metrics are prefixed with the `k6_` namespace when sent to Prometheus.", "mode": "markdown" }, - "pluginVersion": "10.1.2", + "pluginVersion": "10.4.0", "type": "text" } ], "refresh": "", - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 39, "tags": [ "prometheus", "k6" @@ -1921,7 +1949,7 @@ "current": { "selected": false, "text": "prometheus", - "value": "P1809F7CD0C75ACF3" + "value": "${DS_PROMETHEUS}" }, "description": "Choose a Prometheus Data Source", "hide": 0, @@ -2021,6 +2049,6 @@ "timezone": "", "title": "k6 Prometheus", "uid": "ccbb2351-2ae2-462f-ae0e-f2c893ad1028", - "version": 1, + "version": 2, "weekStart": "" -} \ No newline at end of file +}