k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCadvisor

func GenCadvisor(gen *mimic.Generator, namespace string)

func GenMonitor

func GenMonitor(gen *mimic.Generator, namespace string)

func GenPrometheus

func GenPrometheus(gen *mimic.Generator, opts PrometheusOpts)

NOTE: No persistent volume on purpose to simplify testing. It is must-have!

func GenRemoteReadBenchPrometheusWith10h10kSeriesWAL

func GenRemoteReadBenchPrometheusWith10h10kSeriesWAL(gen *mimic.Generator, name string, namespace string, prometheusImg, thanosImg dockerimage.Image)

func GenRemoteReadBenchPrometheusWith1MoBlocks1kSeries

func GenRemoteReadBenchPrometheusWith1MoBlocks1kSeries(gen *mimic.Generator, name string, namespace string, prometheusImg, thanosImg dockerimage.Image)

func GenThanosQuerier

func GenThanosQuerier(gen *mimic.Generator, opts QuerierOpts)

func GenThanosStoreGateway

func GenThanosStoreGateway(gen *mimic.Generator, opts StoreGatewayOpts)

NOTE: No persistent volume on purpose to simplify testing. It is must-have on the production setup.

Types

type PrometheusOpts

type PrometheusOpts struct {
	Namespace string
	Name      string

	Config    prometheus.Config
	Img       dockerimage.Image
	Resources corev1.ResourceRequirements

	// If empty, no data autogeneration will be defined.
	WalGenConfig   *walgen.Config
	BlockgenSpecs  []blockgen.BlockSpec
	ThanosbenchImg dockerimage.Image

	ThanosImg       dockerimage.Image
	ThanosResources corev1.ResourceRequirements

	DisableCompactions bool
	ServiceAccountName string
	Retention          string

	StoreAPILabelSelector string
}

type QuerierOpts

type QuerierOpts struct {
	Namespace string
	Name      string

	Img       dockerimage.Image
	Resources corev1.ResourceRequirements

	StoreAPILabelSelector string

	ReadinessPath string
}

type StoreGatewayOpts

type StoreGatewayOpts struct {
	Namespace string
	Name      string

	Img       dockerimage.Image
	Resources corev1.ResourceRequirements

	IndexCacheBytes string // Defaults: 250MB
	ChunkCacheBytes string // Defaults: 2GB

	StoreAPILabelSelector string

	ObjStoreSecret secret.File

	ReadinessPath string
}

Jump to

Keyboard shortcuts

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