Skip to main content
A data source is a place the agent can read from: your metrics, logs, traces and dashboards. Alerts tell SRE Agent that something broke. Data sources are how it finds out why. This page covers the types you can add, what each one enables, and how to connect AWS without giving SRE Agent write access. Free plan The Free plan includes one data source. Pro includes 15. Adding a source past your plan’s limit shows Your plan's data source limit has been reached. Only organization administrators can add, edit or delete data sources.

Add a data source

1

Open Data Sources

In the sidebar, select Settings, then the Data Sources tab, then Add Data Source.
2

Name it and choose a type

Enter a Name and pick the Type from the table below. The rest of the form changes with the type.
3

Tell it where and how to connect

For most types, enter the URL and choose Authentication: None, Basic Auth, Bearer Token, API Key or Datadog Keys. For AWS types, pick the AWS Regions instead of a URL. Select every region that holds resources you want to read. One data source covers all of them.
4

Test, then save

Select Test Connection. A successful test reports Connection successful!. A failure reports Connection failed: followed by the reason. When the test passes, select Save Data Source.
After you save, the source appears as a card with an Enabled badge. The card has a signal button to test the connection again, a pencil button to edit, a duplicate button, Toggle to disable or enable it, and a trash button. A Failing badge and the last error show on a card when queries to the source keep failing.

Data source types

An investigation uses whichever of these exist. With no data source, the agent still receives the alert but has nothing to query, and the alert page warns that results will be shallow.

Fields that depend on the type

Data inside a private network

If SRE Agent cannot reach a source from the internet, set Route through Remote Agent on the source to send its queries through a remote agent that runs in your network. The default is Direct connection (no agent). Remote agents are on the Pro plan and above.

Allow SRE Agent in by address

The hosted service reads your endpoints from one fixed address, 52.7.196.239, shared by every organization, so the address must never be the only control on an endpoint. Keep requiring your source’s credentials, and verify the SRE-Agent-Signature header SRE Agent adds to requests to your own endpoints, so you know a request is for your organization. See Verify requests from SRE Agent.

Connect AWS

CloudWatch Metrics, CloudWatch Logs, CloudTrail and X-Ray read from your AWS account through a read-only role that you create. Connect AWS with a read-only role walks through it.

Keep your data on your own AI provider

Investigations run on SRE Agent’s shared AI until you add your own provider under Settings, then AI Providers, then Add Provider. The form asks for a Name, the Provider, the Model and your API Key. Select Save Provider, then press Test on the provider card to check the key. To make sure your alert text and logs only ever reach providers you configured, turn on Use only my own AI providers on the same tab. You need at least one enabled provider first. With it on, an AI call that your providers cannot take fails instead of running on the shared AI. Each provider also has an optional Per-purpose models section: pin a model for a kind of work, or leave it empty to use the provider’s model. Fix self-reviews is the model for the review a fix gives its own change before its pull request opens (see Fix requests). Leave it empty to use the model of Fixes and code changes; it does not take Auto, because the automatic choice is made on Fixes and code changes and the review follows it. Over MCP, create_ai_provider and update_ai_provider take remediation_review in model_overrides.

Amazon Bedrock

A Bedrock provider has no API key. SRE Agent calls Bedrock by assuming a role in your own AWS account, so the calls, the model access and the bill are yours, and SRE Agent’s own AWS access is never used for them.
1

Choose AWS Bedrock

On Add Provider, set Provider to AWS Bedrock. The form shows your organization’s External ID (the one every AWS data source uses), the Principal to trust, a Trust policy and a Permissions policy.
2

Create the role

In your AWS account create an IAM role with that trust policy, including the sts:ExternalId condition, and attach the permissions policy. It allows bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the models named on the form, and bedrock:ListFoundationModels.
3

Enable the models

In the Bedrock console of the region you use, turn on access to the model you chose.
4

Save and test

Paste the Role ARN, choose the Region, save, then press Test on the provider card. Test assumes the role and sends one small prompt.
If the role does not trust SRE Agent’s principal with your External ID, or Bedrock refuses the call after the role is assumed (the permissions policy does not cover the model, model access is off in that region, or a service control policy denies it), Test says so and the provider does not fall back to the shared AI. The role’s partition must match the region: aws for every region except the us-gov-* regions, which need an aws-us-gov role. A Bedrock provider saved before roles were required has none and asks you to add one. Over MCP, create_ai_provider, update_ai_provider and get_ai_provider take and answer role_arn and region, refuse an api_key for Bedrock, and get_aws_external_id answers the External ID and the principal. With Terraform, provider segfaultpw/sreagent 0.1.1 or later: sreagent_ai_provider takes role_arn and region with provider_type = "bedrock", and data.sreagent_aws_external_id gives the External ID and principal for the role’s trust policy, so the role and the provider can be created in one apply.

What you see

A passing test shows Connection successful!. A failing test shows Connection failed: and the reason. If a query returns nothing although the credentials are right, check the regions selected on the data source first. A source with the wrong region reads an empty account.