thanos

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSourceResulution = "max_source_resolution"

MaxSourceResulution is the query parameter key used to designate the resolution to use when executing a query.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if Thanos is enabled.

func NewThanosClient

func NewThanosClient(address string, config *prom.PrometheusClientConfig) (prometheus.Client, error)

func Offset

func Offset() string

Offset returns the duration string for the query offset that should be applied to thanos

func OffsetDuration

func OffsetDuration() time.Duration

OffsetDuration returns the Offset as a parsed duration

func QueryOffset

func QueryOffset() string

QueryOffset returns a string in the format: " offset %s" substituting in the Offset() string.

func QueryURL

func QueryURL() string

QueryURL returns true if Thanos is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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