Skip to content

Commit

Permalink
Update run-demo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agardnerIT authored Jan 16, 2025
1 parent 6d9f1b5 commit 6aa4ca4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/run-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ You should see this:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```

``` {"name": "docker ps"}
docker ps
```

Now run k6 with the demo script. Copy and paste this as-is into the terminal window:

```
``` {"name": "docker run k6"}
docker run \
-e K6_DYNATRACE_URL=$DT_URL \
-e K6_DYNATRACE_APITOKEN=$DT_K6_TOKEN \
--mount type=bind,source=./k6scripts,target=/k6scripts hrexed/xk6-dynatrace-output:0.11 run /k6scripts/script.js \
--mount type=bind,source=/workspaces/$RepositoryName/k6scripts,target=/k6scripts hrexed/xk6-dynatrace-output:0.11 run /k6scripts/script.js \
-o output-dynatrace
```

Expand Down Expand Up @@ -83,7 +87,7 @@ In Dynatrace:
* Open an existing notebook or create a new one
* Add a new `DQL` section and paste the following

```
``` { "name": "fetch events dql" }
fetch events
| filter event.kind == "SDLC_EVENT"
| filter event.provider == "k6"
Expand All @@ -108,4 +112,4 @@ The dashboard will begin to be populated with data.
The demo is complete.

<div class="grid cards" markdown>
- [Click Here to Delete and Cleanup resources :octicons-arrow-right-24:](cleanup.md)
- [Click Here to Delete and Cleanup resources :octicons-arrow-right-24:](cleanup.md)

0 comments on commit 6aa4ca4

Please sign in to comment.