Documentation ¶
Index ¶
- Constants
- func NewPromReadHandler(engine *executor.Engine, scope tally.Scope, ...) http.Handler
- func NewPromSeriesMatchHandler(storage storage.Storage, tagOptions models.TagOptions) http.Handler
- func NewPromWriteHandler(downsamplerAndWriter ingest.DownsamplerAndWriter, tagOptions models.TagOptions, ...) (http.Handler, error)
- func NewTagValuesHandler(storage storage.Storage) http.Handler
- type PromReadHandler
- type PromSeriesMatchHandler
- type PromWriteHandler
- type TagValuesHandler
- type TagValuesResponse
Constants ¶
View Source
const ( // PromSeriesMatchURL is the url for remote prom series matcher handler. PromSeriesMatchURL = handler.RoutePrefixV1 + "/series" // PromSeriesMatchHTTPMethod is the HTTP method used with this resource. PromSeriesMatchHTTPMethod = http.MethodGet )
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 ( // TagValuesURL is the url for tag values. TagValuesURL = handler.RoutePrefixV1 + "/label/{" + prometheus.NameReplace + "}/values" // TagValuesHTTPMethod is the HTTP method used with this resource. TagValuesHTTPMethod = http.MethodGet )
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 ¶
func NewPromReadHandler(engine *executor.Engine, scope tally.Scope, timeoutOpts *prometheus.TimeoutOpts) http.Handler
NewPromReadHandler returns a new instance of handler.
func NewPromSeriesMatchHandler ¶ added in v0.5.0
func NewPromSeriesMatchHandler( storage storage.Storage, tagOptions models.TagOptions, ) http.Handler
NewPromSeriesMatchHandler returns a new instance of handler.
func NewPromWriteHandler ¶
func NewPromWriteHandler( downsamplerAndWriter ingest.DownsamplerAndWriter, tagOptions models.TagOptions, 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 PromSeriesMatchHandler ¶ added in v0.5.0
type PromSeriesMatchHandler struct {
// contains filtered or unexported fields
}
PromSeriesMatchHandler represents a handler for prometheus series matcher endpoint.
func (*PromSeriesMatchHandler) ServeHTTP ¶ added in v0.5.0
func (h *PromSeriesMatchHandler) 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)
type TagValuesHandler ¶ added in v0.5.0
type TagValuesHandler struct {
// contains filtered or unexported fields
}
TagValuesHandler represents a handler for search tags endpoint.
func (*TagValuesHandler) ServeHTTP ¶ added in v0.5.0
func (h *TagValuesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TagValuesResponse ¶ added in v0.5.0
type TagValuesResponse struct {
Results storage.CompleteTagsResult `json:"results,omitempty"`
}
TagValuesResponse is the response that gets returned to the user
Click to show internal directories.
Click to hide internal directories.