counters

package
v0.0.0-...-953ae9e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceLevelCounters

type ServiceLevelCounters struct {
	NumEmailsSent                  prometheus.Counter
	NumEmailsReceived              prometheus.Counter
	NumMessageNacks                prometheus.Counter
	NumMessageAcks                 prometheus.Counter
	SendgridEmailLatency           prometheus.SummaryVec
	FailedSendgridRequestCount     prometheus.Counter
	SuccessfulSendgridRequestCount prometheus.Counter
	FailedEmailUnMarshallingEvents prometheus.Counter
}

ServiceLevelCounters witholds references counters specific to the email services

func New

func New(servicename string) *ServiceLevelCounters

New initializes a set of counters for the email service

func (*ServiceLevelCounters) RegisterMetrics

func (rc *ServiceLevelCounters) RegisterMetrics()

RegisterMetrics registers the service level counters to prometheus

type Telemetry

type Telemetry struct {
	InfrastructureCounter *infrastructure.InfrastructureCounters
	ServiceCounters       *ServiceLevelCounters
}

Jump to

Keyboard shortcuts

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