u_prometheus

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricIncomingHttpRequest *prometheus.HistogramVec
	MetricOutgoingHttpRequest *prometheus.HistogramVec
)

Functions

This section is empty.

Types

type HttpConfig

type HttpConfig struct {
	PathCleanUpMap   map[*regexp.Regexp]string
	PathIgnoredMap   map[string]bool
	StatusIgnoredMap map[int]bool
	MethodIgnoreMap  map[string]bool
}

func NewDefaultIncomingHttpConfig

func NewDefaultIncomingHttpConfig() *HttpConfig

func NewDefaultOutgoingHttpConfig

func NewDefaultOutgoingHttpConfig() *HttpConfig

func NewEmptyHttpConfig

func NewEmptyHttpConfig() *HttpConfig

func NewHttpConfig

func NewHttpConfig(
	pathCleanUpMap map[*regexp.Regexp]string,
	pathIgnoredMap map[string]bool,
	statusIgnoredMap map[int]bool,
	methodIgnoredMap map[string]bool,
) *HttpConfig

func (*HttpConfig) WithHttpConfig

func (c *HttpConfig) WithHttpConfig(conf HttpConfig) *HttpConfig

func (*HttpConfig) WithMethodIgnored

func (c *HttpConfig) WithMethodIgnored(methodIgnoredMap map[string]bool) *HttpConfig

func (*HttpConfig) WithPathCleanUp

func (c *HttpConfig) WithPathCleanUp(pathCleanUpMap map[*regexp.Regexp]string) *HttpConfig

func (*HttpConfig) WithPathIgnored

func (c *HttpConfig) WithPathIgnored(pathIgnoredMap map[string]bool) *HttpConfig

func (*HttpConfig) WithStatusIgnored

func (c *HttpConfig) WithStatusIgnored(statusIgnoredMap map[int]bool) *HttpConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL