Browse Source

Always show instance label on target page. (#2062)

pull/2080/head
Matthias Rampke 8 years ago committed by Tobias Schmidt
parent
commit
4f96d28e60
  1. 142
      web/ui/bindata.go
  2. 2
      web/ui/templates/targets.html

142
web/ui/bindata.go

File diff suppressed because one or more lines are too long

2
web/ui/templates/targets.html

@ -33,7 +33,7 @@
</td>
<td>
<span class="cursor-pointer" data-toggle="tooltip" title="" data-html=true data-original-title="<b>Before relabeling:</b>{{range $k, $v := .MetaLabels}}<br>{{$k | html | html}}=&quot;{{$v | html | html}}&quot;{{end}}">
{{$labels := stripLabels .Labels "job" "instance"}}
{{$labels := stripLabels .Labels "job"}}
{{range $label, $value := $labels}}
<span class="label label-primary">{{$label}}="{{$value}}"</span>
{{else}}

Loading…
Cancel
Save