prometheusagent

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrometheusAgentRemoteWriteSecretName added in v0.1.0

func GetPrometheusAgentRemoteWriteSecretName(cluster *clusterv1.Cluster) string

Types

type PrometheusAgentConfig

type PrometheusAgentConfig struct {
	ExternalLabels map[string]string     `yaml:"externalLabels,omitempty" json:"externalLabels,omitempty"`
	Image          *PrometheusAgentImage `yaml:"image,omitempty" json:"image,omitempty"`
	RemoteWrite    []*RemoteWrite        `yaml:"remoteWrite,omitempty" json:"remoteWrite,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 PrometheusAgentService

type PrometheusAgentService struct {
	client.Client
	organization.OrganizationRepository
	PasswordManager password.Manager
	common.ManagementCluster
	MonitoringConfig monitoring.Config
}

func (*PrometheusAgentService) DeleteRemoteWriteConfiguration

func (pas *PrometheusAgentService) DeleteRemoteWriteConfiguration(
	ctx context.Context, cluster *clusterv1.Cluster) error

func (*PrometheusAgentService) ReconcileRemoteWriteConfiguration

func (pas *PrometheusAgentService) ReconcileRemoteWriteConfiguration(
	ctx context.Context, cluster *clusterv1.Cluster) error

ReconcileRemoteWriteConfiguration ensures that the prometheus remote write config is present in the cluster.

type RemoteWrite

type RemoteWrite struct {
	promv1.RemoteWriteSpec `yaml:",inline" json:",inline"`
	Password               string `yaml:"password" json:"password"`
	Username               string `yaml:"username" json:"username"`
}

type RemoteWriteConfig

type RemoteWriteConfig struct {
	PrometheusAgentConfig *PrometheusAgentConfig `yaml:"prometheus-agent,omitempty" json:"prometheus-agent,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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