Documentation ¶
Index ¶
- func IsPromInstalled(client client.Client, logger logr.Logger) (bool, error)
- func SpecIsValid(tspec *telemetryapi.TelemetrySpec, promInstalled bool) (bool, error)
- type PrometheusResourcer
- func (cfg PrometheusResourcer) CleanupResources(ctx context.Context, client runtimeclient.Client) error
- func (cfg PrometheusResourcer) NewCassServiceMonitor() (promapi.ServiceMonitor, error)
- func (cfg PrometheusResourcer) NewStargateServiceMonitor() (promapi.ServiceMonitor, error)
- func (cfg PrometheusResourcer) UpdateResources(ctx context.Context, client runtimeclient.Client, owner metav1.Object, ...) error
- type TelemetryConfigIncomplete
- type TelemetryDepsNotInstalled
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPromInstalled ¶
IsPromInstalled returns true if Prometheus is installed in the cluster, false otherwise.
func SpecIsValid ¶
func SpecIsValid(tspec *telemetryapi.TelemetrySpec, promInstalled bool) (bool, error)
Types ¶
type PrometheusResourcer ¶
type PrometheusResourcer struct { MonitoringTargetNS string MonitoringTargetName string ServiceMonitorName string Logger logr.Logger CommonLabels map[string]string }
func (PrometheusResourcer) CleanupResources ¶
func (cfg PrometheusResourcer) CleanupResources(ctx context.Context, client runtimeclient.Client) error
CleanupResources executes the cleanup of any resources on the cluster, once they are no longer required.
func (PrometheusResourcer) NewCassServiceMonitor ¶
func (cfg PrometheusResourcer) NewCassServiceMonitor() (promapi.ServiceMonitor, error)
NewCassServiceMonitor returns a Prometheus operator ServiceMonitor resource.
func (PrometheusResourcer) NewStargateServiceMonitor ¶
func (cfg PrometheusResourcer) NewStargateServiceMonitor() (promapi.ServiceMonitor, error)
NewStargateServiceMonitor returns a Prometheus operator ServiceMonitor resource.
func (PrometheusResourcer) UpdateResources ¶
func (cfg PrometheusResourcer) UpdateResources( ctx context.Context, client runtimeclient.Client, owner metav1.Object, desiredSM *promapi.ServiceMonitor, ) error
UpdateResources executes the creation of the desired Prometheus resources on the cluster.
type TelemetryConfigIncomplete ¶
type TelemetryConfigIncomplete struct {
// contains filtered or unexported fields
}
func (TelemetryConfigIncomplete) Error ¶
func (detail TelemetryConfigIncomplete) Error() string
type TelemetryDepsNotInstalled ¶
type TelemetryDepsNotInstalled struct {
// contains filtered or unexported fields
}
func (TelemetryDepsNotInstalled) Error ¶
func (detail TelemetryDepsNotInstalled) Error() string
Click to show internal directories.
Click to hide internal directories.