2. Getting Started
Live Code Snippets
The code snippets in this tutorial can be executed live from within the browser. To enable this, just follow the instructions below.
Then click the green buttons below each code snippet. After the command has executed, the response will appear in a popup box at the bottom of the screen.
If you do not want to use this functionality, you can still copy and paste the commands into the codespace terminal.
Gather Details: Tenant ID & Environment#
You will need access to a Dynatrace tenant. If you do not have access, sign up for a free 15 day trial.
Make a note of your Dynatrace tenant ID. It is the first bit of your URL (eg. abc12345
in the following examples):
https://abc12345.live.dynatrace.com
https://abc12345.apps.dynatrace.com
Gather Details: Environment Type#
Make a note of your "environment type" based on your URL.
If you are unsure, use live
.
URL | Environment Type |
---|---|
abc12345.apps.dynatrace.com | live |
abc12345.live.dynatrace.com | live |
abc12345.sprint.dynatracelabs.com | sprint |
abc12345.dev.dynatracelabs.com | dev |
Gather Details: Create API Token#
k6 requires an API token to stream metrics to Dynatrace.
This demo also sends an SDLC event after the test has finished. For this, it needs the events_sdlc
API permission.
Create an API token with the following permissions:
metrics.ingest
openpipeline.events_sdlc
Recap Required Info
You should now have three pieces of information:
- Environment ID
- Environment Type
- API Token
Start Demo#
Enter Required Information
During the next step you will be prompted for some details.
Enter the relevant details in the GitHub form.
Click this button to launch the demo in a new tab.