Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NatsConsumingCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: constants.NATS_CONSUMING_COUNT, Help: "count of nats events whose consumption is in progress", }, []string{constants.TOPIC})
View Source
var NatsConsumptionCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: constants.NATS_CONSUMPTION_COUNT, Help: "count of consumed events on nats ", }, []string{constants.TOPIC})
View Source
var NatsEventConsumptionTime = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: constants.NATS_EVENT_CONSUMPTION_TIME, }, []string{constants.TOPIC})
View Source
var NatsEventDeliveryCount = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: constants.NATS_EVENT_DELIVERY_COUNT, }, []string{constants.TOPIC})
View Source
var NatsEventPublishTime = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: constants.NATS_EVENT_PUBLISH_TIME, }, []string{constants.TOPIC})
View Source
var NatsPublishingCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: constants.NATS_PUBLISH_COUNT, Help: "count of successfully published events on nats", }, []string{constants.TOPIC, constants.STATUS})
View Source
var PanicRecoveryCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: constants.PANIC_RECOVERY_COUNT, }, []string{constants.PANIC_TYPE, constants.HOST, constants.METHOD, constants.PATH})
View Source
var ReverseProxyPanicRecoveryCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: constants.REVERSE_PROXY_PANIC_RECOVERY_COUNT, }, []string{constants.PANIC_TYPE, constants.HOST, constants.METHOD, constants.PATH})
Functions ¶
func IncConsumingCount ¶
func IncConsumingCount(topic string)
func IncConsumptionCount ¶
func IncConsumptionCount(topic string)
func IncPanicRecoveryCount ¶ added in v0.0.18
func IncPanicRecoveryCount(panicType, host, method, path string)
func IncPublishCount ¶
func IncPublishCount(topic, status string)
func IncReverseProxyPanicRecoveryCount ¶ added in v0.19.0
func IncReverseProxyPanicRecoveryCount(panicType, host, method, path string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.