Skip to content

Conversation

@e-fisher
Copy link
Contributor

What?

This PR adds documentation for the new Autocorrelation feature in k6 Studio, an AI-powered capability that automatically creates correlation rules for test scripts.

  • Add Autocorrelation section in Components -> Generator
  • Update the settings page to include the AI section.

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/k6/next folder of the documentation.
  • I have reflected my changes in the docs/sources/k6/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).
  • I have made my changes in the docs/sources/k6/next folder of the documentation.

Related PR(s)/Issue(s)

@e-fisher e-fisher requested review from a team and heitortsergent as code owners January 16, 2026 11:38
@e-fisher e-fisher requested review from allansson and going-confetti and removed request for a team January 16, 2026 11:38
@CLAassistant
Copy link

CLAassistant commented Jan 16, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@going-confetti going-confetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I left a few non-blocking questions


{{< admonition type="note" >}}

Your API key is encrypted using your operating system's secure storage and is not transmitted to Grafana Labs. Data from your recording is sent to OpenAI for processing. Usage is subject to your OpenAI agreement and associated billing.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: it's already implied, but I would mention that it's stored locally. Maybe something like "Your API key is encrypted and stored locally in your operating system's secure storage".


### Considerations

- **Feature preview.** Autocorrelation is in public preview. Functionality may change in future releases.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth linking to https://grafana.com/docs/release-life-cycle/#public-preview so it's clearer what "public preview" means.


For performance testing, it's common to not include static assets, or remove hosts from 3rd-party services from your tests, but you can include them depending on your use case.

## Autocorrelation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that correlation rules are mentioned a few times here, before the user even learns what a test rule is. Is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I was debating the right place for this and went with the idea to introduce the automatic process first and continue into manual rule management if the user needs more customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants