Create an agentless RUM application before GoLive
Skip to content

3. Codespaces

Under Construction

This guide is under construction and is not ready for use!

Create Codespace#

Click to open Codespaces for this workshop repository:

Open in GitHub Codespaces

Codespace Configuration

  • Branch
    • select the main branch
  • Dev container configuration
    • select Dynatrace Enablement Container
  • Machine type
    • select 4-core
  • Region
    • select any region, preferably one closest to your Dynatrace tenant

Wait for Codespace#

We know your time is very valuable. This codespace takes around 7-10 minutes to be fully operational. A local Kubernetes (kind) cluster will be configured and in it a sample application, AstroShop, will be deployed. To make your experience better, we are also installing and configuring tools like:

k9s kubectl helm node jq python3 gh

Deploy Demo Applications#

AstroShop (OpenTelemetry Demo App)#

deployAstroshop

EasyTrade#

deployEasyTrade

HipsterShop#

deployHipsterShop

Troubleshooting#

AstroShop#

If you encounter problems with the AstroShop app deployed in the astroshop namespace, you can easily recycle the pods.

Recycle pods:

kubectl delete pods --all -n astroshop

But before doing so, if you want to see what is happening we recommend the following:

Verify all astroshop pods

kubectl get pods -n astroshop

Check for events in the astroshop namespace

kubectl get events -n astroshop

Check for system and cluster events

kubectl get events -n kube-system
kubectl get events -n default

App exposure#

The Astroshop application is exposed via NodePort and it's mapping port 8080 to Cluster port 30100.

Verify service:

kubectl get svc astroshop-frontendproxy -n astroshop

Deploy Dynatrace Configurations with Monaco#

This workshop includes multiple Dynatrace configurations, such as Launchpads, Dashboards, and Notebooks. These can be deployed to your Dynatrace tenant automatically, using Monaco.

Start by setting your environment variables for Monaco, these will allow Monaco to authenticate with the Dynatrace Platform Services API.

export DT_PLATFORM_URL=https://{your-environment-id}.apps.dynatrace.com
export DT_PLATFORM_TOKEN=dt0sXX.ABC123XYZ

Deploy the Dynatrace configurations with Monaco using the provided helper function.

deployDynatraceConfig

Review the Monaco logs output in the console and check for any error messages. If the configurations were deployed successfully, you should see Successfully deployed Dynatrace Configurations with Monaco.

Monaco Successful

In your Dynatrace tenant, open the Notebooks App. Locate the newly uploaded Notebook titled Workshop - Workshop Exercises.

Workshop Notebooks

Continue#

In the next section, we'll deploy Dynatrace on Kubernetes for full stack observability with log analytics.