At the moment the DataHub metrics dashboard aggregates all DataHub metrics. This works because the metrics aren't available in test and preprod yet. Once the metrics are exported there, the dashboard needs to be able to filter between namespaces (environments).
This PR adds the namespace='$namespace' filter to each of the prometheus metrics, and adds the variable $namespace from label_values(kube_deployment_metadata_generation,namespace) matching regex: "/^data-platform-datahub-catalogue-/"
At the moment the DataHub metrics dashboard aggregates all DataHub metrics. This works because the metrics aren't available in
test
andpreprod
yet. Once the metrics are exported there, the dashboard needs to be able to filter between namespaces (environments).This PR adds the
namespace='$namespace'
filter to each of the prometheus metrics, and adds the variable$namespace
fromlabel_values(kube_deployment_metadata_generation,namespace)
matching regex:"/^data-platform-datahub-catalogue-/"