metrics

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PollDialTimeout = 10 * time.Second
View Source
const PollRetryAttempts = 4
View Source
const PollTLSTimeout = 10 * time.Second
View Source
const PollTimeout = 5 * time.Second
View Source
const PollingInterval = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsURL   string
	PollInterval time.Duration
}

type Watcher

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

func New

func New(config Config) *Watcher

func (*Watcher) GetMemUsage

func (w *Watcher) GetMemUsage() *int64

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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