【问题标题】:Monitor the Nginx which is deployed on (GKE) cluster监控部署在(GKE)集群上的 Nginx
【发布时间】:2021-04-13 01:04:57
【问题描述】:

我想监控多个应用程序使用多个域 url 运行的 Nginx 请求(5xx、4xx、3xx、2xx),Nginx 的部署方式如下:在 GKE 集群上部署。 有没有办法获得实时监控?

【问题讨论】:

  • 这里的NGINX是指NGINX应用还是NGINX入口控制器?
  • NGINX 应用程序不是 NGINX 入口控制器,我没有将它作为守护进程运行。

标签: nginx kubernetes google-cloud-platform monitoring


【解决方案1】:

Cloud 的监控模块会不时移动。目前,监控应用程序最常用的方法是使用 Grafana 的 Prometheus。

Prometheus 是定义如何从应用程序收集指标的应用程序。在 NGINX 方面,您需要部署 exporter。然后,您可以指示 prometheus 从 exporter 发布的端点获取指标。

确认 Prometheus 获得所有指标后,您可以将 Prometheus 与 Grafana 挂钩。社区中有很多预定义的仪表板。来自 NGINX 公司的官方版本。可以在这个link 中找到。您可以将仪表板导入您的 Grafana 实例。

所有的grafana和prometheus都可以用helm安装。请参考这两个仓库,https://github.com/grafana/helm-chartshttps://github.com/prometheus-community/helm-charts

【讨论】:

猜你喜欢
  • 2016-10-09
  • 2021-04-14
  • 2019-09-04
  • 1970-01-01
  • 1970-01-01
  • 2020-12-16
  • 2022-11-04
  • 2021-02-25
  • 2020-01-13
相关资源
最近更新 更多