queryfrontend

package
v0.0.0-...-365d84a Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the Thanos Query Frontend component.
	Name = "thanos-query-frontend"

	// ComponentName is the name of the Thanos Query Frontend component.
	ComponentName = "query-frontend"

	HTTPPort     = 9090
	HTTPPortName = "http"
)

Variables

This section is empty.

Functions

func GetLabels

func GetLabels(opts Options) map[string]string

GetLabels returns a map of labels that can be used to look up qfe resources.

func GetRequiredLabels

func GetRequiredLabels() map[string]string

GetRequiredLabels returns a map of labels that can be used to look up qfe resources. These labels are guaranteed to be present on all resources created by this package.

func NewQueryFrontendDeployment

func NewQueryFrontendDeployment(opts Options) *appsv1.Deployment

func NewQueryFrontendService

func NewQueryFrontendService(opts Options) *corev1.Service

Types

type Options

type Options struct {
	manifests.Options
	QueryService           string
	QueryPort              int32
	LogQueriesLongerThan   manifests.Duration
	CompressResponses      bool
	ResponseCacheConfig    manifests.CacheConfig
	RangeSplitInterval     manifests.Duration
	LabelsSplitInterval    manifests.Duration
	RangeMaxRetries        int
	LabelsMaxRetries       int
	LabelsDefaultTimeRange manifests.Duration
}

Options for Thanos Query Frontend

func (Options) Build

func (opts Options) Build() []client.Object

func (Options) GetGeneratedResourceName

func (opts Options) GetGeneratedResourceName() string

func (Options) GetSelectorLabels

func (opts Options) GetSelectorLabels() map[string]string

GetSelectorLabels returns a map of labels that can be used to look up qfe resources.

Jump to

Keyboard shortcuts

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