Skip to content

Microservices in Python and Docker for an APM Workshop hosted at DASH (2018)

Notifications You must be signed in to change notification settings

burningion/dash-apm-workshop

Repository files navigation

Dash APM Workshop (2018)

This repo contains microservices written in Python and Docker for an APM Workshop I'm running at DASH in 2018.

This repo builds upon the excellent work of vlad-mh's PyCon UK talk about APM, and the dd-py-tracing-workshop from mstbbs.

This repo is meant to be used alongside the Jupyter notebooks in this repo.

You'll check out this repo, run jupyter notebook, and run the docker containers here from within the Jupyter notebook.

Pre APM Event Prep

Because Wifi tends to be spotty at events, it would help if you downloaded the Docker images ahead of time.

If you don't already have Docker installed locally, you'll need to do that too.

Once you've got that running, you can then clone this repo, and from within the top level directory run a STEP=1 docker-compose up.

Docker will download all the images necessary for you to run through the event. All of the Docker images are pinned, so they won't change.

You'll be making for a better experience for everyone else. Thanks!

Event Flow

We'll run through the first Jupyter notebook found here, to familiarize ourselves with the concepts of tracing.

After setting up our Datadog accounts and sending some traces, we'll then jump into Distributed Tracing, and see how to send traces across services. We'll walk through instrumenting databases, microservices, and caching systems.

Running the Examples in MacOS / Linux

You'll need to first create a Datadog account, and then get your API key from the prompt.

You'll then be able to start the example project with a:

DD_API_KEY=<YOUR_API_KEY> STEP=1 docker-compose up

Running the Examples in Windows

In Windows, most things should just work the same in Powershell, as long as you've got the latest version of Docker installed.

One difference from MacOS / Linux is how environment variables are set to run the docker-compose commands.

Open up a Powershell instance, and set your environment variables before starting the containers. You can do this with the following command:

PS C:\Dev\dash-apm-workshop> $env:STEP=5
PS C:\Dev\dash-apm-workshop> $env:DD_API_KEY=<YOUR_API_KEY>
PS C:\Dev\dash-apm-workshop> docker-compose up

For each part of the lessons, just replace the setting of environment variables as above. Feel free to create a Github issue if you have any problems.

About

Microservices in Python and Docker for an APM Workshop hosted at DASH (2018)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published