Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrometheusAgentRemoteWriteSecretName ¶ added in v0.1.0
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 (*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"`
}
Click to show internal directories.
Click to hide internal directories.