scrape

package
v0.0.0-...-1f1d885 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager maintains a set of scrape pools and manages start/stop cycles when receiving new target groups form the discovery manager.

func NewManager

func NewManager(store *store.ProfileStorage, topoSubScribe topology.Subscriber) *Manager

NewManager is the Manager constructor

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) GetAllCurrentScrapeSuite

func (m *Manager) GetAllCurrentScrapeSuite() []*ScrapeSuite

func (*Manager) GetCurrentScrapeComponents

func (m *Manager) GetCurrentScrapeComponents() []topology.Component

func (*Manager) GetLastScrapeTime

func (m *Manager) GetLastScrapeTime() time.Time

func (*Manager) GetRunningStatus

func (m *Manager) GetRunningStatus() meta.ProfileStatus

func (*Manager) Start

func (m *Manager) Start()

type ScrapeSuite

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

type Scraper

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

type Target

type Target struct {
	meta.ProfileTarget

	*url.URL
	// contains filtered or unexported fields
}

Target refers to a singular HTTP or HTTPS endpoint.

func NewTarget

func NewTarget(component, address, scrapeAddress, kind, schema string, cfg *config.PprofProfilingConfig) *Target

func (*Target) GetURLString

func (t *Target) GetURLString() string

type Ticker

type Ticker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTicker

func NewTicker(d time.Duration) *Ticker

func (*Ticker) Reset

func (t *Ticker) Reset(d time.Duration)

func (*Ticker) Stop

func (t *Ticker) Stop()

func (*Ticker) Subscribe

func (t *Ticker) Subscribe() *TickerChan

type TickerChan

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

func (*TickerChan) Stop

func (tc *TickerChan) Stop()

Jump to

Keyboard shortcuts

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