exporter

package
v0.0.1-alpha.12 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromHandler

type PromHandler struct {
	Bus *bus.Bus
	// contains filtered or unexported fields
}

PromHandler is the Event handnelr used to configure prometheus metrics

func NewHandler

func NewHandler(ctx context.Context, b *bus.Bus) *PromHandler

NewHandler returns a configured instance of PromHandler

func (*PromHandler) Handle

func (p *PromHandler) Handle(ctx context.Context, e *bus.Event)

Handle handles events passed by the bus, used to adhere to the EventHandler intterface

func (*PromHandler) Stop

func (p *PromHandler) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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