From 20b8dfb36fd5a163a888b05af6086d28ac37cf82 Mon Sep 17 00:00:00 2001 From: Caleb Hailey Date: Mon, 12 Aug 2019 11:20:23 -0700 Subject: [PATCH] add namespace tag --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 26dff9c..4fa1191 100644 --- a/main.go +++ b/main.go @@ -33,6 +33,7 @@ func main() { if event.Metrics != nil { for _, point := range( event.Metrics.Points ) { point.Tags = append( point.Tags, &types.MetricTag{ Name: "entity", Value: event.Entity.Name } ) + point.Tags = append( point.Tags, &types.MetricTag{ Name: "namespace", Value: event.Entity.Namespace } ) if event.Entity.Labels != nil { for name, value := range( event.Entity.Labels ) { point.Tags = append( point.Tags, &types.MetricTag{ Name: name, Value: value } )