From 5c3e436d71b0c917a3f2d53c49059bee45a37f3c Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 25 Apr 2018 16:43:57 +0100 Subject: plugin/autopath: per server metrics (#1730) Implement per server metrics in autopath; also don't export the metric. Updated readme as well. --- plugin/autopath/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/autopath/setup.go') diff --git a/plugin/autopath/setup.go b/plugin/autopath/setup.go index 6015c7460..11c2b815d 100644 --- a/plugin/autopath/setup.go +++ b/plugin/autopath/setup.go @@ -26,7 +26,7 @@ func setup(c *caddy.Controller) error { } c.OnStartup(func() error { - once.Do(func() { metrics.MustRegister(c, AutoPathCount) }) + once.Do(func() { metrics.MustRegister(c, autoPathCount) }) return nil }) -- cgit v1.2.3