observability

package
v0.3.1 Latest Latest
Warning

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

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

README

Observability and Health.

Here we put the stuff that makes it possible to gain some insight into what is happening on the bridge.

The idea is to have a channel that we listen to and update counters and health based on what comes through that channel.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v0.2.0

type Channel chan StatusMessage

func GetChannel

func GetChannel(size int) Channel

type Observability added in v0.3.0

type Observability struct {
	// contains filtered or unexported fields
}

func Initialize added in v0.2.0

func Initialize(params Params) *Observability

func (*Observability) Cleanup added in v0.3.0

func (obs *Observability) Cleanup()

func (*Observability) HealthzHandler added in v0.3.0

func (obs *Observability) HealthzHandler(w http.ResponseWriter, _ *http.Request)

func (*Observability) Ready added in v0.3.0

func (obs *Observability) Ready()

func (Observability) Run added in v0.3.0

func (obs Observability) Run(ctx context.Context)

type Params added in v0.2.0

type Params struct {
	Channel    Channel
	HealthPort int
	LogLevel   log.LogLevel
}

type StatusMessage

type StatusMessage int
const (
	MqttReceived StatusMessage = iota
	MqttError
	KafkaSent
	KafkaError
)

func (StatusMessage) String

func (d StatusMessage) String() string

Jump to

Keyboard shortcuts

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