metricz

package module
v0.0.0-...-5d12fbd Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

README

metricz

A library to serve varz, healthz and announce its endpoints.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func NewComponent

func NewComponent(
	logger lager.Logger,
	name string,
	index uint,
	heathMonitor HealthMonitor,
	statusPort uint16,
	statusCreds []string,
	instrumentables []instrumentation.Instrumentable,
) (Component, error)

func (*Component) Index

func (c *Component) Index() uint

func (*Component) Name

func (c *Component) Name() string

func (*Component) StartMonitoringEndpoints

func (c *Component) StartMonitoringEndpoints() error

func (*Component) StopMonitoringEndpoints

func (c *Component) StopMonitoringEndpoints()

func (*Component) URL

func (c *Component) URL() *url.URL

func (*Component) UUID

func (c *Component) UUID() string

type HealthMonitor

type HealthMonitor interface {
	Ok() bool
}

func NewDummyHealthMonitor

func NewDummyHealthMonitor() HealthMonitor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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