prometheus

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*opts)

func WithLabel

func WithLabel(label, value string) Option

func WithLabels

func WithLabels(labels map[string]string) Option

func WithNamespace

func WithNamespace(name string) Option

func WithRegisterer

func WithRegisterer(registerer prometheus.Registerer) Option

func WithServiceName

func WithServiceName(name string) Option

func WithSubsystem

func WithSubsystem(name string) Option

type ServerInterceptor

type ServerInterceptor interface {
	Unary() grpc.UnaryServerInterceptor
	Stream() grpc.StreamServerInterceptor
}

func New

func New(opts ...Option) ServerInterceptor

Jump to

Keyboard shortcuts

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