Back to Browse

Monitoring EC2 And Apache with Data Dog

16.9K views
May 23, 2020
18:51

Monitoring EC2 And Apache with Data Dog ########################################  Amazon Linux Instance  Datadog account Installing the DataDogAgent Check datadog-agent status: service datadog-agent status Apache Installation: sudo yum install -y httpd sudo systemctl status httpd sudo systemctl enable httpd sudo systemctl start httpd Configuring Apache for DataDog: cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd_bk.conf vi /etc/httpd/conf/httpd.conf Paste the following text in the httpd.conf file systemctl restart httpd curl -kI http://localhost/server-status Configuring Data Agent For Apache: ----------------------------------- mv /etc/datadog-agent/conf.d/apache.d/conf.yaml.example /etc/datadog-agent/conf.d/apache.d/conf.yaml vi /etc/datadog-agent/conf.d/apache.d/conf.yaml Logs: ------ vi /etc/datadog-agent/datadog.yaml vi /etc/datadog-agent/conf.d/apache.d/conf.yaml --------------------------------------------------- logs: - type: file path: /var/log/httpd/access_log source: apache sourcecategory: http_web_access service: httpd - type: file path: /var/log/ httpd/error_log source: apache sourcecategory: http_web_access service: httpd ---------------------------------------------------- Permissions for logs: -------------------- cd /var/log chmod 655 -R httpd Restart DataDog: sudo service datadog-agent restart Check the DataDog Status: sudo datadog-agent status

Download

1 formats

Video Formats

360pmp428.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Monitoring EC2 And Apache with Data Dog | NatokHD