summaryrefslogtreecommitdiff
path: root/metrics.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-11-13 02:15:55 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-11-13 02:15:55 +0100
commit2985de6d78429edf9108552d1b175bd52998741a (patch)
treea89e53527cbba1527c942f0117e966e4c0e11cf8 /metrics.go
parentc306efd69791e34a79c404d717a1b286888407be (diff)
Rename metrics
Diffstat (limited to 'metrics.go')
-rw-r--r--metrics.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/metrics.go b/metrics.go
new file mode 100644
index 0000000..333a9fd
--- /dev/null
+++ b/metrics.go
@@ -0,0 +1,12 @@
+package main
+
+import (
+ "net/http"
+ _ "net/http/pprof"
+
+ "github.com/prometheus/client_golang/prometheus"
+)
+
+func init() {
+ http.Handle("/metrics", prometheus.Handler())
+}