prometheus 监控 nginx 规则

System 

nginx 的监控规则可以参考:Awesome Prometheus alerts | Collection of alerting rules实际上里面的规则可能还需要略微修改才可以使用:groups:- name: Nginx rules: - alert: NginxHighHttp4xxErrorRate expr: sum(rate(nginx_server_requests{

Prometheus监控PHP-FPM


环境PHP版本:7.3在docker里通过supervisor启动PHP步骤PHP-FPM端配置PHP-FPM开启status_path# vim /etc/php-fpm.d/www.confpm.status_path = /statusping.path = /pingNginx端配置监听9010端口server { listen 9010; location ~ ^/(stat