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

Predefined selection for labes in maintenance templates #52

Open
christopherhans opened this issue Aug 19, 2021 · 0 comments
Open

Predefined selection for labes in maintenance templates #52

christopherhans opened this issue Aug 19, 2021 · 0 comments

Comments

@christopherhans
Copy link

The fact that Prometheus labels are case sensitive leads to user operating errors. I.e. region='NA-US-1' instead of region='na-us-1'.
If the options for those labels would be predefined (i.e. dropdown menu), we would prevent wrong user input.
For labels with a limited range of options, like region, it could be a hard coded list, because i.e. the regions are more or less static. For labels, like cluster or hosts, this is probably not an option.
Alternatively you could get the label values directly from Prometheus.

Initially I thought about just transforming every input to lowercase. But obviously labels don't have to be lowercase. So this is not an option.

Example template: VMware maintenance - VCenterRedundancyLostHAPolicyNotConfigured

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

No branches or pull requests

1 participant