Open
Description
Describe the enhancement you'd like
I suggest making the job label, e.g. for the Kubernetes API Server a variable that can be set during the kustomize call or make the hard-coded Regex more flexible.
For instance, there is the following query for the API Server:
up{job=~"kubernetes-apiservers|apiserver", cluster=~"$cluster"}
My API Server metrics us "kube-apiserver" for the job label. So, I cannot see this metric in the provided dashboard.
I'd suggest to make it look more like this:
up{job=~"(kube-|kubernetes-)*apiserver(s)*", cluster=~"k8s"}
This would match the following job labels:
- kube-apiserver
- kube-apiservers
- kubernetes-apiserver
- kuberntes-apiservers
- apiserver
- apiservers
Additional context
No response