Browse Source

add more steps

master
Brett Langdon 7 years ago
parent
commit
5ed0b864be
No known key found for this signature in database GPG Key ID: E6600FB894DB3D19
6 changed files with 103 additions and 4 deletions
  1. +8
    -0
      dash-apm-python/index.json
  2. +0
    -2
      dash-apm-python/step_1.md
  3. +12
    -2
      dash-apm-python/step_2.md
  4. +14
    -0
      dash-apm-python/step_3.md
  5. +44
    -0
      dash-apm-python/step_4.md
  6. +25
    -0
      dash-apm-python/step_5.md

+ 8
- 0
dash-apm-python/index.json View File

@ -14,6 +14,14 @@
{ {
"title": "Enable trace analytics", "title": "Enable trace analytics",
"text": "step_3.md" "text": "step_3.md"
},
{
"title": "Enable trace and logs",
"text": "step_4.md"
},
{
"title": "Enable process agent",
"text": "step_5.md"
} }
], ],
"intro": { "intro": {


+ 0
- 2
dash-apm-python/step_1.md View File

@ -6,5 +6,3 @@ To get started please be sure you have:
- Datadog account login - Datadog account login
- Datadog API key - Datadog API key
[Datadog APM Dashboard](https://app.datadoghq.com/apm)

+ 12
- 2
dash-apm-python/step_2.md View File

@ -1,9 +1,19 @@
To start all the services run the following, replacing `<KEY>` with your Datadog API key:
Copy the following command and replace `<KEY>` with your API key and execute:
`export DD_API_KEY=<KEY>`{{copy}} `export DD_API_KEY=<KEY>`{{copy}}
Next, run the following command to start our docker services:
`docker-compose up`{{execute}} `docker-compose up`{{execute}}
Open the web interface to verify the application is up and running:
Next, open the web interface to verify the application is up and running:
https://[[HOST_SUBDOMAIN]]-5000-[[KATACODA_HOST]].environments.katacoda.com https://[[HOST_SUBDOMAIN]]-5000-[[KATACODA_HOST]].environments.katacoda.com
Finally, open APM trace list to ensure traces are being submitted successfully:
https://app.datadoghq.com/apm/traces

+ 14
- 0
dash-apm-python/step_3.md View File

@ -3,7 +3,21 @@ and `sensors` services in `docker-compose.yml`.
`DD_ANALYTICS_ENABLED=true`{{copy}} `DD_ANALYTICS_ENABLED=true`{{copy}}
Our services should look like:
``` yaml
frontend:
environment:
- DATADOG_SERVICE_NAME=frontend
- DATADOG_TRACE_AGENT_HOSTNAME=agent
- DD_ANALYTICS_ENABLED=true
```
Afterwards restart docker services: Afterwards restart docker services:
`docker-compose up`{{execute interrupt}} `docker-compose up`{{execute interrupt}}
Finally, open trace analytics dashboard:
https://app.datadoghq.com/apm/search/analytics

+ 44
- 0
dash-apm-python/step_4.md View File

@ -0,0 +1,44 @@
# Enable Datadog logs agent
Add the following environment variables to the `agent` service in `docker-compose.yml`.
`DD_LOGS_ENABLED=true`{{copy}}
`DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true`{{copy}}
Our service should look like:
```yaml
agent:
environment:
- DD_API_KEY
- DD_APM_ENABLED=true
- DD_TAGS='env:apm-workshop'
- DD_LOGS_ENABLED=true
- DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true
```
# Enable trace id injection into logs
Add the following environment variable to the `frontend`, `node`, `pumps`,
and `sensors` services in `docker-compose.yml`.
`DD_LOGS_INTEGRATION=true`{{copy}}
Our services should look like:
```yaml
frontend:
environment:
- DATADOG_SERVICE_NAME=frontend
- DATADOG_TRACE_AGENT_HOSTNAME=agent
- DD_ANALYTICS_ENABLED=true
- DD_LOGS_INTEGRATION=true
```
Afterwards restart docker services:
`docker-compose up`{{execute interrupt}}
Finally, open logs dashboard:
https://app.datadoghq.com/logs

+ 25
- 0
dash-apm-python/step_5.md View File

@ -0,0 +1,25 @@
To enable the Datadog process agent add the following environment variable
to the `agent` service.
`DD_PROCESS_AGENT_ENABLED=true`{{copy}}.
Our service should look like:
```yaml
agent:
environment:
- DD_API_KEY
- DD_APM_ENABLED=true
- DD_TAGS='env:apm-workshop'
- DD_LOGS_ENABLED=true
- DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true
- DD_PROCESS_AGENT_ENABLED=true
```
Next, restart our docker services:
`docker-compose up`{{execute interrupt}}
Finally, open the process dashboard:
https://app.datadoghq.com/process

Loading…
Cancel
Save