Prometheus: FR: Add commenting to promQL

Created on 16 Jun 2017  路  3Comments  路  Source: prometheus/prometheus

Feature request: Add some means of commenting or disabling portions of a query in promql.

This is especially useful when using the /graph playground to explore and compose queries. Currently one almost needs to keep a separate text file or state somewhere to compose query snippets. It would be very helpful if i could "comment out" portions of a query while trying to construct a query or debug one that's not working as expected.

Most helpful comment

Apparently this already exists: # will comment until end-of-line.

All 3 comments

I don't think comments within a promql expression is something that we should support, I can see it causing confusion.

Apparently this already exists: # will comment until end-of-line.

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.

Was this page helpful?
0 / 5 - 0 ratings