Add link to /metrics and startup message.
This commit is contained in:
@@ -189,6 +189,8 @@ var indexTmpl = template.Must(template.New("index").Parse(`<!doctype html>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Debugging info for ZFS replication exporter</h1>
|
||||
<p>Metrics at <a href="/metrics">/metrics</a>
|
||||
{{with .}}
|
||||
{{range $host, $snapStats := .}}
|
||||
<h2>{{$host}}</h2>
|
||||
<table class="table">
|
||||
@@ -208,6 +210,10 @@ var indexTmpl = template.Must(template.New("index").Parse(`<!doctype html>
|
||||
{{end}}
|
||||
</table>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<h2>Waiting for first fetch of metrics</h2>
|
||||
<p>Please refresh later.</p>
|
||||
{{end}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user