详解metricbeat监控nginx情况
本文介绍了详解metricbeat监控nginx情况,分享给大家,具体如下:
1.version
os:centos7.2 nginx:nginx-1.13.9 metricbeat:metricbeat-6.2.4
2.download
#wgethttps://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.2.4-x86_64.rpm
3.install
#rpm-ivhmetricbeat-6.2.4-x86_64.rpm
4.config
Metricbeat:
#metricbeatmodulesenablenginx
nginx.yml
-module:nginx
metricsets:["stubstatus"]
period:10s
#Nginxhosts
hosts:["http://127.0.0.1"]
#Pathtoserverstatus.Defaultserver-status
server_status_path:"basic_status"#Accordingtothesituation,anddepending
Nginx:(nginxneedtocompileinstall)
requriedmodule:--with-http_stub_status_module
nginx.conf:
location/basic_status{
stub_status;
access_logoff;
allow127.0.0.1;
denyall;
}
5.start
servicemetricbeatstart
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持毛票票。
热门推荐
10 小红书平安祝福语简短
11 生日祝福语大全女孩简短
12 收生日红包祝福语 简短
13 领证幽默祝福语简短
14 法考面试祝福语简短
15 老哥出门祝福语简短语
16 送灯祝福语简短独特
17 幼儿狗年祝福语大全简短
18 好听的元旦简短祝福语