metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrDB is used for db related errors.
	ErrDB = prom.ErrDB
	// ErrNotClassified is an error that is not further classified.
	ErrNotClassified = prom.ErrNotClassified
	// ErrTimeout is a timeout error.
	ErrProcess = prom.ErrProcess
	// ErrVerify is used for validation related errors.
	ErrTimeout = prom.ErrTimeout
	// ErrProcess is an error during processing e.g. parsing failed.
	ErrVerify = prom.ErrVerify
	// OkSuccess is no error.
	OkSuccess = prom.Success
)

Result values

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	SegRequests(labels RequestLabels) prometheus.Counter
	RevocationsReceived(labels RevocationLabels) prometheus.Counter
}

Fetcher exposes all metrics for the fetcher.

func NewFetcher

func NewFetcher(namespace string) Fetcher

NewFetcher creates fetcher metrics struct.

type RequestLabels

type RequestLabels struct {
	Result string
}

RequestLabels contains the labels for the request metrics.

func (RequestLabels) Labels

func (l RequestLabels) Labels() []string

Labels returns the labels.

func (RequestLabels) Values

func (l RequestLabels) Values() []string

Values returns the values.

func (RequestLabels) WithResult

func (l RequestLabels) WithResult(result string) RequestLabels

WithResult returns a copy of l with the result changed.

type RevocationLabels

type RevocationLabels struct {
	Result string
	Src    string
}

RevocationLabels are the labels for revocation metrics.

func (RevocationLabels) Labels

func (l RevocationLabels) Labels() []string

Labels returns the labels.

func (RevocationLabels) Values

func (l RevocationLabels) Values() []string

Values returns the values.

func (RevocationLabels) WithResult

func (l RevocationLabels) WithResult(result string) RevocationLabels

WithResult returns a copy of l with the result changed.

Jump to

Keyboard shortcuts

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