summaryrefslogtreecommitdiff
path: root/prometheus.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-16 15:29:24 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-16 15:29:24 +0200
commit7f4bfb126360c9f174beb4b00761a9f26c6bc337 (patch)
treea6049f2ecc5772e6381e30ebb6a6ec974e0b4d9c /prometheus.go
parent232c466c242cd6c2215570b9635efc731cafd194 (diff)
Add prometheus
Diffstat (limited to 'prometheus.go')
-rw-r--r--prometheus.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/prometheus.go b/prometheus.go
new file mode 100644
index 0000000..c9ac835
--- /dev/null
+++ b/prometheus.go
@@ -0,0 +1,11 @@
+package main
+
+import (
+ "net/http"
+
+ "github.com/prometheus/client_golang/prometheus"
+)
+
+func init() {
+ http.Handle("/metrics", prometheus.Handler())
+}