Skip to content

Dynatrace sign-in

Dynatrace is the monitoring tool where we look at what our services did: logs, failed requests, traces and problems. sfe reads it with sfe dt ....

Video, about one minute, with narration and captions.

The video shows sfe's own checks for this sign-in, from a real run. The browser part of a sign-in, where we type our password and approve it, is ours alone, so the video describes it and does not record it.

What it is used for in sfe

  • sfe dt logs --service orc --level ERROR --since 2h shows recent errors from a service.
  • sfe dt contexts lists the Dynatrace contexts on this Mac and their safety level.
  • sfe search looks in every system at once, Dynatrace included.

What must be signed in

What Detail
The tool dtctl, the Dynatrace command line. sfe doctor tools checks that it is installed
Before the first sign-in In My Apps (https://myapps.microsoft.com) we open the tile wgu_DynaTrace_SCIM once, so that our Dynatrace account exists
The context A context is an environment plus a saved login. We need wgu-prod and wgu-nonprod, both set to the safety level readonly. At that level dtctl itself refuses writes
The command dtctl auth login --context wgu-prod, and the same with --context wgu-nonprod. It opens a browser page
What we type Our password and MFA in the browser. We type them, never sfe and never an agent
Where it is kept In the macOS Keychain, by dtctl

After a login, dtctl resets the context to read-write. sfe puts it back to read-only. The doctor's fix line says so. If the doctor still shows a red cross for Dynatrace context wgu-prod exists, read-only, we run the dtctl config set-context wgu-prod ... --safety-level readonly line that it prints.

Environments

sfe name Context Covers
prod wgu-prod at https://wgu-prod.apps.dynatrace.com Production services. This is the default, and sfe marks it [PRODUCTION]
nonprod wgu-nonprod at https://txt88865.apps.dynatrace.com The dev, SIT, QA and stage services

In the browser, we reach Dynatrace from the My Apps tile. The launcher lands on non-prod, so we switch to production in the account menu when we want it.

What a successful sign-in looks like

sfe status has a dynatrace row that says logged in, in green:

dynatrace  yes  prod  Dynatrace production [PRODUCTION]  logged in

sfe doctor dynatrace shows four green ticks: each context exists and is read-only, and each login works. sfe dt contexts lists both contexts with readonly in the SafetyLevel column, and a star on the current one. All three only read.

On a Mac where it is signed in, sfe doctor dynatrace looks like this:

sfe doctor dynatrace: both contexts exist and are read-only, and both are logged in

And dtctl config get-contexts, which only reads:

dtctl config get-contexts: wgu-prod and wgu-nonprod, both read-only

Steps

  1. We open My Apps and click the Dynatrace tile once, if we have never done it.
  2. We run sfe doctor dynatrace. It prints a fix: line for each context or login that is missing.
  3. We run dtctl auth login --context wgu-prod. The browser opens. We type our password and approve the MFA ourselves.
  4. We repeat step 3 with --context wgu-nonprod.
  5. We run sfe doctor dynatrace again. If sfe says a context is not read-only, we run the line it prints.

Troubleshooting

What we see Likely cause What to do
not logged in, or exit code 4 The login for that context is missing or has expired Run dtctl auth login --context wgu-prod (or wgu-nonprod) ourselves
not logged in: failed to load config, with Run 'dtctl config set-context' The context does not exist yet Run the dtctl config set-context ... line that sfe doctor dynatrace prints, then log in
The context is not read-only after a login dtctl resets it to read-write after every login Run the set-context ... --safety-level readonly line the doctor prints
A sign-in page says we have no access Our Dynatrace account does not exist yet Open the wgu_DynaTrace_SCIM tile in My Apps once, then try again
The browser shows non-production data The launcher opens non-prod first Switch the environment in the account menu

Next


Last reviewed: 2026-12-02