# Run agents with Datadog

Datadog AI agents on Rush: connect Datadog once, then name it on any run. The agent works in its own cloud computer, with a record of every run.

[Connect Datadog](https://cloud.getrush.ai/console/settings/?section=connections) in the console under Settings → Connections.

## What an agent can do in Datadog

Investigate production with Datadog: search logs, metrics, traces, monitors, incidents and dashboards. US1 site; add another site as a custom server.

## Jobs on Rush that use Datadog

- [Find Noisy Datadog Monitors](https://getrush.ai/run/monitor-noise-audit/datadog/)
- [Build an SLO Report From Datadog](https://getrush.ai/run/slo-report/datadog/)
- [Write a Weekly Incident Summary From Datadog](https://getrush.ai/run/weekly-incident-summary/datadog/)
- [Fix an ASP.NET Core App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/aspnet-core/)
- [Fix a Django App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/django/)
- [Fix an Express API Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/express/)
- [Fix a FastAPI App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/fastapi/)
- [Fix a Go Service Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/go/)
- [Fix a Laravel App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/laravel/)
- [Fix a NestJS API Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/nestjs/)
- [Fix a Phoenix App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/phoenix/)
- [Fix a Rails App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/rails/)
- [Fix a Spring Boot App Bug From a Datadog Monitor Alert](https://getrush.ai/run/fix-datadog-alerts/spring-boot/)
- [Investigate an ASP.NET Core App Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/aspnet-core/)
- [Investigate a Django App Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/django/)
- [Investigate a Go Service Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/go/)
- [Investigate a NestJS API Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/nestjs/)
- [Investigate a Rails App Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/rails/)
- [Investigate a Spring Boot App Incident With Datadog](https://getrush.ai/run/investigate-incidents-with-datadog/spring-boot/)
- [Investigate Thread Pool Starvation in an ASP.NET Core App](https://getrush.ai/run/investigate-thread-pool-starvation/aspnet-core/)

## How Datadog connects

Datadog is a remote MCP server, published by Datadog, at `https://mcp.datadoghq.com/api/unstable/mcp-server/mcp`. Connecting it signs in through the MCP OAuth flow on Datadog's side.

From Datadog: [Datadog's MCP documentation](https://docs.datadoghq.com/mcp_server/).

Connect it once in the console under Settings → Connections, or from your server with `POST /me/connections`. The sign-in finishes in a browser signed in to the console as the same person, and a link not finished within 10 minutes expires.

After that, a run that names `datadog` in `connections`, or runs a saved agent that names it, gets it; your connections reach no run that does not name them.

```http
POST https://api.phoenix.so/me/connections

{
  "type": "mcp",
  "name": "Datadog",
  "url": "https://mcp.datadoghq.com/api/unstable/mcp-server/mcp"
}
```

## Whose Datadog account the agent uses

Your Datadog connection is personal: it belongs to the person who signed in. A run started in the console uses that person's Datadog, and a run started with an API key uses the Datadog of the member who created the key.

To act for your own app's users, make each user an agent from your template and show them, signed in to your app, the sign-in link `POST /o/{org}/agents/{agent}/connections` returns. They sign in to their own Datadog, and that agent's runs use their account and nothing else: never yours, never another user's.

## More Observability integrations

- [Sentry](https://getrush.ai/integrations/sentry/)
- [Grafana Cloud](https://getrush.ai/integrations/grafana/)
- [Honeycomb](https://getrush.ai/integrations/honeycomb/)
- [Axiom](https://getrush.ai/integrations/axiom/)

## Frequently asked questions

### How do I connect Datadog to Rush?

Open Settings → Connections in the console and connect Datadog, or send `POST /me/connections` with `{"type":"mcp","name":"Datadog","url":"https://mcp.datadoghq.com/api/unstable/mcp-server/mcp"}` and open the `authorize_url` it returns while signed in to the console. The connection reads `pending` until the sign-in finishes, then `connected`.

### Does every run get my Datadog account?

No. A run gets your Datadog connection only when it names it in `connections` (`"connections": ["datadog"]`), or runs a saved agent that names it. A saved agent names its connections once, and every run of it gets them.

### What can an agent do in Datadog?

Investigate production with Datadog: search logs, metrics, traces, monitors, incidents and dashboards. US1 site; add another site as a custom server. 20 published jobs use it; this page lists them.

### Can my app's users connect their own Datadog?

Yes. Make each user an agent from your template, and they sign in to their own Datadog through the link `POST /o/{org}/agents/{agent}/connections` returns. That agent's runs use their account alone.

## Keep reading

- [AI agents for engineering teams: every job and app for them](https://getrush.ai/solutions/engineering/)
- [How connections work: sign in once, then every run that names a connection gets it](https://getrush.ai/docs/concepts/connections/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Pricing: one price per member, hours shared by the team](https://getrush.ai/pricing/)
- [How Rush compares with other cloud agents](https://getrush.ai/compare/)
- [Every app and MCP server Rush connects to](https://getrush.ai/integrations/)
