app

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

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(c *AppConfig, l log.Logger) (*app, error)

Types

type AppConfig

type AppConfig struct {
	TsdbDir                string
	RemoteURL              *url.URL
	RemoteTimeout          time.Duration
	Concurrency            int
	QueueCapacity          int
	QueueMaxSamplesPerSend int
	QueueMaxRetries        int
	Backward               bool
	MinTime                int64
	MaxTime                int64
}

type SeriesSetState

type SeriesSetState []SeriesState

type SeriesState

type SeriesState struct {
	Labels    prom_labels.Labels
	Timestamp int64
}

type StateManager

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

func NewStateManager

func NewStateManager(name string, saveInterval time.Duration, logger log.Logger) (*StateManager, error)

func (*StateManager) Close

func (sm *StateManager) Close()

func (*StateManager) GetTimestamp

func (sm *StateManager) GetTimestamp(labels prom_labels.Labels) int64

func (*StateManager) Start

func (sm *StateManager) Start()

func (*StateManager) Update

func (sm *StateManager) Update(labels prom_labels.Labels, ts int64)

Jump to

Keyboard shortcuts

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