mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
lib/promscrape: formatting fixes for /tarets
page
This commit is contained in:
parent
020917949b
commit
5af2a9ca0e
2 changed files with 10 additions and 9 deletions
|
@ -29,6 +29,8 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space
|
||||||
|
|
||||||
{% func TargetsResponseHTML(jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) %}
|
{% func TargetsResponseHTML(jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<style>
|
<style>
|
||||||
.border{
|
.border{
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
@ -38,12 +40,10 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<html lang="en">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<head>
|
<title>Scrape targets</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
</head>
|
||||||
<title>VictoriaMetrics Database</title>
|
<body>
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Targets</h1>
|
<h1>Targets</h1>
|
||||||
<div id="showTargets" class="btn-group btn-group-toggle" data-toggle="buttons">
|
<div id="showTargets" class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||||
<label class="btn">
|
<label class="btn">
|
||||||
|
@ -92,13 +92,14 @@ job={%q= js.job %}{% space %} ({%d js.upCount %}/{%d js.targetsTotal %} {% space
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{% endfunc %}
|
{% endfunc %}
|
||||||
|
|
||||||
{% func formatLabel(labels []prompbmarshal.Label) %}
|
{% func formatLabel(labels []prompbmarshal.Label) %}
|
||||||
{% for _, label := range labels %}
|
{% for _, label := range labels %}
|
||||||
{% space %} {%s label.Name %}={%q label.Value %} {% space %}
|
{% space %} {%s label.Name %}={%q label.Value %} {% space %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfunc %}
|
{% endfunc %}
|
||||||
|
|
||||||
{% endstripspace %}
|
{% endstripspace %}
|
||||||
|
|
|
@ -163,7 +163,7 @@ func TargetsResponsePlain(jts []jobTargetsStatuses, showOriginLabels bool) strin
|
||||||
//line lib/promscrape/targets_response.qtpl:30
|
//line lib/promscrape/targets_response.qtpl:30
|
||||||
func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) {
|
func StreamTargetsResponseHTML(qw422016 *qt422016.Writer, jts []jobTargetsStatuses, redirectPath string, onlyUnhealthy bool) {
|
||||||
//line lib/promscrape/targets_response.qtpl:30
|
//line lib/promscrape/targets_response.qtpl:30
|
||||||
qw422016.N().S(`<!DOCTYPE html><style>.border{border-collapse: collapse;border: 1px solid black;}.table-row:hover{background-color: #f5f5f5;}</style><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>VictoriaMetrics Database</title></head><body><h1>Targets</h1><div id="showTargets" class="btn-group btn-group-toggle" data-toggle="buttons"><label class="btn"><input type="radio" name="targets" id="all-targets" autocomplete="off" onclick="location.href='`)
|
qw422016.N().S(`<!DOCTYPE html><html lang="en"><head><style>.border{border-collapse: collapse;border: 1px solid black;}.table-row:hover{background-color: #f5f5f5;}</style><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Scrape targets</title></head><body><h1>Targets</h1><div id="showTargets" class="btn-group btn-group-toggle" data-toggle="buttons"><label class="btn"><input type="radio" name="targets" id="all-targets" autocomplete="off" onclick="location.href='`)
|
||||||
//line lib/promscrape/targets_response.qtpl:50
|
//line lib/promscrape/targets_response.qtpl:50
|
||||||
qw422016.N().S(redirectPath)
|
qw422016.N().S(redirectPath)
|
||||||
//line lib/promscrape/targets_response.qtpl:50
|
//line lib/promscrape/targets_response.qtpl:50
|
||||||
|
|
Loading…
Reference in a new issue