Skip to content

doc: Add documentation about comments in PromQL#6198

Merged
brian-brazil merged 2 commits intoprometheus:masterfrom
slrtbtfs:comments
Oct 25, 2019
Merged

doc: Add documentation about comments in PromQL#6198
brian-brazil merged 2 commits intoprometheus:masterfrom
slrtbtfs:comments

Conversation

@slrtbtfs
Copy link
Contributor

Signed-off-by: Tobias Guggenmos tguggenm@redhat.com

TIL that prometheus actually supports comments, while reading the parser code. This is also mentioned in #2855.

This PR documents this.

However this feature isn't tested in the parser tests, so it might make sense to add such tests before telling everybody about it.

Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
@brian-brazil
Copy link
Contributor

Adding tests first would be good, and I'd put this down the end of the docs as it's quite rarely used.

Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
@brian-brazil brian-brazil merged commit fbcf41c into prometheus:master Oct 25, 2019
@brian-brazil
Copy link
Contributor

Thanks!

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.

2 participants