Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromAdapter ¶
func PromAdapter(handler http.Handler) ghttp.HandlerFunc
PromAdapter wrappers the standard http.Handler to ghttp.HandlerFunc
func PromMiddleWare ¶
PromMiddleWare a middleware for exporting some Web metrics
Types ¶
type PromOpts ¶
type PromOpts struct { ExcludeRegexStatus string ExcludeRegexEndpoint string ExcludeRegexMethod string EndpointLabelMappingFn RequestLabelMappingFn }
PromOpts represents the Prometheus middleware Options. It is used for filtering labels by regex.
type RequestLabelMappingFn ¶
Click to show internal directories.
Click to hide internal directories.