AceDocs
Integrations

Dynatrace

Connect Dynatrace so problems open and close incidents, Ace investigates with Davis, Smartscape and metrics, and alerting pauses during an approved fix.

Ace reads Davis problems, Smartscape topology, metrics, events and logs from one Dynatrace environment during investigations. Problems open incidents and close them, and deployments join the workload's change timeline.

CategoryAPM
Ace readsProblems with Davis root cause and evidence, Smartscape entities and relationships, metrics, deployment and configuration events, logs, audit log changes
Ace can changeA maintenance window on a problem's services and applications while an approved fix rolls out, if you allow it. Alert setup adds an alerting profile and a problem notification
Opens incidentsYes, from problems, for workloads that route Dynatrace
SetupEnvironment URL and access token. Ace adds its own problem notification when the token allows it

What it reads

Ace reads one environment while it investigates a workload that routes its alerts, or that turns Dynatrace on under Observability in its settings (https://app.tryace.dev/workloads/<workload-id>/settings/observability).

  • Problems from an hour before the incident to its end, with Davis' root-cause entity, affected entities, top evidence and impact.
  • One problem in full: all of Davis' evidence, every impacted entity with estimated affected users, management zones and recent comments.
  • A Smartscape entity's tags, properties and relationships: what it calls, what calls it and what it runs on.
  • A metric selector over the incident window, and the same-length window before it, up to 20 series.
  • Deployment and configuration events from six hours before the incident, or Davis events such as ERROR_EVENT and PROCESS_RESTART.
  • With Read audit logs, configuration changes in the audit log, by the fields they touched and never their values.
  • With Read logs, log records that match a log search query, up to 200. Ace uses the classic Log Monitoring search (/api/v2/logs/search), so an environment that keeps logs only in Grail returns none.

Ace removes emails, IP addresses, credentials and query values from log and event text before an investigation reads it.

After a fix, Ace checks the failure rate and p95 response time of the service behind the problem, and whether the problem is still open. For the Blueprint, it maps services, process groups, hosts, applications, and Kubernetes clusters, namespaces and workloads, with the calls between services and what runs on what.

Deployment events, configuration events and audit log changes join the change timeline, even while no workload routes Dynatrace. Changes to alerting profiles, problem notifications and maintenance windows stay out of it.

What it can change

With Read settings and Write settings, Ace creates an alerting profile and a webhook problem notification, both named ace-<id>. The profile passes every problem severity. Ace rechecks them every hour and repairs them if someone changed or deleted them.

Ace adds maintenance windows only after an admin turns on Actions for the connection. Each one runs on its own unless a policy for that exact action says otherwise. See Actions and approvals.

ActionWhat it doesApprovalUndo
Dynatrace maintenance windowWhen an approved fix starts rolling out, stops alerting on the services and applications of each problem behind the incident, up to 5 problems, for 30 minutes. Dynatrace still detects problems.Runs on its ownYes. Undo from the incident deletes the window.

Safeguards:

  • The window covers only services and applications, up to 10 per problem. It never covers a host, process group or cluster, even when Davis names one as the root cause, because other teams share them.
  • A problem on shared infrastructure alone gets no window.
  • Ace refuses a problem that already closed, and a problem one of its windows already covers.
  • The window is named Ace: fix rolling out (<problem-id>), using the problem's display id, and ends on its own. Problems still open then alert again.
  • Ace deletes only windows it created.

While the window runs, a new problem on the same services and applications opens nothing in Ace. Recovery still checks whether the original problem is open.

Ace's own window also mutes the problem's close notification. The poll still reads closed problems, so the incident closes when the problem does.

What opens an incident

Problems reach Ace through the ace-<id> problem notification when they open and when they close. Ace also polls Dynatrace every 2 minutes, reading 30 minutes back, so a missed notification still opens an incident. Davis dates a problem at its first bad sample, minutes before it raises it, and the lookback finds those.

  • An open problem opens an incident or joins the open one. Its close resolves it.
  • Ace reads problems only while a workload routes Dynatrace, so none is used up before it can open an incident.
  • A problem in a maintenance window that stops alerting opens nothing.
  • Dynatrace's test notification is accepted and opens nothing.
Problem severitySeverity in Ace
AvailabilityCritical
Error, Custom alertHigh
Performance, Resource contentionMedium
Monitoring unavailableJoins an open incident as evidence and never opens one

Before you start

  • The admin role in Ace. See Roles and permissions.
  • A Dynatrace user who can generate access tokens in the environment.
  • Dynatrace SaaS, or Dynatrace Managed reachable from the internet over HTTPS. Ace doesn't connect to private network addresses.

Credentials and permissions

Ace uses one classic access token for one environment and stores it encrypted. Create it in Access Tokens at <environment-url>/ui/access-tokens.

ScopeNeeded for
Read problems (problems.read), Read entities (entities.read), Read metrics (metrics.read), Read events (events.read)Required. Connecting checks each one.
Read logs (logs.read)Optional. Log search during investigations.
Read audit logs (auditLogs.read)Optional. Configuration changes from the audit log.
Read settings (settings.read), Write settings (settings.write)Alert setup and actions. Ace creates its alerting profile, problem notification and maintenance windows.

Ace reads the token's own scopes when you connect. Its client sends only the reads it uses and settings writes. A token with more scopes still can't close a problem or change anything else through Ace.

Set up

1. Create an access token

  1. In Dynatrace, open Access Tokens (<environment-url>/ui/access-tokens) and choose Generate new token. Name it Ace.
  2. Search for and select the scopes above.
  3. Choose Generate token and copy it. Dynatrace shows it only once.

2. Connect Dynatrace

  1. Open Settings > Integrations > Dynatrace.

  2. Under Create an access token in Dynatrace, enter the Environment URL:

    DeploymentEnvironment URL
    SaaShttps://<environment-id>.live.dynatrace.com. An apps.dynatrace.com address works too.
    Managedhttps://<your-domain>/e/<environment-id>
  3. Under Paste the access token, enter the Access token (dt0c01.…).

  4. Choose Connect Dynatrace. Ace checks that the token reads problems, entities, metrics and events. If a check fails, Ace doesn't save the token.

3. Check alerts

With Read settings and Write settings, Ace sets up its alerting profile and problem notification when you connect. To check, open Problem notifications in Dynatrace (<environment-url>/ui/settings/builtin:problem.notifications) and look for ace-<id>. If it's there, skip to step 4.

Without those scopes, the Alerts section shows Ace can't set up Dynatrace alerts with this credential. and names them. Problems still reach Ace through the 2-minute poll. Add the scopes and choose Sync now, or add the notification by hand with the steps in the section:

  1. Copy the webhook URL.
  2. Choose Generate token and copy it. Ace shows it once. If Ace set up alerts, the button reads Generate a new token and replaces the stored token.
  3. In Dynatrace, open Settings > Integration > Problem notifications (<environment-url>/ui/settings/builtin:problem.notifications). Choose Add notification and select Custom Integration.
  4. Name it Ace and paste the URL as Webhook URL.
  5. Under Additional HTTP headers, add a secret header named Authorization with the value Bearer <token>.
  6. Turn on Call webhook if problem is closed.
  7. Set Custom payload to {"ace":"v1","pid":"{PID}","state":"{State}","url":"{ProblemURL}","problem":{ProblemDetailsJSONv2}}.
  8. Choose an alerting profile that covers the problems that should open incidents, and save. See webhook notifications.

4. Route alerts to a workload

Open the workload's settings at Alerts (https://app.tryace.dev/workloads/<workload-id>/settings/alerts). Tick Dynatrace under Sources and turn on Investigate alerts.

5. Allow actions (optional)

In the Actions section, turn the switch On.

Set up with an agent

Copy this prompt into a coding agent, or open it in one with the logos below it. The agent does the Dynatrace side in your terminal and asks you for each decision and each step in a browser. See how agent setup works.

Help me connect Dynatrace to Ace. Read https://tryace.dev/docs/integrations/dynatrace/agent.md and follow it step by step. Ask me whenever you need a decision or something only I can do.

Open in

Confirm it's working

  • The page header shows Connected. The connection card shows Access token and when Ace last synced.
  • Sync now checks the token again. A failed check names the scope to add, such as "The key is missing the Read problems scope."
  • The Alerts section moves from Waiting for first alert to Verified on the first delivery with Ace's token. To check now, open the ace-<id> notification in Dynatrace and choose Send test notification.
  • With actions on, the Actions section lists Maintenance window as Allowed by the credential. Missing from the credential means the token lacks Read settings and Write settings. Checked when it runs means Ace couldn't read the token's scopes.
  • If polling fails for 10 minutes, the header shows Needs attention.

To change the token, choose Update credentials (the gear on the card), then Save and test.

Disconnect

  1. In Settings > Integrations > Dynatrace, choose Disconnect, then Disconnect Dynatrace. Ace deletes its problem notification and alerting profile. Anything it can't remove appears in a warning, so you can delete ace-<id> yourself. Maintenance windows Ace created end on their own.
  2. In Dynatrace, delete Ace's token in Access Tokens.
  3. If you added a problem notification by hand, delete it under Problem notifications.

Next steps

On this page