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 %}
@@ -75,7 +75,7 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space
{% if onlyUnhealthy && ts.up %} {% continue %} {% endif %}
- {%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 %} |
{% 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(`