operations

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 17 Imported by: 17 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MetricsOptions

type MetricsOptions struct {
	Provider string
	Statsd   *Statsd
}

MetricsOptions contains the information on providers

type Options

type Options struct {
	ListenAddress string
	Metrics       MetricsOptions
	TLS           TLS
}

Options contains configuration for the operations system

type Statsd

type Statsd struct {
	Network       string
	Address       string
	WriteInterval time.Duration
	Prefix        string
}

Statsd contains configuration of statsd

type System

type System struct {
	metrics.Provider
	// contains filtered or unexported fields
}

System is an operations server that is responsible for metrics and health checks

func NewSystem

func NewSystem(o Options) *System

NewSystem creates a System struct

func (*System) Addr

func (s *System) Addr() string

Addr returns the address of the listener

func (*System) Log

func (s *System) Log(keyvals ...interface{}) error

Log is a function required to meet the interface required by statsd

func (*System) RegisterChecker

func (s *System) RegisterChecker(component string, checker healthz.HealthChecker) error

RegisterChecker registers the HealthCheck with Healthchecker server

func (*System) Start

func (s *System) Start() error

Start starts the operations system server

func (*System) Stop

func (s *System) Stop() error

Stop stop the operations system server

type TLS

type TLS struct {
	Enabled            bool
	CertFile           string
	KeyFile            string
	ClientCertRequired bool
	ClientCACertFiles  []string
}

TLS contains the TLS configuration for the operations system serve

func (*TLS) Config

func (t *TLS) Config() (*tls.Config, error)

Config returns TLS configuration

Jump to

Keyboard shortcuts

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