<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Results output on Grafana Labs</title><link>https://grafana.com/docs/k6/v2.3.x/results-output/</link><description>Recent content in Results output on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/k6/v2.3.x/results-output/index.xml" rel="self" type="application/rss+xml"/><item><title>End of test</title><link>https://grafana.com/docs/k6/v2.3.x/results-output/end-of-test/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/results-output/end-of-test/</guid><content><![CDATA[&lt;h1 id=&#34;end-of-test&#34;&gt;End of test&lt;/h1&gt;
&lt;p&gt;When a test finishes, k6 prints a summary of the aggregated results to &lt;code&gt;stdout&lt;/code&gt;. By default, k6 uses a &amp;ldquo;compact&amp;rdquo; summary mode that focuses on the most important metrics, but you can also use a &amp;ldquo;full&amp;rdquo; mode that shows all available information.&lt;/p&gt;
&lt;h2 id=&#34;summary-modes&#34;&gt;Summary modes&lt;/h2&gt;
&lt;p&gt;k6 provides three different ways to display test results through the 
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/k6-options/reference/#summary-mode&#34;&gt;&lt;code&gt;--summary-mode&lt;/code&gt; option&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;compact&lt;/strong&gt; (default): Displays the most relevant test results in a concise format.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;full&lt;/strong&gt;: Includes everything from the compact format, plus additional k6 metrics and detailed results for each group and scenario.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;disabled&lt;/strong&gt;: Disables the end-of-test summary.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;compact-mode-default&#34;&gt;Compact mode (default)&lt;/h3&gt;
&lt;p&gt;The compact mode provides a concise overview focusing on three key aspects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Thresholds results&lt;/li&gt;
&lt;li&gt;Checks results&lt;/li&gt;
&lt;li&gt;Aggregated metrics results by category&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;  █ THRESHOLDS

    http_req_duration
    ✓ &amp;#39;p(95)&amp;lt;1500&amp;#39; p(95)=148.21ms
    ✓ &amp;#39;p(90)&amp;lt;2000&amp;#39; p(90)=146.88ms

    http_req_failed
    ✓ &amp;#39;rate&amp;lt;0.01&amp;#39; rate=0.00%


  █ TOTAL RESULTS

    checks_total.......................: 90      13.122179/s
    checks_succeeded...................: 100.00% 90 out of 90
    checks_failed......................: 0.00%   0 out of 90

    ✓ test-api.k6.io is up
    ✓ status is 200

    CUSTOM
    custom_waiting_time................: avg=152.355556 min=120      med=141      max=684      p(90)=147.2    p(95)=148.8

    HTTP
    http_req_duration..................: avg=140.36ms   min=119.08ms med=140.96ms max=154.63ms p(90)=146.88ms p(95)=148.21ms
      { expected_response:true }.......: avg=140.36ms   min=119.08ms med=140.96ms max=154.63ms p(90)=146.88ms p(95)=148.21ms
    http_req_failed....................: 0.00%  0 out of 45
    http_reqs..........................: 45     6.56109/s

    EXECUTION
    iteration_duration.................: avg=152.38ms   min=119.37ms med=141.27ms max=684.62ms p(90)=147.11ms p(95)=148.39ms
    iterations.........................: 45     6.56109/s
    vus................................: 1      min=1       max=1
    vus_max............................: 1      min=1       max=1

    NETWORK
    data_received......................: 519 kB 76 kB/s
    data_sent..........................: 4.9 kB 718 B/s&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;full-mode&#34;&gt;Full mode&lt;/h3&gt;
