-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Originally reported by @jwgoh in #2484
I tried specifying the monitored resource manually. The keys for labels seems to only take snake_case i.e. project_id and NOT camelCase projectId.
// Works
resource: {
type: 'gce_instance',
labels: {
project_id: projectId,
instance_id: instanceId,
zone: zone,
},
},
// Does not work. Nothing gets logged
resource: {
type: 'gce_instance',
labels: {
projectId: projectId,
instanceId: instanceId,
zone: zone,
},
},
I referred to the documentations here and here when specifying the key-value.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.