monitor

package
v0.0.0-alpha.0....-ec243c9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHTTPDialTimeout     = 2 * time.Second
	DefaultHealthCheckInterval = 5 * time.Second
	DefaultEndpoint            = "https://localhost:2379"
	DefaultLogLevel            = 2
	DefaultLogOutputs          = "stderr"
	DefaultStaticPodVersion    = 0

	// DefaultLogRotationConfig is the default configuration used for log rotation.
	// Log rotation is disabled by default.
	// MaxSize    = 100 // MB
	// MaxAge     = 0 // days (no limit)
	// MaxBackups = 10
	// LocalTime  = false // use computers local time, UTC by default
	// Compress   = true // compress the rotated log in gzip format
	DefaultLogRotationConfig = `{"maxsize": 100, "maxage": 0, "maxbackups": 10, "localtime": false, "compress": true}`
)

Variables

This section is empty.

Functions

func NewMonitorCommand

func NewMonitorCommand(errOut io.Writer) *cobra.Command

func WithMultiTargetHealthCheck

func WithMultiTargetHealthCheck(checks ...health.CheckFunc) []health.CheckFunc

func WithSingleTargetHealthCheck

func WithSingleTargetHealthCheck(checks ...health.CheckFunc) []health.CheckFunc

Types

type Monitor

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

func (*Monitor) Schedule

func (m *Monitor) Schedule(ctx context.Context, wg *sync.WaitGroup)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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