Prerequisites: Quick Step by Step Guide#
Prerequisites
- Provision Infrastructure
- Download Visual Studio Code
Prerequisites#
1.- Provision Infrastructure#
For the remote environment we'll use an EC2 Instance in the AWS cloud.
Navigate to your AWS Account and open create EC2 instance:
- Give it a name like
Sergio Hinojosa's Environment - Select Ubuntu as OS
- Amazon Machine Image (AMI)
- Ubuntu Server 24.04 LTS (HVM), SSD Volume - Architecture 64-bit (x86)
- Instance Type
- t3.xlarge (4vCPU 16 GiB Memory)
- Key pair
- If you don't have one, create it
- Enter key pair name
- Type: RSA
- Format: pem
- Create the Identity file and download it to your computer (A good place could be something like
/Users/firstname.lastname/.aws/keys/onboarding.pem)
- Disk
- Allocate 40 Gig of Disk space, this should be more than enough for your onboarding journey
- Network policies Incoming 22, 80
- Optional: Ports 8000, 30100, 30200, 30300 if you want to deploy more apps and want to access them via the default exposure
- Launch instance
App exposure on http 80
The apps in this framework are exposed via Kubernetes NodePort in the ports 30100, 30200 and 30300. For convenience reasons, in this training port 30100 will be routed via IPTABLES to port 80 with the function exposeOnHttp. Reason is that some corporate firewalls block traffic in those ports.
2.- Download Visual Studio Code#
- Go to https://code.visualstudio.com, download and install Visual Studio Code on your machine.
Tip
Working on a local Visual Studio Code maximizes your productivity. You'll be able to connect to dev containers remotely or locally, install plugins, and much more.
2.1 - Install VS Code Remote Explorer Extension#
-
You'll need the Remote Explorer extension
ms-vscode.remote-explorerso you can connect to your server via SSH and develop from the IDE as if you were working on your localhost.
3.- Dynatrace SaaS Tenant#
- You'll need a Grail enabled Dynatrace SaaS Tenant (sign up here) if you don't already have one.
3.1- Enable OneAgent features#
Go to Settings > Collect and Capture > General Monitoring settings > OneAgent features

3.1.1 - Enable W3C context#
In OneAgent features we enable the W3C context for the distributed tracing.
Click save and close

3.1.2 - Enable Opentelemetry#
In OneAgent features we enable the Opentelemetry features.

Click save and close
3.1.3 - Enable gRPC features#
In OneAgent features we enable the gRPC features.

Click save and close
3.1.4 - Enable log enrichment#
In OneAgent features we enable log enrichment

Click save and close
3.2 - Monitored Technologies#
Go to Settings > Collect and Capture > General Monitoring settings > Monitored technologies

3.2.1 - Enable Static Go#
Go > Enable Go Static application monitoring
Click save and close
3.2.2 - Enable Envoy#
Enable Monitor Envoy
Click save and close
3.2.3 - Enable Python#
Enable Monitor Python
Click save and close
3.3 - Built-In Monitoring Rules#
Go to Settings > Process and contextualize > Process Groups > Built-in monitoring rules
3.3.1 - Enable Monitoring Static Go#
Disable "Do not monitor processes if Go Binary Linkage equals 'static' - Rule id: 47
Click save and close

Disabling this rule enables deep-monitoring into the checkout service and the product-catlog from the Astroshop.