Skip to content

Logging on GKE has incorrect cluster ___location #1819

@uday-happeo

Description

@uday-happeo

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: googleapis/python-logging#830 by moving to attribute instance/attributes/cluster-___location from metadata server.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions