AWS DevOps Agent Dynatrace: what to let investigate at night

AWS DevOps Agent Dynatrace: SaaS and DPS prerequisites, OAuth scopes, webhook and events to hand the first on-call investigation to an agent.
AWS DevOps Agent Dynatrace : que laisser enquêter la nuit

It is 3 a.m., a slowness alert hits the payment API, and the on-call engineer opens three consoles before understanding anything. Wiring up AWS DevOps Agent Dynatrace targets that exact moment: hand the first round of investigation to an agent, using the context Dynatrace has already gathered. One operating decision remains before any click: what do you let the agent read, and what do you forbid it to execute?

This article starts from that decision. The technical facts come from the AWS DevOps Agent documentation on Dynatrace and, for framing, from the vendor’s blog post. I ran nothing on an AWS account or a tenant for this article.

This content applies to Dynatrace SaaS only. Dynatrace Managed is not supported, as explained below.

What the AWS DevOps Agent Dynatrace integration changes on call

Without the integration, the AWS agent investigates with what it knows of your AWS resources. With it, the agent also uses what Dynatrace knows: entities, relationships, telemetry. The AWS documentation describes a two-way link in four parts.

  • Topology: the agent enriches its Agent Space topology with entities and relationships from your Dynatrace environment.
  • Triggering: Dynatrace Workflows can start an investigation from a Problem.
  • Telemetry access: during the investigation, the agent queries Dynatrace through a Model Context Protocol (MCP) server that AWS hosts.
  • Feedback: the agent publishes its findings, root cause analyses and mitigation plans in the Dynatrace interface.

In other words, on-call keeps its usual screen. It sees the investigation progress there, even when the investigation fails or ends empty: AWS states that the agent sends an event at every status change.

This is not an agent that fixes things alone. The vendor’s post says a proposed action waits for human approval before it runs. To compare this approach with other agents, see our study of Devin on call and its guardrails.

The prerequisites that decide it before you start

Three conditions settle feasibility. Check them before opening an internal ticket.

  1. Dynatrace SaaS. The integration relies on Workflows, AppEngine apps (including the SRE Agents app) and OAuth clients. The AWS documentation says Managed is not supported and that Dynatrace has no plan to bring these features to it. A team on Managed must migrate first.
  2. DPS licensing. To receive status updates in Dynatrace, the environment must use the Dynatrace Platform Subscription model. AWS explains that the /platform/ingest/v1/events endpoint exists only under that model.
  3. A properly bound OAuth client. The client’s permissions are not enough: its subject user must also receive them through policies.

For the Dynatrace side, reread the Dynatrace SaaS MCP server setup: the reasoning about scopes is the same, with one difference: here the MCP server is hosted by AWS.

Connecting the agent in three steps

The AWS documentation splits the setup into three stages: connect, enable, configure on the Dynatrace side.

Step 1: connect the account

In the AWS DevOps Agent console, the Capability Providers page lists Dynatrace under Telemetry. You create an OAuth client in Dynatrace, then enter its name, ID, secret and Account URN. The client asks for read rights on Grail storage, plus the right to write events.

List of the thirteen OAuth client permissions requested by AWS DevOps Agent, from storage:bizevents:read to openpipeline:events:ingest

Note the last line, openpipeline:events:ingest. It lets the agent send its status back. Also bind the OpenPipeline Ingest policy to the service user’s group. Without it, Dynatrace rejects every event with a 403 error, and AWS gives the exact response body.

Body of the 403 error response returned by Dynatrace when the openpipeline:events:ingest permission is missing

Step 2: enable it in an Agent Space

In the chosen Agent Space, Capabilities tab, Telemetry section, you add the Dynatrace registration. You give the environment ID and, optionally, IDs of important entities (services, applications) to guide discovery. The console then provides a webhook URL and a webhook secret: keep them for the next step.

One Agent Space can use several registrations and several environments. That helps to separate, for example, production from staging.

Step 3: finish on the Dynatrace side

AWS says you finish the setup in the Dynatrace SRE Agents app, “in two clicks”, without building a workflow by hand. I could not read a Dynatrace documentation page describing that app, so the exact screens are for you to check.

What Dynatrace sends to the agent

Two event schemas travel through the webhook. The first, the incident event, triggers the investigation.

Schema of the incident event sent by webhook to AWS DevOps Agent, with event.status, event.category and affected_entity_ids

The event.category field takes one of AVAILABILITY, ERROR, SLOWDOWN, RESOURCE_CONTENTION, CUSTOM_ALERT, MONITORING_UNAVAILABLE and INFO. The event.status field is ACTIVE or CLOSED. The second schema, the mitigation event, asks for a report of next steps for a given investigation. It carries a task_id, a task_version and the type mitigation_request.

This split matters in practice: the investigation and the request for a remedy are two separate moments. You can therefore trigger investigations automatically and keep the mitigation request under human control.

Good practice for an investigation agent in production

  • Limit scopes to what is needed and use one OAuth client per environment.
  • Trigger first on a low-risk Problem category, such as SLOWDOWN, before widening.
  • Keep human approval for any proposed action: the vendor’s material presents it as a control point.
  • Enable log delivery for the Agent Space: AWS recommends it when the SRE Agents app shows no events for an investigation.
  • Measure before claiming a gain. The vendor’s post cites up to a 70% reduction in mean time to resolution for joint customers: that figure comes from the vendor and I have not verified it.

To set expectations for this kind of agent, also read the gap between announced and delivered SRE agents.

Frequently asked questions

Does AWS DevOps Agent work with Dynatrace Managed?

No, according to the AWS documentation: the integration requires Dynatrace SaaS. Workflows, the SRE Agents app and OAuth clients do not exist on Managed.

Must I declare entity IDs?

No, the AWS documentation says you can remove them if unsure. They help the agent spot your most important resources, such as services or applications.

How do I remove the integration?

In two steps, per AWS: remove Dynatrace from each Agent Space, then deregister it from the account once the Agent Space count is zero.

Conclusion

Handing the first round of investigation to an agent is decided like a production change: read scope, limited write rights, human sign-off. The prerequisites (SaaS, DPS, OAuth bound to the user) take an hour to check. The rest you measure on your own incidents. To trigger actions from Problems, see also Dynatrace workflows to Jira and ServiceNow.

Independent blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of Dynatrace LLC; AWS and AWS DevOps Agent are trademarks of Amazon Web Services.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Score CCSS : lire la gravité d'une mauvaise configuration Kubernetes

CCSS score: reading the severity of a Kubernetes misconfiguration

Next Post
Alertes Microsoft Sentinel dans Dynatrace : ingérer, enrichir

Microsoft Sentinel alerts in Dynatrace: ingest and enrich

Related Posts