Documentation ¶
Index ¶
- func Delete(ms storage.MetricStore) 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. If only a job is specified in the query, all metrics for that job are deleted. If a job and an instance is specified, all metrics for that job/instance combination are deleted.
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.
Click to show internal directories.
Click to hide internal directories.