diff --git a/lib/promscrape/targets_response.qtpl b/lib/promscrape/targets_response.qtpl index f1fa91f9b5..cce1ae6c59 100644 --- a/lib/promscrape/targets_response.qtpl +++ b/lib/promscrape/targets_response.qtpl @@ -18,7 +18,7 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space {% space %} labels={%s= labels %} {% if showOriginLabels %},{% space %} originalLabels={%s= ol %}{% endif %}, {% space %} last_scrape={%f.3 ts.lastScrapeTime.Seconds() %}s {% space %} ago, - {% space %} scrape_duration={%f.3 float64(ts.scrapeDuration.Seconds()) %}s, + {% space %} scrape_duration={%f.3 ts.scrapeDuration.Seconds() %}s, {% space %} error={%q= ts.error %} {% newline %} {% endfor %} @@ -57,7 +57,7 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space {% for _,js :=range jts %}

- {%q= js.job %} ({%d js.upCount %}/{%d js.targetsTotal %} up) + {%q js.job %} ({%d js.upCount %}/{%d js.targetsTotal %} up)

@@ -75,7 +75,7 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space {% if onlyUnhealthy && ts.up %} {% continue %} {% endif %} - - - + + + {% endfor %} diff --git a/lib/promscrape/targets_response.qtpl.go b/lib/promscrape/targets_response.qtpl.go index b0472bddbf..34ecfb8c4d 100644 --- a/lib/promscrape/targets_response.qtpl.go +++ b/lib/promscrape/targets_response.qtpl.go @@ -112,7 +112,7 @@ func StreamTargetsResponsePlain(qw422016 *qt422016.Writer, jts []jobTargetsStatu //line lib/promscrape/targets_response.qtpl:21 qw422016.N().S(`scrape_duration=`) //line lib/promscrape/targets_response.qtpl:21 - qw422016.N().FPrec(float64(ts.scrapeDuration.Seconds()), 3) + qw422016.N().FPrec(ts.scrapeDuration.Seconds(), 3) //line lib/promscrape/targets_response.qtpl:21 qw422016.N().S(`s,`) //line lib/promscrape/targets_response.qtpl:22 @@ -193,11 +193,11 @@ func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatus //line lib/promscrape/targets_response.qtpl:57 qw422016.N().S(`

`) //line lib/promscrape/targets_response.qtpl:60 - qw422016.N().Q(js.job) + qw422016.E().Q(js.job) //line lib/promscrape/targets_response.qtpl:60 qw422016.N().S(`(`) //line lib/promscrape/targets_response.qtpl:60 @@ -219,11 +219,11 @@ func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatus //line lib/promscrape/targets_response.qtpl:75 qw422016.N().S(`

`) //line lib/promscrape/targets_response.qtpl:90
- {%s= ts.endpoint %}
+ {%s ts.endpoint %}
{% if ts.up %}UP{% else %}DOWN{% endif %} @@ -83,9 +83,9 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space {%= formatLabel(ts.labels) %} {%s ts.lastScrapeTime.String() %} {% space %} ago{%s ts.scrapeDuration.String() %}{%s= ts.error %}{%f.3 ts.lastScrapeTime.Seconds() %}s {% space %} ago{%f.3 ts.scrapeDuration.Seconds() %}s{%s ts.error %}
`) //line lib/promscrape/targets_response.qtpl:78 - qw422016.N().S(ts.endpoint) + qw422016.E().S(ts.endpoint) //line lib/promscrape/targets_response.qtpl:78 qw422016.N().S(`
`) //line lib/promscrape/targets_response.qtpl:81 @@ -253,17 +253,19 @@ func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatus //line lib/promscrape/targets_response.qtpl:84 qw422016.N().S(``) //line lib/promscrape/targets_response.qtpl:86 - qw422016.E().S(ts.lastScrapeTime.String()) + qw422016.N().FPrec(ts.lastScrapeTime.Seconds(), 3) +//line lib/promscrape/targets_response.qtpl:86 + qw422016.N().S(`s`) //line lib/promscrape/targets_response.qtpl:86 qw422016.N().S(` `) //line lib/promscrape/targets_response.qtpl:86 qw422016.N().S(`ago`) //line lib/promscrape/targets_response.qtpl:87 - qw422016.E().S(ts.scrapeDuration.String()) + qw422016.N().FPrec(ts.scrapeDuration.Seconds(), 3) //line lib/promscrape/targets_response.qtpl:87 - qw422016.N().S(``) + qw422016.N().S(`s`) //line lib/promscrape/targets_response.qtpl:88 - qw422016.N().S(ts.error) + qw422016.E().S(ts.error) //line lib/promscrape/targets_response.qtpl:88 qw422016.N().S(`