Skip to content

Commit

Permalink
Add emit_tags_as_labels to envoy bootstrap config when using Consul T…
Browse files Browse the repository at this point in the history
…elemetry Collector (#17888)
  • Loading branch information
Joshua Timmons authored Jun 27, 2023
1 parent c8cfa60 commit 55056be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/17888.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
connect: Add capture group labels from Envoy cluster FQDNs to Envoy exported metric labels
```
3 changes: 2 additions & 1 deletion command/connect/envoy/bootstrap_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,8 @@ func appendTelemetryCollectorConfig(args *BootstrapTplArgs, telemetryCollectorBi
"envoy_grpc": {
"cluster_name": "consul_telemetry_collector_loopback"
}
}
},
"emit_tags_as_labels": true
}
}`

Expand Down
6 changes: 4 additions & 2 deletions command/connect/envoy/bootstrap_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ const (
"envoy_grpc": {
"cluster_name": "consul_telemetry_collector_loopback"
}
}
},
"emit_tags_as_labels": true
}
}`

Expand Down Expand Up @@ -638,7 +639,8 @@ func TestBootstrapConfig_ConfigureArgs(t *testing.T) {
"envoy_grpc": {
"cluster_name": "consul_telemetry_collector_loopback"
}
}
},
"emit_tags_as_labels": true
}
}`,
StaticClustersJSON: `{
Expand Down
3 changes: 2 additions & 1 deletion command/connect/envoy/testdata/telemetry-collector.golden
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"envoy_grpc": {
"cluster_name": "consul_telemetry_collector_loopback"
}
}
},
"emit_tags_as_labels": true
}
}
],
Expand Down

0 comments on commit 55056be

Please sign in to comment.