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 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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.