Documentation ¶
Overview ¶
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Index ¶
- Constants
- Variables
- func CreateExternalMetricsEndpoints(namespace string, externalMgrEndpoints []v1.EndpointAddress, ...) *v1.Endpoints
- func GeneratePassword(length int) (string, error)
- func GenerateRandomBytes(length int) ([]byte, error)
- func IsModuleInSpec(modules []cephv1.Module, moduleName string) bool
- type Cluster
Constants ¶
const ( // AppName is the ceph mgr application name AppName = "rook-ceph-mgr" PgautoscalerModuleName = "pg_autoscaler" )
const ( ExternalMgrAppName = "rook-ceph-mgr-external" ServiceExternalMetricName = "http-external-metrics" )
Variables ¶
var PrometheusExternalRuleName = "prometheus-ceph-vVERSION-rules-external"
PrometheusExternalRuleName is the name of the prometheus external rule
Functions ¶
func CreateExternalMetricsEndpoints ¶ added in v1.4.0
func CreateExternalMetricsEndpoints(namespace string, externalMgrEndpoints []v1.EndpointAddress, ownerRef metav1.OwnerReference) *v1.Endpoints
CreateExternalMetricsEndpoints creates external metric endpoint
func GeneratePassword ¶ added in v1.4.0
func GenerateRandomBytes ¶ added in v1.4.0
GenerateRandomBytes returns securely generated random bytes.
Types ¶
type Cluster ¶
type Cluster struct { Replicas int // contains filtered or unexported fields }
Cluster represents the Rook and environment configuration settings needed to set up Ceph mgrs.
func New ¶
func New(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, spec cephv1.ClusterSpec, rookVersion string) *Cluster
New creates an instance of the mgr
func (*Cluster) DeployPrometheusRule ¶ added in v1.4.0
DeployPrometheusRule deploy prometheusRule that adds alerting and/or recording rules to the cluster
func (*Cluster) EnableServiceMonitor ¶ added in v1.4.0
EnableServiceMonitor add a servicemonitor that allows prometheus to scrape from the monitoring endpoint of the cluster
func (*Cluster) MakeMetricsService ¶ added in v1.4.0
MakeMetricsService generates the Kubernetes service object for the monitoring service