metrics

package
v0.0.0-...-efbd42f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyMetrics

type DummyMetrics struct {
}

DummyMetrics is a dummy implementation of Metric interface.

func NewDummyMetrics

func NewDummyMetrics() *DummyMetrics

NewDummyMetrics returns a new instance of DummyMetrics.

func (*DummyMetrics) IncVaaConsumedQueue

func (d *DummyMetrics) IncVaaConsumedQueue(chainID uint16)

IncVaaConsumedQueue increments the number of consumed VAA.

func (*DummyMetrics) IncVaaParsed

func (d *DummyMetrics) IncVaaParsed(chainID uint16)

IncVaaParsed increments the number of parsed VAA.

func (*DummyMetrics) IncVaaParsedInserted

func (d *DummyMetrics) IncVaaParsedInserted(chainID uint16)

IncVaaParsedInserted increments the number of parsed VAA inserted into database.

func (*DummyMetrics) IncVaaPayloadParserErrorCount

func (d *DummyMetrics) IncVaaPayloadParserErrorCount(chainID uint16)

IncVaaPayloadParserErrorCount increments the number of vaa payload parser error.

func (*DummyMetrics) IncVaaPayloadParserNotFoundCount

func (d *DummyMetrics) IncVaaPayloadParserNotFoundCount(chainID uint16)

IncVaaPayloadParserSuccessCount increments the number of vaa payload parser success.

func (*DummyMetrics) IncVaaPayloadParserRequestCount

func (d *DummyMetrics) IncVaaPayloadParserRequestCount(chainID uint16)

IncVaaPayloadParserRequestCount increments the number of vaa payload parser request.

func (*DummyMetrics) IncVaaPayloadParserSuccessCount

func (d *DummyMetrics) IncVaaPayloadParserSuccessCount(chainID uint16)

IncVaaPayloadParserSuccessCount increments the number of vaa payload parser success.

func (*DummyMetrics) IncVaaUnexpired

func (d *DummyMetrics) IncVaaUnexpired(chainID uint16)

IncVaaUnexpired increments the number of unexpired VAA.

func (*DummyMetrics) IncVaaUnfiltered

func (d *DummyMetrics) IncVaaUnfiltered(chainID uint16)

IncVaaUnfiltered increments the number of unfiltered VAA.

type Metrics

type Metrics interface {
	IncVaaConsumedQueue(chainID uint16)
	IncVaaUnfiltered(chainID uint16)
	IncVaaUnexpired(chainID uint16)
	IncVaaParsed(chainID uint16)
	IncVaaParsedInserted(chainID uint16)

	IncVaaPayloadParserRequestCount(chainID uint16)
	IncVaaPayloadParserErrorCount(chainID uint16)
	IncVaaPayloadParserNotFoundCount(chainID uint16)
	IncVaaPayloadParserSuccessCount(chainID uint16)
}

type PrometheusMetrics

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

PrometheusMetrics is a Prometheus implementation of Metric interface.

func NewPrometheusMetrics

func NewPrometheusMetrics(environment string) *PrometheusMetrics

NewPrometheusMetrics returns a new instance of PrometheusMetrics.

func (*PrometheusMetrics) IncVaaConsumedQueue

func (m *PrometheusMetrics) IncVaaConsumedQueue(chainID uint16)

IncVaaConsumedQueue increments the number of consumed VAA.

func (*PrometheusMetrics) IncVaaParsed

func (m *PrometheusMetrics) IncVaaParsed(chainID uint16)

IncVaaParsed increments the number of parsed VAA.

func (*PrometheusMetrics) IncVaaParsedInserted

func (m *PrometheusMetrics) IncVaaParsedInserted(chainID uint16)

IncVaaParsedInserted increments the number of parsed VAA inserted into database.

func (*PrometheusMetrics) IncVaaPayloadParserErrorCount

func (m *PrometheusMetrics) IncVaaPayloadParserErrorCount(chainID uint16)

IncVaaPayloadParserErrorCount increments the number of vaa payload parser error.

func (*PrometheusMetrics) IncVaaPayloadParserNotFoundCount

func (m *PrometheusMetrics) IncVaaPayloadParserNotFoundCount(chainID uint16)

IncVaaPayloadParserSuccessCount increments the number of vaa payload parser not found.

func (*PrometheusMetrics) IncVaaPayloadParserRequestCount

func (m *PrometheusMetrics) IncVaaPayloadParserRequestCount(chainID uint16)

IncVaaPayloadParserRequestCount increments the number of vaa payload parser request.

func (*PrometheusMetrics) IncVaaPayloadParserSuccessCount

func (m *PrometheusMetrics) IncVaaPayloadParserSuccessCount(chainID uint16)

IncVaaPayloadParserSuccessCount increments the number of vaa payload parser success.

func (*PrometheusMetrics) IncVaaUnexpired

func (m *PrometheusMetrics) IncVaaUnexpired(chainID uint16)

IncVaaUnexpired increments the number of unexpired VAA.

func (*PrometheusMetrics) IncVaaUnfiltered

func (m *PrometheusMetrics) IncVaaUnfiltered(chainID uint16)

IncVaaUnfiltered increments the number of unfiltered VAA.

Jump to

Keyboard shortcuts

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