&lt;p&gt;The full mode provides comprehensive test results, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All information from compact mode&lt;/li&gt;
&lt;li&gt;Group-specific results&lt;/li&gt;
&lt;li&gt;Scenario-specific results&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;  █ THRESHOLDS

    http_req_duration
    ✓ &amp;#39;p(95)&amp;lt;1500&amp;#39; p(95)=145.17ms
    ✓ &amp;#39;p(90)&amp;lt;2000&amp;#39; p(90)=132.76ms

    http_req_failed
    ✓ &amp;#39;rate&amp;lt;0.01&amp;#39; rate=0.00%


  █ TOTAL RESULTS

    checks_total.......................: 110     19.569305/s
    checks_succeeded...................: 100.00% 110 out of 110
    checks_failed......................: 0.00%   0 out of 110

    ✓ grafana.com is up
    ✓ status is 200
    ✓ test-api.k6.io is up
    ✓ crocodile exists

    CUSTOM
    custom_waiting_time................: avg=92.444444 min=56      med=63       max=365      p(90)=120      p(95)=121

    HTTP
    http_req_blocked...................: avg=4.36ms    min=0s      med=5µs      max=245.04ms p(90)=13µs     p(95)=14.59µs
    http_req_connecting................: avg=1.99ms    min=0s      med=0s       max=115.51ms p(90)=0s       p(95)=0s
    http_req_duration..................: avg=105.72ms  min=56.31ms med=117.44ms max=328.62ms p(90)=132.76ms p(95)=145.17ms
      { expected_response:true }.......: avg=105.72ms  min=56.31ms med=117.44ms max=328.62ms p(90)=132.76ms p(95)=145.17ms
    http_req_failed....................: 0.00%  0 out of 65
    http_req_receiving.................: avg=11.83ms   min=39µs    med=168µs    max=54.2ms   p(90)=30.73ms  p(95)=31.49ms
    http_req_sending...................: avg=43.32µs   min=11µs    med=27µs     max=485µs    p(90)=74.2µs   p(95)=81.59µs
    http_req_tls_handshaking...........: avg=2.3ms     min=0s      med=0s       max=127.41ms p(90)=0s       p(95)=0s
    http_req_waiting...................: avg=93.85ms   min=26.54ms med=117.12ms max=328.38ms p(90)=132.61ms p(95)=145.11ms
    http_reqs..........................: 65     11.56368/s

    EXECUTION
    iteration_duration.................: avg=159.31ms  min=56.45ms med=62.65ms  max=570.47ms p(90)=258.2ms  p(95)=350.51ms
    iterations.........................: 45     8.005625/s
    vus................................: 1      min=1       max=2
    vus_max............................: 2      min=2       max=2

    NETWORK
    data_received......................: 7.1 MB 1.3 MB/s
    data_sent..........................: 32 kB  5.6 kB/s


  █ SCENARIO: left

    checks_total.......................: 60      10.674166/s
    checks_succeeded...................: 100.00% 60 out of 60
    checks_failed......................: 0.00%   0 out of 60

    ✓ test-api.k6.io is up
    ✓ status is 200
    ✓ crocodile exists

    CUSTOM
    custom_waiting_time................: avg=130.6    min=116      med=118      max=365      p(90)=121      p(95)=133.2

    HTTP
    http_req_blocked...................: avg=6.13ms   min=2µs      med=6µs      max=245.04ms p(90)=13µs     p(95)=15.99µs
    http_req_connecting................: avg=2.88ms   min=0s       med=0s       max=115.51ms p(90)=0s       p(95)=0s
    http_req_duration..................: avg=134.17ms min=116.42ms med=122.02ms max=328.62ms p(90)=140.36ms p(95)=207.85ms
    http_req_failed....................: 0.00%  0 out of 40
    http_req_receiving.................: avg=128.64µs min=39µs     med=88µs     max=630µs    p(90)=207µs    p(95)=234.04µs
    http_req_sending...................: avg=21.82µs  min=11µs     med=20µs     max=44µs     p(90)=29.3µs   p(95)=34.05µs
    http_req_tls_handshaking...........: avg=3.18ms   min=0s       med=0s       max=127.41ms p(90)=0s       p(95)=0s
    http_req_waiting...................: avg=134.02ms min=116.32ms med=121.93ms max=328.38ms p(90)=140.29ms p(95)=207.73ms
    http_reqs..........................: 40     7.116111/s

    EXECUTION
    iteration_duration.................: avg=281.02ms min=239.75ms med=249.02ms max=570.47ms p(90)=379.3ms  p(95)=455.72ms
    iterations.........................: 20     3.558055/s

    NETWORK
    data_received......................: 239 kB 43 kB/s
    data_sent..........................: 4.8 kB 857 B/s

    ↳ GROUP: crocodiles results

      checks_total.....................: 20      3.558055/s
      checks_succeeded.................: 100.00% 20 out of 20
      checks_failed....................: 0.00%   0 out of 20

      ✓ crocodile exists

      HTTP
      http_req_blocked.................: avg=7.75µs   min=4µs      med=6µs      max=35µs     p(90)=9.4µs    p(95)=14.09µs
      http_req_connecting..............: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s
      http_req_duration................: avg=150.15ms min=122.84ms med=130.79ms max=328.62ms p(90)=210.14ms p(95)=255.24ms
      http_req_failed..................: 0.00% 0 out of 20
      http_req_receiving...............: avg=130.99µs min=43µs     med=95.5µs   max=558µs    p(90)=207µs    p(95)=233.09µs
      http_req_sending.................: avg=19.95µs  min=13µs     med=19µs     max=35µs     p(90)=23.2µs   p(95)=25.49µs
      http_req_tls_handshaking.........: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s
      http_req_waiting.................: avg=150ms    min=122.78ms med=130.46ms max=328.38ms p(90)=210.01ms p(95)=255.02ms
      http_reqs........................: 20    3.558055/s&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;understanding-the-summary-components&#34;&gt;Understanding the summary components&lt;/h2&gt;
