分享 分享一个收集 Nginx 日志的 Prometheus 插件

small_fish__ · January 08, 2018 · 3139 hits

最近新项目刚上线,也就顺便把监控,告警之类的加上了。

这里我们主要用到 Prometheus 相关技术栈,在统计 API 的时候,没有找到特别好用的 Nginx 相关插件,所以就自己码了一个 nginx-log-exporter,欢迎大家使用和吐槽。

主要功能包含:

  • 支持多个日志同时收集
  • 支持日志滚动收集
  • 支持自定义数据格式
  • 支持收集动态 URL

主要作用:

  • 监控 API 访问量
  • 监控 API 响应速度
  • 监控 API 错误率

效果图(Grafana + Prometheus):

png

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.