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

Commit

Permalink
add namespace tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Hailey committed Aug 12, 2019
1 parent f345204 commit 20b8dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 } )
Expand Down

0 comments on commit 20b8dfb

Please sign in to comment.