Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PromReadURL is the url for remote prom read handler PromReadURL = handler.RoutePrefixV1 + "/prom/remote/read" // PromReadHTTPMethod is the HTTP method used with this resource. PromReadHTTPMethod = http.MethodPost )
View Source
const ( // PromWriteURL is the url for the prom write handler PromWriteURL = handler.RoutePrefixV1 + "/prom/remote/write" // PromWriteHTTPMethod is the HTTP method used with this resource. PromWriteHTTPMethod = http.MethodPost )
Variables ¶
This section is empty.
Functions ¶
func NewPromReadHandler ¶
NewPromReadHandler returns a new instance of handler.
func NewPromWriteHandler ¶
func NewPromWriteHandler( store storage.Storage, downsampler downsample.Downsampler, scope tally.Scope, ) (http.Handler, error)
NewPromWriteHandler returns a new instance of handler.
Types ¶
type PromReadHandler ¶
type PromReadHandler struct {
// contains filtered or unexported fields
}
PromReadHandler represents a handler for prometheus read endpoint.
func (*PromReadHandler) ServeHTTP ¶
func (h *PromReadHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PromWriteHandler ¶
type PromWriteHandler struct {
// contains filtered or unexported fields
}
PromWriteHandler represents a handler for prometheus write endpoint.
func (*PromWriteHandler) ServeHTTP ¶
func (h *PromWriteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.