Skip to content

Commit

Permalink
webhook: remove resource_namespace tag in stats reporter
Browse files Browse the repository at this point in the history
This addresses #3171.

As `resource_namespace` has the potential to contribute to high metrics
cardinality while not adding much value from observability perspective,
it would be ideal to disable it by default.
  • Loading branch information
zhouhaibing089 committed Jun 7, 2024
1 parent 9760223 commit 9176aa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ func main() {
ServiceName: serviceName,
Port: webhook.PortFromEnv(8443),
SecretName: secretName,

StatsReporterOptions: []webhook.StatsReporterOption{webhook.WithoutTags("resource_namespace")},
})

mux := http.NewServeMux()
Expand Down

0 comments on commit 9176aa3

Please sign in to comment.