Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

How to install nginx integration in Datadog?

How it works?

Step 1 – Install Nginx in Centos 7

Step 2 – Configure Nginx and start a services

Step 3 – Enable “ngx_http_stub_status_module” in Nginx

If you use open source NGINX, your instances may lack the stub status module. Verify that your nginx binary includes the module before proceeding to Configuration:

$ nginx -V 2>&1| grep -o http_stub_status_module
http_stub_status_module

If the command output does not include http_stub_status_module, you must install an NGINX package that includes the module.

Step 4 – Configure and Verify a Nginx metrices at http://localhost:81/nginx_status

On each NGINX server, create a status.conf file in the directory that contains your other NGINX configuration files, such as /etc/nginx/conf.d/.


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;

    # ensures the version information can be retrieved
    server_tokens on;
  }
}Code language: PHP (php)

$ sudo systemctl restart nginx
$ sudo systemctl status nginx

BROWSER - http://3.110.105.162:81/nginx_status
Inside a Server - curl http://127.0.0.1:81/nginx_status
Code language: JavaScript (javascript)

Step 5 – Configure Datadog integration configuration file

Linux – /etc/datadog-agent/conf.d/nginx.d
Windows – C:\ProgramData\Datadog\conf.d\nginx.d

  • Go into /etc/datadog-agent/conf.d/nginx.d
  • Copy conf.yaml.example into conf.yaml
  • Edit conf.yaml and enable integration

Step 6 – Restart datadog agent & Click on “Install Integration” button on Datadog

Step 7 – Validate NGINX Metrices are coming or not at “Metrics Explorer”

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x