googleapis / googleapis/google-cloud-java

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

Open
#11,911 1 comment 0 reactions 0 assignees View on GitHub
api: logging priority: p3
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.