Skip to content

[enhancement] Improve dashboard query for kube-apiserver (and maybe others). #134

Open
@Jeansen

Description

@Jeansen

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions