Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PromDebugURL is the url for the Prom and m3query debugging tool PromDebugURL = handler.RoutePrefixV1 + "/debug/validate_query" // PromDebugHTTPMethod is the HTTP method used with this resource. PromDebugHTTPMethod = http.MethodPost )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromDebugHandler ¶
type PromDebugHandler struct {
// contains filtered or unexported fields
}
PromDebugHandler represents a handler for prometheus debug endpoint, which allows users to compare Prometheus results vs m3 query results.
func NewPromDebugHandler ¶
func NewPromDebugHandler( h *native.PromReadHandler, fetchOptionsBuilder handler.FetchOptionsBuilder, lookbackDuration time.Duration, instrumentOpts instrument.Options, ) *PromDebugHandler
NewPromDebugHandler returns a new instance of handler.
func (*PromDebugHandler) ServeHTTP ¶
func (h *PromDebugHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.