metrics

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitRevision string
	GitBranch   string
	GitVersion  string
)
View Source
var Handler = promhttp.Handler()

Handler is an alias for default Prometheus HTTP handler

Functions

func Interceptor

func Interceptor(opt *signatory.SignInterceptorOptions, sign func() error) error

Interceptor function collects sign operation metrics

func NewBuildInfoCollector

func NewBuildInfoCollector(prefix string) prometheus.Collector

NewBuildInfoCollector returns a collector collecting a single metric "go_build_info"

Types

type HttpError

type HttpError interface {
	Code() int
}

Jump to

Keyboard shortcuts

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