Datadog
Baz can use Datadog as the observability source for the SRE agent.
When Datadog is connected, Baz validates the integration during setup and uses production issues from Datadog to identify recurring problems and open fix PRs in the mapped repositories.
Simple setup flow
- Open the Datadog integration settings in Baz.
- Enter your Datadog API key and Application key.
- Select the correct Datadog base URL for your region.
- Save the integration.
- Make sure the relevant repositories are connected to Baz with write access.
- Make sure sandbox is enabled for the repositories where Baz should open SRE PRs.
- Enable the SRE agent for the org.
- Add service-to-repository mapping where needed so Baz can connect production issues to the right codebase.
What Baz checks during setup
Baz validates that:
- the credentials are valid
- the Datadog workspace is reachable
- the integration has enough access for the SRE agent to work
If the setup is valid, Baz can use Datadog findings as input for the SRE flow.
What is required for SRE PRs to work
A connected Datadog integration is only one part of the flow.
Baz also needs:
- the target repositories connected in Baz
- GitHub write access for those repositories
- sandbox configured for those repositories
- SRE agent enabled for the org
- service-to-repository mapping when the service name does not resolve automatically
Common reasons it does not work
- The Datadog credentials are valid, but the integration does not have enough access.
- The repositories are not connected with write access.
- Sandbox is missing for the target repository.
- The SRE agent is disabled for the org.
- Baz cannot map the Datadog service to the correct repository.
FAQ
What does Datadog enable?
It is an observability source for the SRE agent, which uses production issues to identify recurring problems and open fix pull requests in the mapped repositories.
Why are no SRE pull requests appearing?
The integration is only one part of the flow. The target repositories need to be connected with write access, sandbox has to be configured for them, the SRE agent has to be enabled for the organization, and the Datadog service has to map to the right repository.
What permissions does the Datadog application key need?
error_tracking_read and apm_read, with logs_read_data recommended for deeper analysis, plus Service Mapping configured for source code integration. See Baz Agents for the SRE agent setup.