Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboards: direct match namespace template where multi: false #706

Conversation

jan--f
Copy link
Contributor

@jan--f jan--f commented Nov 19, 2021

Some dashboards define a template variable namespace without the
option to select multiple values. This commit sets multi: false
explicitly and changes the namespace label matcher in queries in those
dashboards from regex match (=~) to just match (=).

Signed-off-by: Jan Fajerski jfajersk@redhat.com

@jan--f
Copy link
Contributor Author

jan--f commented Nov 19, 2021

This PR does not change behavior at all.

The unnecessary regex matcher can cause issues in conjunction with a new-ish prom-label-proxy feature (prometheus-community/prom-label-proxy#67).

Copy link
Member

@paulfantom paulfantom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm on green.

Could you rebase?

Some dashboards define a template variable `namespace` without the
option to select multiple values. This commit sets `multi: false`
explicitly and changes the `namespace` label matcher in queries in those
dashboards from regex match (`=~`) to just match (`=`).

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
@jan--f jan--f force-pushed the dashboards-no-regexmatch-on-single-namespace branch from 1c3ad1f to ac0ef0a Compare November 19, 2021 09:48
@paulfantom paulfantom merged commit ef28541 into kubernetes-monitoring:master Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants