Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PromReadURL is the url for remote prom read handler
PromReadURL = "/api/v1/prom/remote/read"
)
View Source
const (
// PromWriteURL is the url for the prom write handler
PromWriteURL = "/api/v1/prom/remote/write"
)
Variables ¶
This section is empty.
Functions ¶
func NewPromReadHandler ¶
NewPromReadHandler 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.