googleapis / googleapis/google-cloud-java

[java-logging] Logging on GKE has incorrect cluster location

Đang mở
#11,911 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: logging priority: p3
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

Current logging value for `resource.labels.location` is derived from compute location instead of GKE cluster location. This incorrect value causes us to see no container logs when clicked on "Container Logs" from GKE cluster console UI unless we explicitly remove `resource.labels.location` filter each time when GKE cluster is regional but logs have location value as zonal.

This is fixed in python logging library: https://github.com/googleapis/python-logging/pull/830 by moving to attribute `instance/attributes/cluster-location` from metadata server.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.