&lt;p&gt;The summary report organizes information into several key sections:&lt;/p&gt;
&lt;h3 id=&#34;metrics-by-category&#34;&gt;Metrics by category&lt;/h3&gt;
&lt;p&gt;The summary displays metrics based on their source:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Protocol-specific metrics&lt;/strong&gt;: Results from modules like &lt;code&gt;k6/http&lt;/code&gt;, &lt;code&gt;k6/net/grpc&lt;/code&gt;, or &lt;code&gt;k6/browser&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Execution metrics&lt;/strong&gt;: Test execution details like iterations and virtual users (VUs)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Network metrics&lt;/strong&gt;: Data transfer statistics&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Categories appear only when relevant. For example, browser metrics appear only when using the &lt;code&gt;k6/browser&lt;/code&gt; module.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;checks-and-thresholds&#34;&gt;Checks and thresholds&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/thresholds/&#34;&gt;&lt;strong&gt;Thresholds&lt;/strong&gt;&lt;/a&gt;: Pass/fail results of performance requirements defined in your test options&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Example: Response time limits or error rate limits&lt;/li&gt;
&lt;li&gt;Always displayed at the top of the results&lt;/li&gt;
&lt;li&gt;Clear indication of success (✓) or failure (✗)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/checks/&#34;&gt;&lt;strong&gt;Checks&lt;/strong&gt;&lt;/a&gt;: Results of test assertions that verify specific behaviors&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Example: Response status codes or response body content&lt;/li&gt;
&lt;li&gt;Shows pass/fail ratio for each check&lt;/li&gt;
&lt;li&gt;In full mode, checks appear under their respective groups or scenarios&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;groups-and-scenarios-full-mode-only&#34;&gt;Groups and scenarios (full mode only)&lt;/h3&gt;
&lt;p&gt;When using full mode, you&amp;rsquo;ll see additional sections:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/tags-and-groups/&#34;&gt;&lt;strong&gt;Groups&lt;/strong&gt;&lt;/a&gt;: Results for logical groupings of related requests&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/scenarios/&#34;&gt;&lt;strong&gt;Scenarios&lt;/strong&gt;&lt;/a&gt;: Results for each test scenario configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;summary-options&#34;&gt;Summary options&lt;/h2&gt;
&lt;p&gt;Customize the summary output with these options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/k6-options/reference/#summary-mode&#34;&gt;&lt;code&gt;--summary-mode&lt;/code&gt;&lt;/a&gt;: Choose between compact, full, or disabled display&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/k6-options/reference/#summary-trend-stats&#34;&gt;&lt;code&gt;--summary-trend-stats&lt;/code&gt;&lt;/a&gt;: Select which statistics to show for Trend metrics&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/using-k6/k6-options/reference/#summary-time-unit&#34;&gt;&lt;code&gt;--summary-time-unit&lt;/code&gt;&lt;/a&gt;: Set a consistent time unit for all values&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;--no-summary&lt;/code&gt; flag and the &lt;code&gt;legacy&lt;/code&gt; summary mode were removed in k6 v2.0.0. Use &lt;code&gt;--summary-mode=disabled&lt;/code&gt; to disable the summary. There is no direct equivalent for the &lt;code&gt;legacy&lt;/code&gt; mode; use &lt;code&gt;compact&lt;/code&gt; or &lt;code&gt;full&lt;/code&gt; instead.&lt;/p&gt;
&lt;h2 id=&#34;going-further&#34;&gt;Going further&lt;/h2&gt;
&lt;p&gt;k6 offers additional ways to process and analyze test results:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/end-of-test/custom-summary/&#34;&gt;&lt;strong&gt;Custom summaries&lt;/strong&gt;&lt;/a&gt;: Create your own summary format with complete control over the output&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/&#34;&gt;&lt;strong&gt;Real-time output&lt;/strong&gt;&lt;/a&gt;: Stream metrics during the test run and:
&lt;ul&gt;
&lt;li&gt;Save them to a 
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/csv/&#34;&gt;CSV&lt;/a&gt; or 
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/json/&#34;&gt;JSON&lt;/a&gt; file.&lt;/li&gt;
&lt;li&gt;Send them to an 
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/#service&#34;&gt;external service&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="end-of-test">End of test&lt;/h1>
&lt;p>When a test finishes, k6 prints a summary of the aggregated results to &lt;code>stdout&lt;/code>. By default, k6 uses a &amp;ldquo;compact&amp;rdquo; summary mode that focuses on the most important metrics, but you can also use a &amp;ldquo;full&amp;rdquo; mode that shows all available information.&lt;/p></description></item><item><title>Real time</title><link>https://grafana.com/docs/k6/v2.3.x/results-output/real-time/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/results-output/real-time/</guid><content><![CDATA[&lt;h1 id=&#34;real-time&#34;&gt;Real time&lt;/h1&gt;
&lt;p&gt;Besides the 
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/end-of-test/&#34;&gt;end-of-test summary&lt;/a&gt;, you can also view metrics as granular data points.
k6 can stream the metrics in real-time and either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Write output to a file&lt;/li&gt;
&lt;li&gt;Send output to an external service.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;write&#34;&gt;Write to file&lt;/h2&gt;
&lt;p&gt;Currently, k6 supports writing to the following file formats:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/csv/&#34;&gt;CSV&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/json/&#34;&gt;JSON&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;service&#34;&gt;Stream to service&lt;/h2&gt;
&lt;p&gt;You can also stream real-time metrics to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/cloud/&#34;&gt;Grafana Cloud k6&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As well as the following third-party services:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/amazon-cloudwatch/&#34;&gt;Amazon CloudWatch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/apache-kafka/&#34;&gt;Apache Kafka&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/datadog/&#34;&gt;Datadog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/dynatrace/&#34;&gt;Dynatrace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/elasticsearch/&#34;&gt;Elasticsearch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/grafana-cloud-prometheus/&#34;&gt;Grafana Cloud Prometheus&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/influxdb/&#34;&gt;InfluxDB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/netdata/&#34;&gt;Netdata&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/new-relic/&#34;&gt;New Relic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/opentelemetry/&#34;&gt;OpenTelemetry&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/prometheus-remote-write/&#34;&gt;Prometheus remote write&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/timescaledb/&#34;&gt;TimescaleDB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/statsd/&#34;&gt;StatsD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/extensions/create/output-extensions/&#34;&gt;Other alternative with a custom output extension&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This list applies to local tests, not to &lt;a href=&#34;/docs/grafana-cloud/testing/k6/&#34;&gt;cloud tests&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;read-more&#34;&gt;Read more&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://k6.io/blog/ways-to-visualize-k6-results/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ways to visualize k6 results&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/blog/2023/08/10/understanding-grafana-k6-a-simple-guide-to-the-load-testing-tool/&#34;&gt;k6 data collection pipeline&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="real-time">Real time&lt;/h1>
&lt;p>Besides the
&lt;a href="/docs/k6/v2.3.x/results-output/end-of-test/">end-of-test summary&lt;/a>, you can also view metrics as granular data points.
k6 can stream the metrics in real-time and either:&lt;/p>
&lt;ul>
&lt;li>Write output to a file&lt;/li>
&lt;li>Send output to an external service.&lt;/li>
&lt;/ul>
&lt;h2 id="write">Write to file&lt;/h2>
&lt;p>Currently, k6 supports writing to the following file formats:&lt;/p></description></item><item><title>Web dashboard</title><link>https://grafana.com/docs/k6/v2.3.x/results-output/web-dashboard/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/results-output/web-dashboard/</guid><content><![CDATA[&lt;h1 id=&#34;web-dashboard&#34;&gt;Web dashboard&lt;/h1&gt;
&lt;p&gt;k6 provides a built-in web dashboard that you can enable to visualize and monitor your tests results in real-time.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/media/docs/k6-oss/web-dashboard-overview.png&#34;
  alt=&#34;Web dashboard screenshot&#34; width=&#34;1360&#34;
     height=&#34;1284&#34;/&gt;&lt;/p&gt;
&lt;p&gt;The dashboard provides a real-time overview of the performance observed by k6 while a test is running, and can help you identify potential reliability issues as they occur.&lt;/p&gt;
&lt;h2 id=&#34;how-to-use&#34;&gt;How to use&lt;/h2&gt;
&lt;p&gt;The web dashboard is a built-in feature of k6. You can enable it by setting the &lt;code&gt;K6_WEB_DASHBOARD&lt;/code&gt; environment variable to &lt;code&gt;true&lt;/code&gt; when running your test script, for example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;K6_WEB_DASHBOARD=true k6 run script.js&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;K6_WEB_DASHBOARD=true ./k6 run script.js

         /\      Grafana   /‾‾/
    /\  /  \     |\  __   /  /
   /  \/    \    | |/ /  /   ‾‾\
  /          \   |   (  |  (‾)  |
 / __________ \  |_|\_\  \_____/

     execution: local
        script: ../extensions/xk6-dashboard/script.js
 web dashboard: http://127.0.0.1:5665
        output: -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;By default, the web dashboard is available on localhost port &lt;code&gt;5665&lt;/code&gt;. You can change the host and port by using the &lt;a href=&#34;#dashboard-options&#34;&gt;dashboard options&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;The k6 process waits to exit as long as there&amp;rsquo;s at least one open browser window for the dashboard extension.&lt;/p&gt;
&lt;p&gt;In certain environments, such as a CI/CD pipeline, the k6 process has to exit after the test run completes. In that case, it&amp;rsquo;s advisable to disable the HTTP port by setting it to &lt;code&gt;-1&lt;/code&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;generate-html-test-reports&#34;&gt;Generate HTML test reports&lt;/h2&gt;
&lt;p&gt;You can generate detailed, downloadable HTML reports directly from the web dashboard or the command line. These reports are self-contained, making them ideal for sharing with your team.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/media/docs/k6-oss/web-dashboard-report.png&#34;
  alt=&#34;HTML test report screenshot&#34; width=&#34;2232&#34;
     height=&#34;1368&#34;/&gt;&lt;/p&gt;
&lt;h3 id=&#34;generate-report-from-web-dashboard&#34;&gt;Generate report from web dashboard&lt;/h3&gt;
&lt;p&gt;To generate a report from the web dashboard, click &lt;strong&gt;Report&lt;/strong&gt; on the dashboard&amp;rsquo;s menu.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/media/docs/k6-oss/web-dashboard-report-button.png&#34;
  alt=&#34;HTML test report generation button&#34; width=&#34;1125&#34;
     height=&#34;259&#34;/&gt;&lt;/p&gt;
&lt;h3 id=&#34;generate-report-from-the-command-line&#34;&gt;Generate report from the command line&lt;/h3&gt;
&lt;p&gt;To automatically generate a report from the command line once the test finishes running, use the &lt;code&gt;K6_WEB_DASHBOARD_EXPORT&lt;/code&gt; option. For example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT=html-report.html k6 run script.js&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;The report only includes graphs if the test duration is greater than three times the aggregation period value, set by the &lt;code&gt;K6_WEB_DASHBOARD_PERIOD&lt;/code&gt; variable.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;dashboard-options&#34;&gt;Dashboard options&lt;/h2&gt;
&lt;p&gt;The web dashboard can be configured using environment variables:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Environment variable&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
              &lt;th&gt;Default value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Enable the web dashboard&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD_HOST&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Host to bind the web dashboard to&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;localhost&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD_PORT&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Port to bind the web dashboard to&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;5665&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD_PERIOD&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Period in seconds to update the web dashboard&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;10s&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD_OPEN&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Open the web dashboard in the default browser&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;K6_WEB_DASHBOARD_EXPORT &lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Filename to automatically export the HTML test report to at the end of the test run. By default, the value is empty and the report isn&amp;rsquo;t exported.&lt;/td&gt;
              &lt;td&gt;``&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="web-dashboard">Web dashboard&lt;/h1>
&lt;p>k6 provides a built-in web dashboard that you can enable to visualize and monitor your tests results in real-time.&lt;/p>
&lt;p>&lt;img
class="lazyload d-inline-block"
data-src="/media/docs/k6-oss/web-dashboard-overview.png"
alt="Web dashboard screenshot" width="1360"
height="1284"/>&lt;/p></description></item><item><title>Grafana dashboards</title><link>https://grafana.com/docs/k6/v2.3.x/results-output/grafana-dashboards/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/results-output/grafana-dashboards/</guid><content><![CDATA[&lt;h1 id=&#34;grafana-dashboards&#34;&gt;Grafana dashboards&lt;/h1&gt;
&lt;p&gt;You have multiple ways to query k6 results in Grafana.
Having test results in a dashboard brings various benefits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Visualize your results to analyze performance during the test run or over multiple test runs.&lt;/li&gt;
&lt;li&gt;Correlate test results with application and system metrics in the same dashboard to get a holistic overview of your system&amp;rsquo;s performance and quickly find the root causes of performance issues.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/media/docs/k6-oss/correlated-grafana-dashboard-grafana-cloud-k6.png&#34;
  alt=&#34;A grafana dashboard correlating k6 results with observability data&#34; width=&#34;1593&#34;
     height=&#34;1085&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;options&#34;&gt;Options&lt;/h2&gt;
&lt;p&gt;With &lt;a href=&#34;/grafana/&#34;&gt;Grafana&lt;/a&gt;, you can create a custom dashboard to query and &lt;strong&gt;visualize data from multiple sources and any type of backend&lt;/strong&gt;.
Using k6, you can 
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/&#34;&gt;stream your local test results to any backend&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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.
The following outputs include pre-built Grafana dashboards for their storage:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Output&lt;/th&gt;
              &lt;th&gt;Grafana Dashboard&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;a href=&#34;https://github.com/leonyork/xk6-output-timestream&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;AWSTimestream&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;https://github.com/leonyork/xk6-output-timestream/tree/main/grafana/dashboards/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;leonyork/xk6-output-timestream&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/influxdb/&#34;&gt;InfluxDB&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;https://github.com/grafana/xk6-output-influxdb/tree/main/grafana/dashboards&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/xk6-output-influxdb&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/prometheus-remote-write/&#34;&gt;Prometheus remote write&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;/grafana/dashboards/19665-k6-prometheus/&#34;&gt;k6 Prometheus&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/prometheus-remote-write/&#34;&gt;Prometheus remote write (Native Histograms)&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;/grafana/dashboards/18030-k6-prometheus-native-histograms/&#34;&gt;k6 Prometheus (Native Histograms)&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/grafana-cloud-prometheus/&#34;&gt;Grafana Cloud Prometheus&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;/grafana/dashboards/19665-k6-prometheus/&#34;&gt;k6 Prometheus&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
    &lt;a href=&#34;/docs/k6/v2.3.x/results-output/real-time/timescaledb/&#34;&gt;TimescaleDB&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;https://github.com/grafana/xk6-output-timescaledb/tree/main/grafana/dashboards&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/xk6-output-timescaledb&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;mdash;-&lt;/td&gt;
              &lt;td&gt;&lt;a href=&#34;/grafana/dashboards/?search=k6&#34;&gt;More public dashboards from the community&lt;/a&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;For a fully managed solution, &lt;a href=&#34;/products/cloud/k6/&#34;&gt;Grafana Cloud k6&lt;/a&gt; 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.&lt;/p&gt;
]]></content><description>&lt;h1 id="grafana-dashboards">Grafana dashboards&lt;/h1>
&lt;p>You have multiple ways to query k6 results in Grafana.
Having test results in a dashboard brings various benefits:&lt;/p>
&lt;ul>
&lt;li>Visualize your results to analyze performance during the test run or over multiple test runs.&lt;/li>
&lt;li>Correlate test results with application and system metrics in the same dashboard to get a holistic overview of your system&amp;rsquo;s performance and quickly find the root causes of performance issues.&lt;/li>
&lt;/ul>
&lt;p>&lt;img
class="lazyload d-inline-block"
data-src="/media/docs/k6-oss/correlated-grafana-dashboard-grafana-cloud-k6.png"
alt="A grafana dashboard correlating k6 results with observability data" width="1593"
height="1085"/>&lt;/p></description></item></channel></rss>