prometheus/web
Simon Pasquier 83325c8d82 web: replace deprecated InstrumentHandler() (#3862)
* web: replace deprecated InstrumentHandler()

This change replaces the deprecated InstrumentHandler function by the
equivalent functions from the promhttp package.

The following metrics are removed:

* http_request_duration_microseconds (Summary).
* http_request_size_bytes (Summary).
* http_requests_total (Counter).

And the following metrics are added instead:

* prometheus_http_request_duration_seconds (Histogram).
* prometheus_http_response_size_bytes (Histogram).
* promhttp_metric_handler_requests_in_flight (Gauge).
* promhttp_metric_handler_requests_total (Counter).

* Update github.com/prometheus/common/route package

* web: refactor using the new prometheus/common/route package
2018-03-21 08:16:16 +00:00
..
api web: replace deprecated InstrumentHandler() (#3862) 2018-03-21 08:16:16 +00:00
ui Make show annotations checkbox match query history checkbox (#3936) 2018-03-09 14:39:28 +01:00
federate_test.go use httptest.NewRequest, remove http.ReadRequest (#3557) 2017-12-07 23:52:50 +08:00
federate.go *: implement query params 2018-02-13 12:17:22 +01:00
web_test.go fatalf is not thread safe so using panic instead (#3680) 2018-01-13 10:37:38 +00:00
web.go web: replace deprecated InstrumentHandler() (#3862) 2018-03-21 08:16:16 +00:00