Debug School

Pradnya Kekan
Pradnya Kekan

Posted on

Day 2: Datadog Integration

Write it down a step to collect apache metrices to datadog

1)Install the Datadog Agent
2)Install Apache HTTPD server
3)Enable mod_status in Apache- by default it is enabled in ubuntu
status.conf
status.load
4)Configure the Agent to collect Apache metrics in apache.d file
-GO to /etc/apache2/mods-enabled/status.conf
-Replace Require ip to Require all granted
5)enable apache integration
-go to /etc/datadog-agent/conf.d/apache.d/
-sudo cp conf.yaml.example conf.yaml
-sudo vi conf.yaml
-and put the apache_status_url
sudo service datadog-agent restart
6)Install apache integration
7)Create a fake traffic and verify on datadog metrics

Write it down a step to collect tomcat metrices to datadog

1)Install the Datadog Agent
2)Install tomcat apache
3)enable JMX Remote
-cd /etc/datadog-agent/conf.d/tomcat.d/
-cp conf.yaml.example conf.yaml
-datadog-agent configcheck
-systemctl restart datadog-agent
-systemctl status datadog-agent
-datadog-agent config
4)Install Apache tomcat inegration
5)Verify it on datadog metrics

Write it down a step to collect docker metrices to datadog

1)install datadog agent
2)Install docker
3)do the integration:
-cd /etc/datadog-agent/conf.d/docker.d/
-cp conf.yaml.default conf.yaml
-vi conf.yaml
-add - url: "unix://var/run/docker.sock"
-systemctl restart datadog-agent
-systemctl status datadog-agent
4)create few containers and verify it in datadog metrics

Write it down a step to collect mysql metrices to datadog

1)Install datadog agent
2) Install MySQL
3)create mysql user and grant required privilages

  • do the mysql integration on datadog page 4)Configure Datadog agent to start collection mysql metrix. -cd /etc/datadog-agent/conf.d/mysql.d/
    • sudo cp conf.yaml.example conf.yaml -sudo vi conf.yaml -cd /etc/datadog-agent/conf.d/mysql.d/ -sudo cp conf.yaml.example conf.yaml
  • sudo vi conf.yaml password : options: replication: false galera_cluster: true extra_status_metrics: true extra_innodb_metrics: true extra_performance_metrics: true schema_size_metrics: false disable_innodb_metrics: false $ sudo service datadog-agent restart $ sudo service datadog-agent restart

and then install mysql integration on datadog and verify

Top comments (0)