ministryofjustice / data-catalogue

Data catalogue • This repository is defined and managed in Terraform
MIT License
3 stars 0 forks source link

add namespace filter to DataHub metric dashboard #119

Closed tom-webber closed 6 months ago

tom-webber commented 6 months ago

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-/"