-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Nginx for Datadog
Christopher Fraser edited this page Feb 4, 2021
·
3 revisions
- SSH into the server
- Go to
/etc/nginx/conf.d
sudo vi datadog.conf
- Copy and paste this configuration
server {
listen 81;
server_name localhost;
access_log off;
allow 127.0.0.1;
deny all;
location /nginx_status {
# Choose your status module
# freely available with open source NGINX
stub_status;
# for open source NGINX < version 1.7.5
# stub_status on;
# available only with NGINX Plus
# status;
}
}
- Restart Nginx
sudo service nginx restart
- Go to
/etc/datadog-agent/conf.d/nginx.d
- Create the conf file
sudo cp conf.yaml.example conf.yaml
- Restart the agent
sudo service datadog-agent restart