From 5f4dfb41037b8f93c5f916f6c33bfa1bef33877c Mon Sep 17 00:00:00 2001 From: ArugakiWei Date: Tue, 30 Oct 2018 16:51:34 +0800 Subject: [PATCH] fix typo line 92 promethues -> prometheus (#348) Signed-off-by: arugakiWei --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8c4d01fd..9f5d16e3 100644 --- a/main.go +++ b/main.go @@ -89,7 +89,7 @@ func handler(w http.ResponseWriter, r *http.Request) { registry := prometheus.NewRegistry() collector := collector{target: target, module: module} registry.MustRegister(collector) - // Delegate http serving to Promethues client library, which will call collector.Collect. + // Delegate http serving to Prometheus client library, which will call collector.Collect. h := promhttp.HandlerFor(registry, promhttp.HandlerOpts{}) h.ServeHTTP(w, r) duration := float64(time.Since(start).Seconds())