From 5af2a9ca0e47afc53cd01664ddbab94168f3d376 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 15 Dec 2020 11:58:53 +0200 Subject: [PATCH] lib/promscrape: formatting fixes for `/tarets` page --- lib/promscrape/targets_response.qtpl | 17 +++++++++-------- lib/promscrape/targets_response.qtpl.go | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/promscrape/targets_response.qtpl b/lib/promscrape/targets_response.qtpl index cce1ae6c5..8729335b1 100644 --- a/lib/promscrape/targets_response.qtpl +++ b/lib/promscrape/targets_response.qtpl @@ -29,6 +29,8 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space {% func TargetsResponseHTML(jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) %} + + - - - - VictoriaMetrics Database - - + + Scrape targets + +

Targets

{% endfor %} - + {% endfunc %} {% func formatLabel(labels []prompbmarshal.Label) %} {% for _, label := range labels %} - {% space %} {%s label.Name %}={%q label.Value %} {% space %} + {% space %} {%s label.Name %}={%q label.Value %} {% space %} {% endfor %} {% endfunc %} + {% endstripspace %} diff --git a/lib/promscrape/targets_response.qtpl.go b/lib/promscrape/targets_response.qtpl.go index 34ecfb8c4..1d7ed7a2e 100644 --- a/lib/promscrape/targets_response.qtpl.go +++ b/lib/promscrape/targets_response.qtpl.go @@ -163,7 +163,7 @@ func TargetsResponsePlain(jts []jobTargetsStatuses, showOriginLabels bool) strin //line lib/promscrape/targets_response.qtpl:30 func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) { //line lib/promscrape/targets_response.qtpl:30 - qw422016.N().S(`VictoriaMetrics Database

Targets