Documentation ¶
Index ¶
- func GetUsernameAndPassword(client kubernetes.Interface, ctx context.Context, cluster v1.Object, ...) (string, string, error)
- func IsRemoteWriteNotFound(err error) bool
- func IsSecretNotFound(err error) bool
- type GlobalConfig
- type PrometheusAgentConfig
- type PrometheusAgentImage
- type RemoteWrite
- type RemoteWriteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUsernameAndPassword ¶
func IsRemoteWriteNotFound ¶
IsRemoteWriteNotFound asserts remoteWriteNotFound.
func IsSecretNotFound ¶
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"` }
Click to show internal directories.
Click to hide internal directories.