From 2548271e0f42ffbf67e8b9682b78bf100edeb052 Mon Sep 17 00:00:00 2001 From: Bevisy Date: Sat, 25 May 2019 18:28:50 +0800 Subject: [PATCH] format markdown code block (#5594) Signed-off-by: bevisy --- docs/configuration/template_examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/template_examples.md b/docs/configuration/template_examples.md index 8af4eae043..672295343f 100644 --- a/docs/configuration/template_examples.md +++ b/docs/configuration/template_examples.md @@ -60,7 +60,7 @@ formatting of results, and linking to the [expression browser](https://prometheu ```go {{ with printf "node_memory_MemTotal{job='node',instance='%s'}" .Params.instance | query }} - {{ . | first | value | humanize1024}}B + {{ . | first | value | humanize1024 }}B {{ end }} ``` @@ -80,7 +80,7 @@ If accessed as `console.html?instance=hostname`, `.Params.instance` will evaluat Transmitted {{ with printf "rate(node_network_transmit_bytes{job='node',instance='%s',device='%s'}[5m])" .Labels.instance .Labels.device | query }}{{ . | first | value | humanize }}B/s{{end}} {{ end }} - +
``` Here we iterate over all network devices and display the network traffic for each.