Connect alert sources
Connect Alertmanager, Sentry, Grafana, or Grafana Cloud with a read-only token, and manage the sources FixBugs reads alerts from.
On this page
An alert source is one connection to a monitoring provider. FixBugs reads alerts from it into Active Alerts, and investigations query it for evidence. You can connect several sources for the same provider.
FixBugs reads alerts from four providers: Alertmanager, Sentry, Grafana, and Grafana Cloud.
Investigations read Sentry issue events, logs, and traces, and Alertmanager, Grafana, and Grafana Cloud alert events. A Grafana or Grafana Cloud source on Alert Sources reads alerts; one you add from an investigation can also query Prometheus metrics, Loki logs, or Tempo traces through a Grafana data source. Investigations can also query historical telemetry directly: Prometheus and Mimir metrics, Loki logs, Tempo and Jaeger traces, and Elasticsearch or OpenSearch with an explicit field mapping. These are evidence sources for an investigation, not alert sources. See Query Prometheus, Loki, or Tempo through Grafana and Query telemetry sources directly.
You can import OpenTelemetry JSONL and other telemetry files into an investigation too; see Import evidence. Your token stays in your editor's secret storage on this machine.
Before you start
- FixBugs installed and signed in. See Quickstart.
- The provider's URL, and a token for it that can only read. FixBugs reads alerts and evidence; it never writes to your provider.
Add a source
- On the FixBugs home, select Set up alert source. Alert Sources opens.
- Under Add a provider, choose the provider. The list shows
alertmanager,sentry,grafana, andgrafana_cloud. - Select Add source. The connect form for that provider opens.
- Fill in the fields for your provider, described in the sections below.
- Select Connect source. FixBugs tests the token, and the source appears under Configured sources.
Every form asks for a Display name, the Provider URL, and a Read-only provider token. The URL must be a plain http:// or https:// address, with no user name, password, query, or fragment in it.
Connect Alertmanager
Enter the Display name, the Alertmanager Provider URL, and the Read-only provider token. FixBugs checks that the token can read alerts.
Connect Sentry
In addition to the common fields, enter the Organization slug and the Project slug of the Sentry project. FixBugs checks that the token can read the project's issues.
Connect Grafana
In addition to the common fields, choose a Grafana organization:
- Use default organization: the token's default organization.
- Use organization ID: enter the Organization ID, a positive whole number.
FixBugs checks that the token can read alerts.
Connect Grafana Cloud
Grafana Cloud asks for the same fields as Grafana, including Grafana organization. Enter your Grafana Cloud URL as the Provider URL.
Query Prometheus, Loki, or Tempo through Grafana
When you add a Grafana or Grafana Cloud source from an investigation with Add monitoring source, the form also asks which data source to query:
- Datasource UID: the UID of the data source in Grafana.
- Datasource type: Prometheus (also Mimir) for metrics, Loki for logs, or Tempo for traces.
FixBugs runs the investigation's queries against that data source.
Query telemetry sources directly
When you add a monitoring source from an investigation, you can connect a telemetry backend without Grafana:
- Prometheus or Mimir: metrics.
- Loki: logs.
- Tempo or Jaeger: traces.
- Elasticsearch or OpenSearch: logs, metrics, or traces from indexes you map. You name the index, the timestamp field, and which fields hold each signal.
FixBugs runs the investigation's queries against the source within the investigation's limits, and reports gaps, truncation, and partial results.
Check the connection
Each source shows a badge:
- Ready: the token works and FixBugs reads alerts from the source.
- Pending confirmation: FixBugs has not yet confirmed the source with the provider. Select Verify to test it again.
- Credential unavailable: FixBugs cannot use the saved token. Select Update, then enter the token again.
- Disconnected: you disconnected the source. FixBugs reads no alerts from it.
If the test fails, a message at the top of Alert Sources says why:
- "The saved credential was rejected. Update the token and reconnect."
- "The saved credential lacks permission for …. Grant that capability and reconnect." The message names the missing permission.
- "The provider rate limit prevented verification. Wait, then reconnect."
- "The provider could not be reached. Check the endpoint and network, then reconnect."
- "The provider rejected the verification request. Check the account and source configuration."
- "The provider returned an invalid verification response. Check the endpoint and provider compatibility."
- "The monitoring source routing is invalid. Check its organization, project, or datasource."
- "FixBugs could not authorize the saved credential lease. Reconnect the editor and try again."
Set the catalog window
Catalog Window (days) sets how many days back FixBugs reads alerts from your sources, and how long FixBugs keeps an alert after it resolves: 1 to 60 whole days, 10 by default.
- On Alert Sources, under Catalog Window, enter the number of days.
- Select Apply.
The same control is in Settings under Alert Catalog; both edit one value.
An alert that is still firing stays listed whatever its age, as long as its source is connected. After an alert resolves, the window counts from its resolution time. If you disconnect a source, or its token becomes unavailable, its last-known alerts start aging from that moment.
Manage a source
Each source under Configured sources has these actions:
- Update: change the display name, URL, organization, project, or token. Enter the token, then select Update source. Use this to replace a token.
- Disconnect: stop reading alerts from the source. The source, its token, and its alerts are kept. Disconnected sources are hidden; select Show disconnected to list them.
- Reconnect: start reading alerts from a disconnected source again. The source shows Pending confirmation until FixBugs confirms it.
- Remove source: delete the source and its catalog data. Saved credentials are kept. Select Remove permanently to confirm. A source that an investigation uses cannot be removed; disconnect it instead.
- Purge: delete the source's catalog data and keep the source. Evidence pinned to an investigation is kept. Select Purge permanently to confirm.
Next steps
- Investigate an alert: start an investigation from an alert.
- Active alerts: browse what your sources report as firing.
- From alert to fix: the whole path from an alert to a pull request.
- Privacy & data handling: where your tokens and alert data stay.
- Troubleshooting: what to do when a source does not connect.