diff --git a/web/static/css/prometheus.css b/web/static/css/prometheus.css index d801925acc..623fd743cd 100644 --- a/web/static/css/prometheus.css +++ b/web/static/css/prometheus.css @@ -17,3 +17,7 @@ th.job_header { .literal_output td { font-family: monospace; } + +.cursor-pointer { + cursor: pointer; +} diff --git a/web/templates/status.html b/web/templates/status.html index c532fc9248..9c12cd7e64 100644 --- a/web/templates/status.html +++ b/web/templates/status.html @@ -56,9 +56,16 @@ - - {{or (stripLabels .BaseLabels "job" "instance") "{}"}} - + + {{$baseLabels := stripLabels .BaseLabels "job" "instance"}} + {{if $baseLabels}} + {{range $label, $value := $baseLabels}} + {{$label}}="{{$value}}" + {{end}} + {{else}} + none + {{end}} + {{if .Status.LastScrape.IsZero}}Never{{else}}{{since .Status.LastScrape}} ago{{end}}