nginx-monitor-to-falcon

command
v0.0.0-...-f170a84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 11 Imported by: 0

README

nginx-monitor

收集nginx自带的http_stubs_tatus模块监控发送到falcon

系统环境

  • running inside Linux
  • nginx --with-http_stub_status_module

配置文件更改

  1. 编辑conf.yaml文件,替换你的falcon地址和nginx状态检测地址
falcon-url: http://127.0.0.1:1988/v1/push
nginx-url: http://127.0.0.1:80/nginx_status
  
  1. 下载可执行文件nginx_status

  2. 启动方式

# crontab -e

* * * * * /root/nginx_status

Metrics Comments
Active 对后端发起的活动连接数
accepts Nginx总共处理的连接数
handled 成功创建握手的数量
requests 总共处理了多少请求
Reading Nginx 读取到客户端的Header信息数
writing Nginx 返回给客户端的Header信息数
waiting 开启keep-alive后正在等候下一次请求指令的驻留连接

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL