Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Feb 28, 2019
1 parent 6e21f39 commit 52babaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monitoredresource/monitored_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ func (gke *GKEContainer) MonitoredResource() (resType string, labels map[string]
"cluster_name": gke.ClusterName,
"container_name": gke.ContainerName,
}
var typ
if gke.LoggingMonitoringV2Enabled {
typ = "k8s_container"
labels["pod_name"] = gke.PodID
labels["namespace_name"] = gke.NamespaceID
labels["location"] = gke.Zone
} else {
typ := "gke_container"
typ = "gke_container"
labels["pod_id"] = gke.PodID
labels["namespace_id"] = gke.NamespaceID
labels["zone"] = gke.Zone
Expand Down

0 comments on commit 52babaa

Please sign in to comment.