Use the new prometheus http API (#71)

* Use the new prometheus http API

The new recommended way of using the prometheus http handler is through
the promhttp package:

https://github.com/prometheus/client_golang/releases/tag/v0.8.0 (Separated
HTTP exposition, allowing custom HTTP handlers (package promhttp))

* ListenAndServe always returns a non-nil error

* updated vendored dependencies
This commit is contained in:
Jürgen Hötzel
2017-05-01 00:12:05 +02:00
committed by Martin Lindhe
parent 9d515255a6
commit 6bb522b6c3
20 changed files with 1089 additions and 219 deletions

12
vendor/vendor.json vendored
View File

@@ -45,10 +45,16 @@
"revisionTime": "2016-04-24T11:30:07Z"
},
{
"checksumSHA1": "Ph+qmEo8RdBKBHZUhx0y5Oyk/U0=",
"checksumSHA1": "j2hUoBB8CsFPt3UzMpyOO23U54k=",
"path": "github.com/prometheus/client_golang/prometheus",
"revision": "5636dc67ae776adf5590da7349e70fbb9559972d",
"revisionTime": "2016-09-16T18:03:40Z"
"revision": "7d9484283ebefa862b5b7727d4344cfdf9a0d138",
"revisionTime": "2017-04-25T21:35:58Z"
},
{
"checksumSHA1": "JGmKXK7/1yJTc/Fzl8+P/M/nWc8=",
"path": "github.com/prometheus/client_golang/prometheus/promhttp",
"revision": "7d9484283ebefa862b5b7727d4344cfdf9a0d138",
"revisionTime": "2017-04-25T21:35:58Z"
},
{
"checksumSHA1": "DvwvOlPNAgRntBzt3b3OSRMS2N4=",