DATADOG TIPS #1

18
DATADOG TIPS #1 Tue Nov 08, 2016 NAOYA NAKAZAWA @n0ts

Transcript of DATADOG TIPS #1

Page 1: DATADOG TIPS #1

DATADOG TIPS #1Tue Nov 08, 2016

NAOYA NAKAZAWA @n0ts

Page 2: DATADOG TIPS #1

TIPS 1-1

Page 3: DATADOG TIPS #1

AWS INTEGRATION

• USE ROLE Delegation

• IAM

• IAM

😇

Page 4: DATADOG TIPS #1

TIPS 1-1I

Page 5: DATADOG TIPS #1

• Metric Explorer aws.billing.*

• URL exp_metric=aws.billing.estimated_charges 🙆

AWS BILLING METRIC

Page 6: DATADOG TIPS #1

TIPS 1-III

Page 7: DATADOG TIPS #1

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) | Stopping Thread 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

Page 8: DATADOG TIPS #1

TIPS 1-Ⅳ

Page 9: DATADOG TIPS #1

MONITOR MESSAGE

{{#is_alert}}sample error message @jay@datadog @slack-ops-test{{/is_alert}}

Page 10: DATADOG TIPS #1

{{#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}}

Page 11: DATADOG TIPS #1

TIPS 1-Ⅴ

Page 12: DATADOG TIPS #1

AGENT COLLECTION INTERVAL 1

• Agent

• 60

min_collection_interval: 60

Page 13: DATADOG TIPS #1

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-

Page 14: DATADOG TIPS #1

TIPS 1-Ⅵ

Page 15: DATADOG TIPS #1

INTEGRATION

• Integration

• Broken! 😇

Page 16: DATADOG TIPS #1

TIPS 1-Ⅵ

Page 17: DATADOG TIPS #1

Page 18: DATADOG TIPS #1

🌏 HAPPY MONITRING 🌏