mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 14:09:41 -08:00
format markdown code block (#5594)
Signed-off-by: bevisy <binbin36520@gmail.com>
This commit is contained in:
parent
2de8ba4708
commit
2548271e0f
|
@ -60,7 +60,7 @@ formatting of results, and linking to the [expression browser](https://prometheu
|
||||||
|
|
||||||
```go
|
```go
|
||||||
{{ with printf "node_memory_MemTotal{job='node',instance='%s'}" .Params.instance | query }}
|
{{ with printf "node_memory_MemTotal{job='node',instance='%s'}" .Params.instance | query }}
|
||||||
{{ . | first | value | humanize1024}}B
|
{{ . | first | value | humanize1024 }}B
|
||||||
{{ end }}
|
{{ end }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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…
Reference in a new issue