Documentation ¶
Index ¶
- func Delete(ms storage.MetricStore) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func LegacyDelete(ms storage.MetricStore) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func LegacyPush(ms storage.MetricStore, replace bool) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func Push(ms storage.MetricStore, replace bool) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func Status(ms storage.MetricStore, assetFunc func(string) ([]byte, error), ...) func(http.ResponseWriter, *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ms storage.MetricStore) func(http.ResponseWriter, *http.Request, httprouter.Params)
Delete returns a handler that accepts delete requests.
The returned handler is already instrumented for Prometheus.
func LegacyDelete ¶
func LegacyDelete(ms storage.MetricStore) func(http.ResponseWriter, *http.Request, httprouter.Params)
LegacyDelete returns a handler that accepts delete requests. It deals with the deprecated API.
The returned handler is already instrumented for Prometheus.
func LegacyPush ¶
func LegacyPush( ms storage.MetricStore, replace bool, ) func(http.ResponseWriter, *http.Request, httprouter.Params)
LegacyPush returns an http.Handler which accepts samples over HTTP and stores them in the MetricStore. It uses the deprecated API (expecting a 'job' parameter and an optional 'instance' parameter). If replace is true, all metrics for the job and instance given by the request are deleted before new ones are stored.
The returned handler is already instrumented for Prometheus.
func Push ¶
func Push( ms storage.MetricStore, replace bool, ) func(http.ResponseWriter, *http.Request, httprouter.Params)
Push returns an http.Handler which accepts samples over HTTP and stores them in the MetricStore. If replace is true, all metrics for the job and instance given by the request are deleted before new ones are stored.
The returned handler is already instrumented for Prometheus.
Types ¶
This section is empty.