Documentation ¶
Index ¶
- Constants
- func DisableExporterInIvorySQL(ctx context.Context, exec ivory.Executor) error
- func EnableExporterInIvorySQL(ctx context.Context, exec ivory.Executor, monitoringSecret *corev1.Secret, ...) error
- func ExporterEnabled(cluster *v1beta1.IvoryCluster) bool
- func IvorySQLHBAs(inCluster *v1beta1.IvoryCluster, outHBAs *ivory.HBAs)
- func IvorySQLParameters(inCluster *v1beta1.IvoryCluster, outParameters *ivory.Parameters)
- type Executor
Constants ¶
const (
// MonitoringUser is a Ivory user created by pgMonitor configuration
MonitoringUser = "ccp_monitoring"
)
Variables ¶
This section is empty.
Functions ¶
func DisableExporterInIvorySQL ¶
DisableExporterInIvorySQL disables the exporter configuration in IvorySQL. Currently the exporter is disabled by removing login permissions for the monitoring user. TODO: evaluate other uninstall/removal options
func EnableExporterInIvorySQL ¶
func EnableExporterInIvorySQL(ctx context.Context, exec ivory.Executor, monitoringSecret *corev1.Secret, database, setup string) error
EnableExporterInIvorySQL runs SQL setup commands in `database` to enable the exporter to retrieve metrics. pgMonitor objects are created and expected extensions are installed. We also ensure that the monitoring user has the current password and can login.
func ExporterEnabled ¶
func ExporterEnabled(cluster *v1beta1.IvoryCluster) bool
ExporterEnabled returns true if the monitoring exporter is enabled
func IvorySQLHBAs ¶
func IvorySQLHBAs(inCluster *v1beta1.IvoryCluster, outHBAs *ivory.HBAs)
IvorySQLHBAs provides the Ivory HBA rules for allowing the monitoring exporter to be accessible
func IvorySQLParameters ¶
func IvorySQLParameters(inCluster *v1beta1.IvoryCluster, outParameters *ivory.Parameters)
IvorySQLParameters provides additional required configuration parameters that Ivory needs to support monitoring