Skip to content

Before You Begin

Pre-requisites (5-15 minutes)#

🏠 Dynatrace Tenant#

Note

If you already have your own tenant, you can jump to generate tokens

The lab has been tested end-to-end using a sprint tenant. While we recommend using a sprint tenant, a production or development tenant should work as well.

  1. Search pre-prod-sfm bot in slack

    SFM Bot

  2. type hey

  3. type tenant, wait a few seconds and select the 1st option

  4. Pick sprint, and submit

  5. Wait for 5min, your tenant details will appear. Once that happens type hey again

  6. Type dps, and click on the workflow

  7. Enter your tenant details and continue

  8. DPS should be available soon

  9. Access your Dynatrace tenant with the credentials provided with the bot. You may want to access in Incognito Mode

    Warning

    If you've created the tenant following the previous steps, the admin user is not your dynatrace email, but the one provided within the details in the slack conversation with the bot.

    You will need to be the admin, in order to access Account Management

🔑 Generate Tokens#

dt-access-token#

  1. Within your Dynatrace tenant, go to Access Tokens, and generate a new one with the following permissions. You can give the token any name. Create the token and save it temporarely with you

    Create ActiveGate tokens
    Read entities
    Ingest logs
    Ingest metrics
    Ingest OpenTelemetry traces
    Read settings
    Write settings
    Access problem and event feed, metrics, and topology
    Read configuration
    Write configuration
    PaaS integration - Installer download
    

oauth-token#

  1. Go to Account Management, time to create an OAuth Token, with the following scopes:

    storage:buckets:read
    storage:bucket-definitions:read
    storage:bucket-definitions:write
    openpipeline:configurations:read
    openpipeline:configurations:write
    settings:objects:read
    settings:objects:write
    settings:schemas:read
    app-engine:apps:run
    

  2. Grab client id, secret and account URN, save the values temporarely with you

🗒️ Final configuration variables#

  1. Keep all variables with you to use later on during the lab setup

    DT_TENANT=https://abc12345.sprint.dynatracelabs.com
    DT_TENANT_3GEN=https://abc12345.sprint.apps.dynatracelabs.com
    # Dt tenant stuff
    DT_OPERATOR_TOKEN=<dt-access-token>
    DT_INGEST_TOKEN=<dt-access-token>
    MONACO_TOKEN=<dt-access-token>
    ## Acc Mgmt stuff
    CLIENT_ID=<client-id-acc-mgmt>
    CLIENT_SECRET=<oauth-token-acc-mgmt>
    SSO_ENDPOINT=https://sso-sprint.dynatracelabs.com/sso/oauth2/token
    

Note

DT_OPERATOR_TOKEN, DT_INGEST_TOKEN, MONACO_TOKEN have all the same value and is the one collected in dt-access-token

CLIENT_SECRET is the tokens collected in oauth-token

DT_TENANT should respect the following format https://abc12345.sprint.dynatracelabs.com, without the "/" at the end

DT_TENANT_3GEN should respect the following format https://abc12345.sprint.apps.dynatracelabs.com, without the "/" at the end

All Set!#

Well done! With the tenant, and all the collected variables, you should be ready to start the lab at any time. Now just wait until the time of the Hands-on Training

Warning

Do not create the Codespace yet. Codespaces run for a limited amount of time (cores per hour), so we will run the codespace right before the lab start.