sentry-kubernetes
sentry-kubernetes copied to clipboard
Ability to configure Sentry options at the namespace level
Problem
Sentry recommends (see this video]) a fine-grained project structure. This usually means that multiple Sentry projects are represented within a single Kubernetes cluster.
Currently this requires one of two options
- Run an instance of sentry-kubernetes in every namespace and use the
SENTRY_K8S_WATCH_NAMESPACESoption to select the single namespace. - Add the
sentry.io/dsnlabel to every resource in the namespace
Request
Allow users to set the sentry.io/dsn and sentry.io/environment labels on the namespace. This would allow Kubernetes administrators to host the service and service administrators to opt-in to sending Sentry events for their projects with a simple label change.
Adding a new sentry.io/level label to control the logging level would be a bonus.
Thanks!