DATADOGTIPS #1
Tue Nov 08, 2016
NAOYA NAKAZAWA @n0ts
TIPS 1-1
AWS INTEGRATION
• USE ROLE Delegation
• IAM
• IAM
😇
TIPS 1-1I
• Metric Explorer aws.billing.*
• URL exp_metric=aws.billing.estimated_charges
🙆
AWS BILLING METRIC
TIPS 1-III
AGENT DEBUG
• Agent
$ sudo -u dd-agent dd-agent check http_check
( )
2016-11-08 18:10:49,445 | INFO | dd.collector |
checks.http_check(network_checks.py:105) | StoppingThread Pool
• Agent
$ sudo -u dd-agent /opt/datadog-agent/agent/agent.py info
$ sudo -u dd-agent /opt/datadog-agent/agent/dogstatsd.py info
$ sudo -u dd-agent /opt/datadog-agent/agent/ddagent.py info
TIPS 1-Ⅳ
MONITOR MESSAGE
•
{{#is_alert}}sample error message @jay@datadog @slack-ops-test{{/is_alert}}
{{#is_alert}}{{/is_alert}}
{{#is_alert_recovery}}{{/is_alert_recovery}}
{{#is_match"host.customer" "customer1"}}{{/is_match}}
{{#is_no_data}}{{/is_no_data}}
{{#is_recovery}}{{/is_recovery}}
{{#is_alert_recovery}}{{/is_alert_recovery}}
{{#is_warning_recovery}}{{/is_warning_recovery}}
{{^is_alert}}{{/is_alert}}
{{^is_match}}{{/is_match}}
{{^is_warning}}{{/is_warning}}
{{^is_no_data}}{{/is_no_data}}
{{^is_recovery}}{{/is_recovery}}
{{^is_alert_recovery}}{{/is_alert_recovery}}
{{^is_warning_recovery}}{{/is_warning_recovery}}
TIPS 1-Ⅴ
AGENT COLLECTION
INTERVAL 1
• Agent
• 60
min_collection_interval: 60
AGENT COLLECTION
INTERVAL II
• 50
Threadstats
• Is there an alternative to dogstatd and the api to submit metrics?
Threadstats.
https://help.datadoghq.com/hc/en-us/articles/204590189-Is-there-an-
alternative-to-dogstatsd-and-the-api-to-submit-metrics-Threadstats-
TIPS 1-Ⅵ
INTEGRATION
• Integration
• Broken! 😇
TIPS 1-Ⅵ
•
•
🌏 HAPPY MONITRING 🌏

DATADOG TIPS #1