scraper

package
v0.0.0-...-7d115aa Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2015 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterName   string
	CadvisorPort  int
	KubeUser      string
	KubePass      string
	MaxDatapoints int
}

Config for Scraper

type Scraper

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

Scraper scrapes cadvisor for metrics and forwards them to SignalFX

func New

func New(forwarder *signalfx.Forwarder, cfg Config) *Scraper

New creates a new Scraper with the given configuration

func (*Scraper) Run

func (p *Scraper) Run(forwardInterval, discoverInterval time.Duration) (err error)

Run starts this Scraper, blocks until it finishes or catches a signal

Jump to

Keyboard shortcuts

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