Browse Source

format markdown code block (#5594)

Signed-off-by: bevisy <binbin36520@gmail.com>
pull/5597/head
Bevisy 6 years ago committed by beorn7
parent
commit
2548271e0f
  1. 2
      docs/configuration/template_examples.md

2
docs/configuration/template_examples.md

@ -80,7 +80,7 @@ If accessed as `console.html?instance=hostname`, `.Params.instance` will evaluat
<td>Transmitted</td> <td>Transmitted</td>
<td>{{ 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}}</td> <td>{{ 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}}</td>
</tr>{{ end }} </tr>{{ end }}
<table> </table>
``` ```
Here we iterate over all network devices and display the network traffic for each. Here we iterate over all network devices and display the network traffic for each.

Loading…
Cancel
Save