Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
345 views
in Technique[技术] by (71.8m points)

kubernetes - Monitor the Nginx which is deployed on (GKE) cluster

I want to monitor the Nginx requests (5xx, 4xx, 3xx, 2xx) where multiple applications are running with multiple domain urls, Nginx is deployed as kind: Deployment on GKE cluster. Is there a way to get the real time monitoring ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The monitoring module for Cloud shifts time from time. Right now, the most common way to monitor the application is Prometheus with Grafana.

Prometheus is the app to define how to collect the metric from the application. On the NGINX side, you will need to deploy the exporter. Then, you can instruct the prometheus to get the metric from the endpoint released by the exporter.

Once you have confirmed the Prometheus getting all the metrics, you can hook the Prometheus with Grafana. There are a lot predefined dashboard in the community. An official one from NGINX inc. can be found in this link. You can import the dashboard to your Grafana instance.

All the grafana and prometheus can be installed with helm. Please refer to these two repositories, https://github.com/grafana/helm-charts and https://github.com/prometheus-community/helm-charts.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...