prometheus

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics is an object for exposing prometheus metrics

func NewMetrics

func NewMetrics(logger goengine.Logger) *Metrics

NewMetrics instantiate and return an object of Metrics

func (*Metrics) FinishNotificationProcessing

func (m *Metrics) FinishNotificationProcessing(notification *sql.ProjectionNotification, success bool)

FinishNotificationProcessing is used to observe end time of notification queue and processing time

func (*Metrics) QueueNotification

func (m *Metrics) QueueNotification(notification *sql.ProjectionNotification)

QueueNotification returns http handler for prometheus

func (*Metrics) ReceivedNotification

func (m *Metrics) ReceivedNotification(isNotification bool)

ReceivedNotification counts received notifications

func (*Metrics) RegisterMetrics

func (m *Metrics) RegisterMetrics(registry *prometheus.Registry) error

RegisterMetrics returns http handler for prometheus

func (*Metrics) StartNotificationProcessing

func (m *Metrics) StartNotificationProcessing(notification *sql.ProjectionNotification)

StartNotificationProcessing is used to record start time of notification processing

Jump to

Keyboard shortcuts

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