From a518150bfeeac1c440492fea7fa135a3f4140cef Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 3 Feb 2019 17:13:24 -0800 Subject: [PATCH] Add link to /metrics and startup message. --- zfs_replication_exporter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zfs_replication_exporter.go b/zfs_replication_exporter.go index bdd4ecf..e496e0a 100644 --- a/zfs_replication_exporter.go +++ b/zfs_replication_exporter.go @@ -189,6 +189,8 @@ var indexTmpl = template.Must(template.New("index").Parse(`

Debugging info for ZFS replication exporter

+

Metrics at /metrics +{{with .}} {{range $host, $snapStats := .}}

{{$host}}

@@ -208,6 +210,10 @@ var indexTmpl = template.Must(template.New("index").Parse(` {{end}}
{{end}} +{{else}} +

Waiting for first fetch of metrics

+

Please refresh later.

+{{end}}