Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 4.37 KB

opossum-prometheus.circuitbreakermetricsoptions.md

File metadata and controls

27 lines (20 loc) · 4.37 KB

Home > @iamelevich/opossum-prometheus > CircuitBreakerMetricsOptions

CircuitBreakerMetricsOptions interface

Circuit breaker metrics options

Signature:

export interface CircuitBreakerMetricsOptions

Properties

Property Modifiers Type Description
circuitBreakers? CircuitBreaker[] (Optional) List of circuit breakers to collect metrics for
client typeof PromClient Prometheus client
customLabels? Record<string, string> (Optional) Custom labels
enabled? boolean (Optional) If disabled - will not collect metrics
eventsBlacklist? string[] (Optional) List of opossum circuit breaker events to ignore
exposePerformanceMetrics? boolean (Optional) Expose performance metrics circuit_breaker_performance for events success and failure
overrides? CircuitBreakerMetricsOptionsOverrides (Optional) Overrides for metrics. Let you change metric name and default labels
prefix? string (Optional) Prefix for metrics. Will be added to the beginning of metric name if no override provided
registry? PromClient.Registry (Optional) Prometheus registry