mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
web: display job label in targets page
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
f34b2602e1
commit
147f2061d5
File diff suppressed because one or more lines are too long
|
@ -54,8 +54,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="labels">
|
<td class="labels">
|
||||||
<span class="cursor-pointer" data-toggle="tooltip" title="" data-html=true data-original-title="<b>Before relabeling:</b>{{range $k, $v := .DiscoveredLabels.Map}}<br>{{$ev := $v | html}}{{$k}}="{{$ev}}"{{end}}">
|
<span class="cursor-pointer" data-toggle="tooltip" title="" data-html=true data-original-title="<b>Before relabeling:</b>{{range $k, $v := .DiscoveredLabels.Map}}<br>{{$ev := $v | html}}{{$k}}="{{$ev}}"{{end}}">
|
||||||
{{$labels := stripLabels .Labels.Map "job"}}
|
{{range $label, $value := .Labels.Map }}
|
||||||
{{range $label, $value := $labels}}
|
|
||||||
<span class="label label-primary">{{$label}}="{{$value}}"</span>
|
<span class="label label-primary">{{$label}}="{{$value}}"</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="label label-default">none</span>
|
<span class="label label-default">none</span>
|
||||||
|
|
Loading…
Reference in a new issue