easyhealth

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHttpEndpoints

func BuildHttpEndpoints(manager *health.HealthManager, endpoints Endpoints, logger *zap.Logger) http.Handler

func StartBreakerReport

func StartBreakerReport(bk *breaker.Breaker, reporter *health.StatusReporter) closes.WithContextCloser

func StartCircuitReport

func StartCircuitReport(cc *circuit.Circuit, reporter *health.StatusReporter) closes.WithContextCloser

Types

type Endpoints

type Endpoints struct {
	IsUp                 string
	Available            string
	Status               string
	MaxBadHighLevelCount int32
}

type HealthProm

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

func New

func New(manager *health.HealthManager, serviceName string, logger *zap.Logger) *HealthProm

func (*HealthProm) Collect

func (prom *HealthProm) Collect(ch chan<- prometheus.Metric)

func (*HealthProm) Describe

func (prom *HealthProm) Describe(ch chan<- *prometheus.Desc)

func (*HealthProm) MustRegister

func (prom *HealthProm) MustRegister()

Jump to

Keyboard shortcuts

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