osowskit / hiring-engineers

Technical Exercise
Apache License 2.0
0 stars 0 forks source link

Place to Upload #1

Open osowskit opened 6 years ago

osowskit commented 6 years ago
screen shot 2018-11-08 at 10 54 23 am
osowskit commented 6 years ago

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.

osowskit commented 6 years ago

MySQL

screen shot 2018-11-08 at 2 32 49 pm
osowskit commented 6 years ago

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

osowskit commented 6 years ago

Getting my_metric

screen shot 2018-11-08 at 4 47 00 pm
osowskit commented 6 years ago

The instances shouldn't have an indent

init_config:

 instances:
    - min_collection_interval: 30
osowskit commented 6 years ago

Alert Conditions

screen shot 2018-11-09 at 9 29 29 am
osowskit commented 6 years ago

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
osowskit commented 6 years ago

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}

osowskit commented 6 years ago

Downtime

screen shot 2018-11-09 at 9 35 21 am
osowskit commented 6 years ago

Monitor email

screen shot 2018-11-09 at 9 39 05 am
osowskit commented 6 years ago

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

osowskit commented 6 years ago

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
osowskit commented 6 years ago

Configuration file has incorrect formatting on https://www.datadoghq.com/blog/monitoring-flask-apps-with-datadog/#configure-the-python-integration.

screen shot 2018-11-09 at 10 19 10 am

https://docs.datadoghq.com/logs/log_collection/python/#configure-the-datadog-agent

osowskit commented 6 years ago

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

osowskit commented 6 years ago

https://www.datadoghq.com/blog/monitoring-flask-apps-with-datadog/#update-the-python-code

Formatting of Python is incorrect

osowskit commented 6 years ago

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

osowskit commented 6 years ago

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"]}]

osowskit commented 6 years ago

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).

osowskit commented 6 years ago

Anomaly screenshot

screen shot 2018-11-09 at 2 50 03 pm
osowskit commented 6 years ago

Combined mix

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