metrics

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides prometheus metrics for fault injection operations.

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalRequests = promauto.With(prometheusbpint.GlobalRegistry).NewCounterVec(prometheus.CounterOpts{
		Name: "faultbp_fault_requests_total",
		Help: "Total count of requests seen by the fault injection middleware.",
	}, []string{
		clientNameLabel,
		serviceLabel,
		hostLabel,
		methodLabel,
		protocolLabel,
		statusLabel,
		delayInjectedLabel,
		abortInjectedLabel,
	})
)

Functions

This section is empty.

Types

type FaultStatus

type FaultStatus int
const (
	Success FaultStatus = iota
	HeaderLookupError
	ConfigParsingError
	NoMatchingConfig
	DelayError
)

func (FaultStatus) String

func (fs FaultStatus) String() string

Jump to

Keyboard shortcuts

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