prometheus/docs/querying
Julius Volz 1b818b03d5 Clean up codeboxes and headings in docs
The new docs site will have syntax highlighting, so this adds language tags
to code boxes that are currently missing them. I didn't add `promql` as a
language yet since the highlighter doesn't support it yet, plus a lot of
the PromQL codeboxes in our docs aren't strictly valid PromQL, they are
more like multiple expressions listed in the same code box on multiple
lines. So I'm leaving that for sometime later.

In the HTTP API page, I moved the curl examples from the JSON codeboxes to
their own ones above the JSON output. I considered putting an "Output:"
text between the curl + JSON output, but I think the way it currently looks
without it is probably fine.

I also fixed a number of headings which were at the wrong level relative to
their nesting in the document.

I also removed `go` as a language from the Go template language examples,
because the Go template language isn't Go at all.

I also adjusted the indent on one codebox to be more reasonable (2 spaces
instead of 8).

And then finally, my editor made a bunch of whitespace changes
automatically, like removing trailing spaces.

Signed-off-by: Julius Volz <julius.volz@gmail.com>

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2025-05-13 15:38:29 +02:00
..
api.md Clean up codeboxes and headings in docs 2025-05-13 15:38:29 +02:00
basics.md docs: Update PromQL documentation to match the native histogram spec 2025-02-07 22:47:59 +01:00
examples.md docs: add regex section in querying basics 2024-11-24 22:03:04 +01:00
functions.md promql: histogram_stddev and histogram_stdvar should use arithmetic mean for custom buckets 2025-04-24 14:48:58 +02:00
index.md Import querying documentation from prometheus/docs 2017-10-26 22:36:47 +02:00
operators.md Clarify sorting behaviour of topk and bottomk. 2025-02-11 14:55:39 +11:00
remote_read_api.md storage: require selectors to always return matching results 2024-10-04 12:10:16 +02:00