u_prometheus

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 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 added in v1.1.2

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

func NewDefaultIncomingHttpConfig added in v1.1.2

func NewDefaultIncomingHttpConfig() *HttpConfig

func NewDefaultOutgoingHttpConfig added in v1.1.2

func NewDefaultOutgoingHttpConfig() *HttpConfig

func NewEmptyHttpConfig added in v1.1.2

func NewEmptyHttpConfig() *HttpConfig

func NewHttpConfig added in v1.1.2

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

func (*HttpConfig) WithHttpConfig added in v1.1.2

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

func (*HttpConfig) WithMethodIgnored added in v1.1.4

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

func (*HttpConfig) WithPathCleanUp added in v1.1.2

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

func (*HttpConfig) WithPathIgnored added in v1.1.2

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

func (*HttpConfig) WithStatusIgnored added in v1.1.2

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