Name: apm-toy-app
Owner: Datadog, Inc.
Description: A simple dockerized app to trace.
Forked from: gabsn/apm-toy-app
Created: 2017-08-18 16:04:07.0
Updated: 2017-08-18 16:04:09.0
Pushed: 2017-08-16 16:02:47.0
Size: 1621
Language: PLpgSQL
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A simple app to trace.
docker
and docker-compose
(you can try sudo pip install docker-compose
)go
and its dependency management toolNote: each time you'll change your API key, you'll need to rebuild the datadog-agent docker image.
Get your Datadog API key (Integrations > APIs) and paste it here
Run the app
er-compose up
This command should launch a minimal golang server along with redis, postgres and the datadog-agent.
Go to http://localhost:8080/, you should get something like that:
hits) - City: Utrecht, 234323 inhabitants
Each time you hit this URL, the golang server will return a different city and its population from postgres and will also tell you how many times you hit this endpoint.
er exec -it apmtoyapp_datadog_1 bash
ice datadog-agent info
ks
==
gres (5.16.0)
-------------
instance #0 [OK]
Collected 15 metrics, 0 events & 1 service check
sdb (5.16.0)
------------
instance #0 [OK]
Collected 36 metrics, 0 events & 1 service check
Dependencies:
- redis: 2.10.5
If you encounter some dependency issues, try to run dep ensure
(make sure you have dep installed).
If you want to make modifications to the datadog image, you have to manually rebuild it with docker build --no-cache datadog -t apmtoyapp_datadog
.