Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListOptions ¶
func ListOptions(name string) metav1.ListOptions
func Status ¶ added in v0.47.0
func Status(ctx context.Context, kclient kubernetes.Interface, p *monitoringv1.Prometheus) (*monitoringv1.PrometheusStatus, []v1.Pod, error)
Status evaluates the current status of a Prometheus deployment with respect to its specified resource object. It returns the status and a list of pods that are not updated.
Types ¶
type ConfigGenerator ¶ added in v0.48.0
type ConfigGenerator struct {
// contains filtered or unexported fields
}
ConfigGenerator is used to create Prometheus configurations from operator resources.
func NewConfigGenerator ¶ added in v0.23.0
func NewConfigGenerator(logger log.Logger) *ConfigGenerator
NewConfigGenerator creates a ConfigGenerator instance using the provided Logger.
func (*ConfigGenerator) GenerateConfig ¶ added in v0.48.0
func (cg *ConfigGenerator) GenerateConfig( p *v1.Prometheus, sMons map[string]*v1.ServiceMonitor, pMons map[string]*v1.PodMonitor, probes map[string]*v1.Probe, basicAuthSecrets map[string]assets.BasicAuthCredentials, bearerTokens map[string]assets.BearerToken, additionalScrapeConfigs []byte, additionalAlertRelabelConfigs []byte, additionalAlertManagerConfigs []byte, ruleConfigMapNames []string, ) ([]byte, error)
GenerateConfig creates a serialized YAML representation of a Prometheus configuration using the provided resources.
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator manages life cycle of Prometheus deployments and monitoring configurations.
Click to show internal directories.
Click to hide internal directories.