metrics

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

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 NatsPublishingCount = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: constants.NATS_PUBLISH_COUNT,
	Help: "count of successfully published events on nats",
}, []string{constants.TOPIC, constants.STATUS})

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.

Jump to

Keyboard shortcuts

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