8000 Stackdriver LoggingAppender is missing container_name and namespace_id fields on MonitoredResource · Issue #3559 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content 8000

Stackdriver LoggingAppender is missing container_name and namespace_id fields on MonitoredResource #3559

@steveniemitz

Description

@steveniemitz

I added the 0.57.0-alpha LoggingAppender to my logback config in a GKE service, however I noticed that the fields container_name and namespace_id are missing. This is important, because in the GKE UI, when clicking on "Container logs" for a given container, the filter is pre-populated with these fields (resource.labels.container_name, etc), and therefor no logs will show up unless those are populated.

It looks like MonitoredResourceUtil from google-cloud-logging just needs to be enhanced to pick up these fields if running in GKE.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0