Skip to content

Commit ff6a28f

Browse files
authored
Update dashboards instructions (grafana#150)
1 parent e3ccd59 commit ff6a28f

17 files changed

+17
-91
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ Check [the documentation](https://k6.io/docs/results-output/real-time/prometheus
2828

2929
## Dashboards
3030

31-
[<img src="./images/prometheus-dashboard-k6-test-result.png" width="500"/>](./images/prometheus-dashboard-k6-test-result.png)
31+
<p>&nbsp;</p>
3232

33-
Pre-built Grafana dashboards are available. Check the [dashboard guide](https://k6.io/docs/results-output/real-time/prometheus-remote-write/#time-series-visualization) how to import and use it from the source code or directly from [Grafana.com](https://grafana.com/grafana/dashboards/18030-test-result).
33+
[<img src="./images/dashboard-k6-prometheus-upper-section.png" width="500"/>](./images/dashboard-k6-prometheus.png)
3434

35-
>Note: The dashboards work with the Native Histogram mapping so it is required to enable it.
35+
This repo contains the [source code](./grafana/dashboards) of two Grafana dashboards designed to visualize test results: [`k6 Prometheus`](https://grafana.com/grafana/dashboards/19665-k6-prometheus/) and [k6 Prometheus (Native Histograms)](https://grafana.com/grafana/dashboards/18030-k6-prometheus-native-histograms/).
36+
37+
Refer to the [documentation](https://k6.io/docs/results-output/real-time/prometheus-remote-write/#time-series-visualization) to learn more about these dashboards. You can import them to your Grafana instance or with the docker-compose example on this repo.
38+
39+
🌟 Special thanks to [jwcastillo](https://github.com/jwcastillo) for his contributions and dedication to improving the dashboards.

grafana/dashboards/README.md

-73
This file was deleted.

grafana/dashboards/k6-prometheus-native-histogram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
]
1717
},
18-
"description": "Visualize k6 OSS results stored in Prometheus with Native Histogram. K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM option must be true. ",
18+
"description": "Visualize k6 OSS results stored in Prometheus with Native Histograms.",
1919
"editable": true,
2020
"fiscalYearStartMonth": 0,
2121
"graphTooltip": 0,

grafana/dashboards/k6-prometheus.json

+9-14
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,7 @@
827827
"mode": "absolute",
828828
"steps": [
829829
{
830-
"color": "green",
831-
"value": null
830+
"color": "green"
832831
}
833832
]
834833
},
@@ -1002,8 +1001,7 @@
10021001
"mode": "absolute",
10031002
"steps": [
10041003
{
1005-
"color": "green",
1006-
"value": null
1004+
"color": "green"
10071005
}
10081006
]
10091007
},
@@ -1182,8 +1180,7 @@
11821180
"mode": "absolute",
11831181
"steps": [
11841182
{
1185-
"color": "green",
1186-
"value": null
1183+
"color": "green"
11871184
}
11881185
]
11891186
},
@@ -1352,8 +1349,7 @@
13521349
"mode": "absolute",
13531350
"steps": [
13541351
{
1355-
"color": "green",
1356-
"value": null
1352+
"color": "green"
13571353
}
13581354
]
13591355
}
@@ -1640,8 +1636,7 @@
16401636
"mode": "absolute",
16411637
"steps": [
16421638
{
1643-
"color": "green",
1644-
"value": null
1639+
"color": "green"
16451640
}
16461641
]
16471642
}
@@ -1844,8 +1839,7 @@
18441839
"mode": "absolute",
18451840
"steps": [
18461841
{
1847-
"color": "green",
1848-
"value": null
1842+
"color": "green"
18491843
}
18501844
]
18511845
},
@@ -1977,9 +1971,10 @@
19771971
},
19781972
{
19791973
"current": {
1974+
"isNone": true,
19801975
"selected": false,
1981-
"text": "p99",
1982-
"value": "p99"
1976+
"text": "None",
1977+
"value": ""
19831978
},
19841979
"datasource": {
19851980
"type": "prometheus",
Loading
Loading
Loading

images/dashboard-k6-prometheus-nh.png

494 KB
Loading
Loading

images/dashboard-k6-prometheus.png

522 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-296 KB
Binary file not shown.
-77.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)