Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PromReadURL is the url for native prom read handler, this matches the // default URL for the query range endpoint found on a Prometheus server PromReadURL = handler.RoutePrefixV1 + "/query_range" // PromReadHTTPMethod is the HTTP method used with this resource. PromReadHTTPMethod = http.MethodGet )
Variables ¶
This section is empty.
Functions ¶
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 ReadResponse ¶
ReadResponse is the response that gets returned to the user
Click to show internal directories.
Click to hide internal directories.