tsdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateThanosTSDB

func CreateThanosTSDB(opts Opts) error

Types

type Opts

type Opts struct {
	OutputDir      string        // The directory to place the generated TSDB blocks. Default /tmp/tsdb.
	NumTimeseries  int           // The number of timeseries to generate. Default 1.
	StartTime      time.Time     // Metrics will be produced from this time. Default now.
	EndTime        time.Time     // Metrics will be produced until this time. Default 1 week.
	SampleInterval time.Duration // How often to sample the metrics. Default 15s.
	BlockLength    time.Duration // The length of time each block will cover. Default 2 hours.
}

Jump to

Keyboard shortcuts

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