osowskit/hiring-engineers

Place to Upload

Opened this issue · 20 comments

https://www.datadoghq.com/blog/mysql-monitoring-with-datadog/#configure-the-agent-to-collect-mysql-metrics

Create a datadog user in MySQL and grant it permission to run metric queries on your behalf.
Copy Datadog’s conf.d/mysql.yaml.example template to conf.d/mysql.yaml to create a configuration file for Datadog.

/etc/datadog-agent/conf.d/mysql.d/conf.yaml.example
The file results in an error

Add the login credentials for your newly created datadog user to conf.d/mysql.yaml.
Restart the Agent.

MySQL

screen shot 2018-11-08 at 2 32 49 pm

The deprecated binary 'dd-agent' is no longer provided. Please use the 'datadog-agent' binary instead.

https://docs.datadoghq.com/developers/write_agent_check/?tab=agentv6#verifying-your-check

Getting my_metric

screen shot 2018-11-08 at 4 47 00 pm

The instances shouldn't have an indent

init_config:

 instances:
    - min_collection_interval: 30

Alert Conditions

screen shot 2018-11-09 at 9 29 29 am

email template

screen shot 2018-11-08 at 9 12 10 pm

Oh my!

{{#is_alert}} We've hit an Alert! IP {{host.ip}} reported: `{{value}}`   {{/is_alert}}
{{#is_no_data}} Do data present? {{/is_no_data}}
{{#is_warning}} OOO - Getting close it's warning time. {{/is_warning}}


this is crazy @osowskit@gmail.com

https://docs.datadoghq.com/agent/faq/how-datadog-agent-determines-the-hostname/?tab=agentv6

sudo /etc/init.d/datadog-agent info

Usage: /etc/init.d/datadog-agent {start|stop|restart|status}

Downtime

screen shot 2018-11-09 at 9 35 21 am

Monitor email

screen shot 2018-11-09 at 9 39 05 am

ddtrace-run not found even after installing pip install ddtrace.

https://www.datadoghq.com/blog/monitoring-flask-apps-with-datadog/#capturing-traces-and-logs-from-your-flask-app

mkdir conf.d/python.d # Create a Python config directory under conf.d vi 
conf.d/python.d/conf.yaml # Create and open the config file`

Should be

mkdir conf.d/python.d # Create a Python config directory under conf.d 
vi conf.d/python.d/conf.yaml # Create and open the config file

'Simple' has a number of requirements and likely should link to docs instead.

I had an issue where i had python set up on a non-root user account that didn't have access to ddtrace-run.

Using the payload/widget information outlined in https://docs.datadoghq.com/graphing/dashboards/widgets/#timeseries the application gets

["400", {"errors"=>["The 'definition' parameter is required for all graphs"]}]

Documentation for https://docs.datadoghq.com/graphing/dashboards/widgets/#timeseries should indicate that it will also have a field definition that can be obtained from an existing Dashboard (JSON).

Anomaly screenshot

screen shot 2018-11-09 at 2 50 03 pm

Combined mix

screen shot 2018-11-12 at 7 47 46 am