configuration

package
v2.4.1-0...-6a18df0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsernameAndPassword

func GetUsernameAndPassword(client kubernetes.Interface, ctx context.Context, cluster v1.Object, installation string, provider cluster.Provider) (string, string, error)

func IsRemoteWriteNotFound

func IsRemoteWriteNotFound(err error) bool

IsRemoteWriteNotFound asserts remoteWriteNotFound.

func IsSecretNotFound

func IsSecretNotFound(err error) bool

IsSecretNotFound asserts secretNotFound.

Types

type GlobalConfig

type GlobalConfig struct {
	RemoteWrite    []RemoteWrite     `yaml:"remoteWrite,omitempty" json:"remoteWrite,omitempty"`
	ExternalLabels map[string]string `yaml:"externalLabels,omitempty" json:"externalLabels,omitempty"`
}

type PrometheusAgentConfig

type PrometheusAgentConfig struct {
	RemoteWrite    []RemoteWrite        `yaml:"remoteWrite,omitempty" json:"remoteWrite,omitempty"`
	ExternalLabels map[string]string    `yaml:"externalLabels,omitempty" json:"externalLabels,omitempty"`
	Image          PrometheusAgentImage `yaml:"image,omitempty" json:"image,omitempty"`
	Shards         int                  `yaml:"shards,omitempty" json:"shards,omitempty"`
	Version        string               `yaml:"version,omitempty" json:"version,omitempty"`
}

type PrometheusAgentImage

type PrometheusAgentImage struct {
	Tag string `yaml:"tag" json:"tag"`
}

type RemoteWrite

type RemoteWrite struct {
	Name          string             `yaml:"name" json:"name"`
	Password      string             `yaml:"password" json:"password"`
	Username      string             `yaml:"username" json:"username"`
	URL           string             `yaml:"url" json:"url"`
	RemoteTimeout string             `yaml:"remoteTimeout" json:"remoteTimeout"`
	QueueConfig   promv1.QueueConfig `yaml:"queueConfig" json:"queueConfig"`
	TLSConfig     promv1.TLSConfig   `yaml:"tlsConfig" json:"tlsConfig"`
}

func DefaultRemoteWrite

func DefaultRemoteWrite(clusterID string, baseDomain string, password string, insecureCA bool) RemoteWrite

type RemoteWriteConfig

type RemoteWriteConfig struct {
	// We keep this until we are sure this can be removed
	GlobalConfig          GlobalConfig          `yaml:"global,omitempty" json:"global,omitempty"`
	PrometheusAgentConfig PrometheusAgentConfig `yaml:"prometheus-agent,omitempty" json:"prometheus-agent,omitempty"`
}

Jump to

Keyboard shortcuts

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