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
Click to show internal directories.
Click to hide internal directories.