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 upComments using // no longer work #683
Comments
This comment has been minimized.
This comment has been minimized.
|
Yes, we switched to Breaking changes are annoying but squashing them into one release (this and the config changes) will hopefully make it less painful. |
This comment has been minimized.
This comment has been minimized.
|
FWIW, I think we never documented comments anywhere - so they were a hidden feature up until now. Seems like hidden features are discovered anyways... The decision to change the comment format came mainly from a consensus on IRC that this is the more common comment format for config files. |
This comment has been minimized.
This comment has been minimized.
|
I have to correct myself: I just noticed we did mention comments indirectly in examples in this one page, although they were never explicitly documented otherwise: http://prometheus.io/docs/querying/rules/. Sorry about that. |
beorn7
closed this
May 11, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
stapelberg commentedMay 8, 2015
I think commit 3ca11bc broke comment parsing. The following example from http://prometheus.io/docs/querying/rules/ doesn’t pass a rule_checker run anymore:
Using # instead of // works, but I’m confused which syntax should work. Looking at the old lexer.l, it seems to have been // or /* */ for multi-line comments. Why did you switch to # if you did, breaking rules files? :(