Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport optional ConfigMap volumes for alerting rules #4480
Comments
This comment has been minimized.
This comment has been minimized.
|
In general the project prefers to fail hard on configuration errors (such as using a directory where the application expects a file) rather than silently catching the error and expecting the user to notice it. |
This comment has been minimized.
This comment has been minimized.
|
Understood, but the optional volume is a great feature which cannot be used right now. Anyway, I get your point and I have handled the situation by ensuring that the rules configMap shall exist before mounting it. |
gouthamve
closed this
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sl4dy commentedAug 8, 2018
Proposal
Support optional ConfigMap volumes for alerting rules
We provide ConfigMaps with alerting rules in Helm chart of particular application. However, we need to make Prometheus aware of such ConfigMaps prior to creating the particular Helm chart containing the given ConfigMap. I have tried to mark the ConfigMap volume as optional:
However Prometheus fails to start:
It would be great if Prometheus can ignore the file if it is directory - caused by the optional parameter in the volume.