From fbcf41c90b3d58eb91044f5ae04d88dec4932b9d Mon Sep 17 00:00:00 2001 From: Tobias Guggenmos Date: Fri, 25 Oct 2019 12:01:59 +0200 Subject: [PATCH] doc: Add documentation about comments in PromQL (#6198) * Add documentation about comments Signed-off-by: Tobias Guggenmos --- docs/querying/basics.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/querying/basics.md b/docs/querying/basics.md index 65748d9f0..9ac37c041 100644 --- a/docs/querying/basics.md +++ b/docs/querying/basics.md @@ -188,6 +188,12 @@ in detail in the [expression language operators](operators.md) page. Prometheus supports several functions to operate on data. These are described in detail in the [expression language functions](functions.md) page. +## Comments + +PromQL supports line comments that start with `#`. Example: + + # This is a comment + ## Gotchas ### Staleness