Support filtering Prometheus data by namespace
Right now for Prometheus we autodetect and filter on CI_ENVIRONMENT_SLUG
. This works great, and is required to detect these metrics.
However in environments like Kubernetes where you could have multiple projects being monitored by the same Prometheus server we need an additional way to differentiate.
I would suggest we then also optionally detect KUBE_NAMESPACE
, which would allow us to differentiate more easily and also a tag likely to already appear in Kubernetes based metrics.
Edited by Joshua Lambert