New: FixBugs for VS Code is now available. Install from Marketplace 

From alert to fix

Go from a firing alert to evidence, a Possible Cause, a validated Fix, and a pull request you review and merge.

On this page

Start from a firing alert. FixBugs drafts and runs the monitoring queries, you review and change them, and the evidence stays attached to the cause it supports. The rest is the same path as any bug: Plan, Fix, validation proof, review, and a pull request that your team merges.

Before you start

  • FixBugs installed and signed in. See Quickstart.
  • The repository the alert belongs to, open as a folder in VS Code.
  • An Alertmanager, Sentry, Grafana, or Grafana Cloud account, and a read-only token for it.
  • Optional: a telemetry source for evidence: a Grafana data source, or Prometheus, Mimir, Loki, Tempo, Jaeger, Elasticsearch, or OpenSearch directly, or telemetry files to import. See Connect alert sources and Import evidence.

Connect an alert source

  1. On the FixBugs home, select Set up alert source. Alert Sources opens and lists your Configured sources.
  2. Under Add a provider, choose alertmanager.
  3. Select Add source. The connect form opens.
  4. Enter a Display name, the Provider URL, and the Read-only provider token.
  5. Select Connect source. The source appears under Configured sources as Ready.

Sentry, Grafana, and Grafana Cloud connect the same way. See Connect alert sources.

Find the alert

  1. On the FixBugs home, select View Active Alerts. Active Alerts lists what your sources report as firing.
  2. To narrow the list, use the filters, such as Severity or Provider.
  3. Select the alert. Its details open.
  4. Select Investigate. The investigation opens with the alert, its time window, and the code revision FixBugs resolved for the incident.

If the alert is not listed, select Investigate Alert on the home and enter it yourself. Under Entry mode, choose Alert source to describe the alert, or Direct queries to query your connected sources without an alert record. See Investigate an alert.

Review the evidence acquisition plan

  1. Select Continue investigation. FixBugs drafts an Evidence acquisition plan, the ordered queries it runs against your sources, and starts them.
  2. Watch Acquisition progress count the finished queries.

To change the queries yourself, select Edit plan. To have the Assistant redraft them, select Regenerate with Assistant. Each change waits under Proposals awaiting review until you act on it:

  1. If queries are still running, select Pause acquisition to apply changes.
  2. Select Accept revision n to use the new queries, or Decline to keep the current plan.
  3. If Resume acquisition appears, select it. FixBugs runs the accepted revision.

Open the investigation board

  1. Select Open investigation board. Your browser shows the evidence, the evidence acquisition plan, and the query results side by side.

The board is read-only; you make changes in VS Code.

Check the alert-linked runbook

If the alert names a runbook link, FixBugs lists it in the investigation policy.

  1. With the triage loaded, select Investigation policy (the shield icon). In a narrow panel, select More triage actions, then Policy.
  2. Under Alert-linked runbook, select Request on the link. FixBugs asks you in the Assistant thread before it fetches anything.
  3. Answer in the thread.
  4. When the runbook is fetched, select Preview to read it.
  5. Select Load runbook. The runbook appears under Loaded runbooks.

Get the Possible Cause

  1. Select the Assistant tab.
  2. Ask what the evidence shows, for example "What caused the 5xx spike?". The answer cites the evidence records it used.
  3. Select the Hypothesis step. The current Possible Cause explains what FixBugs believes is wrong.

Plan, fix, and prove it

Continue as for any bug:

  1. Build the Plan, and edit it if you need to.
  2. Build the Fix. See Plan, fix, apply.
  3. Generate the Reproduction.
  4. Select the Validate step.
  5. Select Start. See Prove it.

Review and open the pull request

  1. Select the Review step.
  2. Select Start.
  3. Address the findings you choose.
  4. On the Fix page, select Create Pull Request. See Ship it for the pull request form.

Your team reviews and merges the pull request. FixBugs does not merge it.

What you get

  • An Evidence acquisition plan you reviewed, with its query results.
  • Investigation Insights and a current Possible Cause, citing the evidence.
  • A Fix with a Validation proof, and a pull request.

If something goes wrong

  • Monitoring evidence unavailable: no query returned usable evidence. Choose Edit source, Retry, or Proceed anyway.
  • Analysis needs attention: the evidence is kept. Fix your model access or execution mode under Execution settings, then select Retry analysis.
  • If the queries pause at the Approved limit, enter a New limit (GiB) and select Approve higher limit, or select Keep paused.

Next steps