You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Choose the Prometheus data source from the dropdown in the top left.
61
-
1. In the query field, query k6 metrics to explore your testing results.
58
+
To visualize test results with Grafana, you can import the [k6 Prometheus dashboard by Grafana k6](https://grafana.com/grafana/dashboards/19665-k6-prometheus/).
59
+
60
+
On the Dashboards UI:
61
+
62
+
- Click `New` and select `Import`.
63
+
- Paste the Grafana URL or ID of the dashboard, and click `Load`.
64
+
- Select the Prometheus data source, and click `Import`.
Optionally, when running the test, you can set the `testid` tag as a [wide test tag](https://k6.io/docs/using-k6/tags-and-groups/#test-wide-tags) to filter results of a particular test run on this dashboard (or in PromQL queries). `testid` can be any unique string that allows you to identify the test run.
k6 run -o experimental-prometheus-rw --tag testid=TEST_ID script.js
77
+
```
78
+
79
+
</CodeGroup>
80
+
81
+
Additionally, you can also use the [Explore UI](https://grafana.com/docs/grafana/latest/explore/) to query k6 time series, design your visualization panels, and add them to any of your existing dashboards.
62
82
63
83

64
84
65
-
## Read more
85
+
All the k6 time series have a **k6_** prefix.
86
+
For more details, refer to the documentation on the [mapping of k6 metrics with Prometheus metrics](/results-output/real-time/prometheus-remote-write/#metrics-mapping).
87
+
88
+
It's also important to understand the default [Trend metric conversion](/results-output/real-time/prometheus-remote-write/#trend-metric-conversions) process and the format and querying limitations. The [`K6_PROMETHEUS_RW_TREND_STATS` option](/results-output/real-time/prometheus-remote-write/#options) allows you to convert trend metrics to multiple Prometheus time series. For instance, `K6_PROMETHEUS_RW_TREND_STATS=p(95),p(99),max,min` transforms each k6 trend metric into four Prometheus metrics as follows:
89
+
90
+
-`k6_*_p95`
91
+
-`k6_*_p99`
92
+
-`k6_*_max`
93
+
-`k6_*_min`
66
94
67
-
-[K6 makes performance testing easy with Prometheus and Grafana in Docker](https://medium.com/@rody.bothe/turning-data-into-understandable-insights-with-k6-load-testing-fa24e326e221)
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/04 Results output/300 Grafana dashboards.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,21 @@ Having test results in a dashboard brings various benefits:
12
12
13
13
## Options
14
14
15
-
With [Grafana](https://grafana.com/grafana/), you can create a custom dashboard to query and **visualize data from multiple sources and any type of backend**. With k6, you can stream your test results to any backend using a [custom output extension](/extensions/get-started/create/output-extensions/) or an existing [real-time output](/results-output/real-time/#service).
15
+
With [Grafana](https://grafana.com/grafana/), you can create a custom dashboard to query and **visualize data from multiple sources and any type of backend**.
16
+
Using k6, you can [stream your local test results to any backend](/results-output/real-time).
17
+
18
+
The flexibility and interoperability of Grafana and k6 let you visualize test and observability data in one dashboard, regardless of where the data is stored.
19
+
The following outputs include pre-built Grafana dashboards for their storage:
| ---- |[More public dashboards from the community](https://grafana.com/grafana/dashboards/?search=k6)|
16
30
17
-
The flexibility and interoperability of Grafana and k6 let you join test and observability data in one dashboard, independently of where the data is stored.
18
-
19
-
For inspiration about how to build a custom dashboard that visualizes k6 results, browse the list of [community-built k6 dashboards](https://grafana.com/grafana/dashboards/?search=k6). The following outputs include pre-built Grafana dashboards for their storage:
For a fully managed solution, [Grafana Cloud k6](https://grafana.com/products/cloud/k6/) is our commercial product to store, view, scale, and manage your tests with ease. It provides custom views to access your testing and analyze test results, enhanced collaboration features, and many more additional capabilities.
0 commit comments