简体   繁体   中英

GKE NGINX Ingress - no data in Stackdriver

I have successfully set up an NGINX ingress on GKE. It's been handling traffic for a while, so all good there.

However, it does not seem to be reporting metrics data to Stackdriver. I am not sure if it should be doing this out-of-the-box or if I have to configure something (perhaps this?: https://cloud.google.com/monitoring/agent/plugins/nginx ). The instructions for this plug-in are clear but do not seem compatible with the layout of the NGINX pod (ie: can't run sudo commands, directory structure is different, etc).

This is what I see when I try to add a chart to show NGINX connections in my Stackdriver dashboard.

Stackdriver 中的活动连接指标

If anyone could shed light on how I can get GKE-deployed NGINX ingresses to report metrics to Stackdriver I'd be appreciative! :)

Cheers, Ben

It looks like you choose wrong Resourse type because GCE VM Instance you should use for A virtual machine instance hosted in Google Compute Engine (GCE) and here you have GKE-deployed NGINX ingresses .

EDIT I think you should use this guide as an example to get metrics you want in Stackdriver.

EDIT 2 You can find more information about it here and here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM