Skip to content

Commit

Permalink
Fix namespace labelling on metrics in Vector remap operation
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski committed Oct 24, 2023
1 parent b8fdff4 commit a8eebf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/telemetry/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ if err == null {
Config: `source = '''
namespace, err = get_env_var("NAMESPACE")
if err == null {
.namespace = namespace
.tags.namespace = namespace
}
'''
`,
Expand Down
2 changes: 1 addition & 1 deletion pkg/telemetry/vector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ inputs = ["cassandra_metrics_raw"]
source = '''
namespace, err = get_env_var("NAMESPACE")
if err == null {
.namespace = namespace
.tags.namespace = namespace
}
'''
Expand Down

0 comments on commit a8eebf5

Please sign in to comment.