Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of metricbeat monitoring nginx situation

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the detailed explanation of metricbeat monitoring nginx, which is shared with you as follows:

1.version

Os: centos 7.2nginx: nginx-1.13.9metricbeat: metricbeat-6.2.4

2.download

# wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.2.4-x86_64.rpm

3.install

# rpm-ivh metricbeat-6.2.4-x86_64.rpm

4.config

Metricbeat:#metricbeat modules enable nginxnginx.yml- module: nginx metricsets: ["stubstatus"] period: 10s # Nginx hosts hosts: ["http://127.0.0.1"] # Path to server status. Default server-status server_status_path: "basic_status" # According to the situation,and depending Nginx: (nginx need to compile install) requried module:-- with-http_stub_status_module nginx.conf: location / basic_status {stub_status; access_log off; allow 127.0.0.1; deny all;}

5.start

Service metricbeat start

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report