grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
155 stars 20 forks source link

Enable K6 by default in agent deployments #722

Closed The-9880 closed 3 weeks ago

The-9880 commented 1 month ago

Resolves https://github.com/grafana/synthetic-monitoring-agent/issues/721 Decision (Slack)

Summary:


Users upgrading from older probes (will) have k6 scripts disabled by default in the API if they weren't already running k6 checks. There are 2 cases for them:

  1. Had k6 FF in args: no impact, this setup makes it default-enabled.
  2. Did not have k6 FF: this was the default. If they use the Docker image or have k6 on their PATH, then their upgraded agent would be able to set up a k6Runner. Any previously-assigned MultiHTTP or scripted checks may start running. They will need to enable in the UI to assign k6 checks.

For new probes, this change aligns the agent's default with the default assumption of the UI/Terraform (k6-enabled), so it should reduce issues with setup.

Also updated the error message when k6 is missing - feedback appreciated.