metrics

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NatsConsumingCount = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "nats_consuming_count",
	Help: "count of nats events whose consumption is in progress",
}, []string{"topic"})
View Source
var NatsConsumptionCount = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "nats_consumption_count",
	Help: "count of consumed events on nats ",
}, []string{"topic"})
View Source
var NatsEventConsumptionTime = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name: "nats_event_consumption_time",
}, []string{"topic"})
View Source
var NatsEventDeliveryCount = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name: "nats_event_delivery_count",
}, []string{"topic", "msg_id"})
View Source
var NatsEventPublishTime = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name: "nats_event_publish_time",
}, []string{"topic"})
View Source
var NatsPublishingCount = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "nats_publish_count",
	Help: "count of successfully published events on nats",
}, []string{"topic", "status"})

Functions

func IncConsumingCount

func IncConsumingCount(topic string)

func IncConsumptionCount

func IncConsumptionCount(topic string)

func IncPublishCount

func IncPublishCount(topic, status string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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