How to enable process monitoring in data-dog agent
Open the datadog.yaml and uncomment the process_config section under that process_collection should be enabled as true
process_config:
## @param process_collection - custom object - optional
## Specifies settings for collecting processes.
process_collection:
## @param enabled - boolean - optional - default: false
## Enables collection of information about running processes.
enabled: true
Save the file and restart the agent using command --> systemctl restart datadog-agent
- Below command will give you the confirmation about the process monitoring enabled or not datadog-agent config | grep process_collection -B 5 -A 5
====================================================================
Write it down a step to collect apache metrices to datadog
Install apache
$ sudo apt update
$ sudo apt install apache2
Replace this file with your new content to post
$ vi /var/www/html/index.html
Restart the apache
$service apache2 restart
Validate using the below curl
$ watch curl http://localhost
Once installed and validated.. Install the apache integration in datadog UI
Then install mod_status and enable it
By default above modules are enabled but validate once
$ ls /etc/apache2/mods-enabled | grep status*
Ensure the status files are available using the below command
sudo /usr/sbin/a2enmod status
Even though mod_status module enabled we need to allow all incoming connecting to the apache server by allowing a grant permission under status.conf file and restart the apache server using the below commands
$ sudo systemctl restart apache2
$ sudo systemctl status apache2
$ curl http://server-ip/server-status
$ curl http://server-ip/server-status?refresh=5
Enable apache datadog integration using the below steps
$ cd /etc/datadog-agent/conf.d/apache.d/
$ sudo cp conf.yaml.example conf.yaml
$ sudo vi conf.yaml -- Need to replace apache status url
$ sudo service datadog-agent restart [UBUNTU]
$ sudo systemctl restart datadog-agent [Centos and Ubuntu]Use the below command to verify whether datadog agent configured correctly with apache
$ datadog-agent configcheck | grep apache -A 5 -B 5Finally install integration in the SaaS UI and verify the apache metrics in metric explorer, host.
==================================================================
Write it down a step to collect tomcat metrices to datadog
Install openjdk using below steps
Write it down a step to collect tomcat metrices to datadog
$ sudo apt-get update
$ sudo apt-get install openjdk-11-jdk -y
$ apt install openjdk-11-jdk-headless -y
Go to google and download the zip file for the tomcat installable and locate it in cd /opt/
Once done follow the below commands
$ unzip apache-tomcat-9.0.73.zip
$ cd apache-tomcat-9.0.73
$ cd bin
$ chmod -R 755 .
$ ls
Enable JMXRemote using the below steps
Open below file and add the below mentioned content next to the line esac
vi /opt/apache-tomcat-9.0.73/bin/catalina.sh
CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9012 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
Then restart the tomcat using the below command
$ ./shutdown.sh
$ ./startup.sh
- Integrate tomcat with Datadog using the below steps $ 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
Top comments (0)