googleapis / googleapis/google-cloud-java

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

Offen
#11,911 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api: logging priority: p3
Vorherrschende Sprache
Java
Sterne
2.1k
Forks
1.2k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
154

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.