metrics

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() http.Handler

func Open added in v0.0.31

func Open(ctx context.Context) context.Context

Types

type Events added in v0.0.31

type Events struct {
	Accepted, Rejected prometheus.Counter
}

type Metrics added in v0.0.31

type Metrics struct {
	*prometheus.Registry
	Events Events
	Query  Query
}

func Get added in v0.0.31

func Get(ctx context.Context) *Metrics

type Query added in v0.0.39

type Query struct {
	QueryDuration prometheus.Histogram
	Query         prometheus.Counter
	QueryError    prometheus.Counter
}

Jump to

Keyboard shortcuts

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