googleapis / googleapis/google-cloud-java

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

未关闭
#11,911 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: logging priority: p3
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
157

描述

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.

贡献指南

打开贡献指南

调研方向

Start in the Java logging library's handling of resource.labels.location and compare it with the linked Python logging change. Trace how metadata-server attributes are read, then verify that regional GKE clusters use instance/attributes/cluster-location and that Container Logs filters resolve correctly.

由索引模型根据 Issue 内容生成。

评估

技术栈
gcp, java
领域
cloud, observability-sre
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。