詳解metricbeat監(jiān)控nginx情況
更新時間:2018年06月15日 09:31:01 作者:vpants
這篇文章主要介紹了詳解metricbeat監(jiān)控nginx情況,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
本文介紹了詳解metricbeat 監(jiān)控 nginx 情況,分享給大家,具體如下:
1.version
os: centos 7.2 nginx: nginx-1.13.9 metricbeat: 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 nginx nginx.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
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
Windows環(huán)境實(shí)現(xiàn)Nginx配置及開機(jī)自啟動
本文主要介紹了Windows環(huán)境實(shí)現(xiàn)Nginx配置及開機(jī)自啟動,通過兩種方式可以實(shí)現(xiàn)nginx的開機(jī)自啟動,具有一定的參考價值,感興趣的可以了解一下2024-03-03keepalived+nginx高可用實(shí)現(xiàn)方法示例
這篇文章主要介紹了keepalived+nginx高可用實(shí)現(xiàn)方法示例,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-05-05