Datadog

Table of Contents

How-to

Config minimally

[Main]
dd_url: https://app.datadoghq.com
api_key: <api-key>
hostname: nightly00-all-000-k
tags:
  - role:couchbase
  - cluster:yeonghoey
tags: ["role:couchbase", "cluster:yeonghoey"]

Reference

Setup

DD_API_KEY=<your-api-key> bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/master/packaging/datadog-agent/source/install_agent.sh)"

# Just install without DD_API_KEY
DD_API_KEY=x DD_INSTALL_ONLY=true bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/master/packaging/datadog-agent/source/install_agent.sh)"

Management

sudo /etc/init.d/datadog-agent start
sudo /etc/init.d/datadog-agent stop
sudo /etc/init.d/datadog-agent restart
sudo /etc/init.d/datadog-agent status
sudo /etc/init.d/datadog-agent info
sudo /etc/init.d/datadog-agent info -v
sudo /etc/init.d/datadog-agent check [integration]
sudo /etc/init.d/datadog-agent check [integration] check_rate
# Configs
/etc/dd-agent/datadog.conf  # Agent
/etc/dd-agent/conf.d/       # Integrations

# Logs
/var/log/datadog/supervisord.log (since 3.8.0)
/var/log/datadog/collector.log
/var/log/datadog/dogstatsd.log
/var/log/datadog/forwarder.log

Host Naming

ec2-hostname: ip-10-42-134-4.ap-northeast-1.compute.internal
local-ipv4: 10.42.134.4
socket-hostname: yeonghoey-cb-001
hostname: i-0ccfeb8b6dc2ce863
local-hostname: ip-10-42-134-4.ap-northeast-1.compute.internal
instance-id: i-0ccfeb8b6dc2ce863
socket-fqdn: localhost
hostname: mymachine.mydomain

Tags

tags:
  - firsttag
  - secondtag
  - thirdtagregion:east
tags:
  - region:nw
  - application:database
  - database:primary
  - role:sobotka

Metrics

Topics