Closed zyy17 closed 1 month ago
The changes introduce comprehensive monitoring capabilities to the GreptimeDBCluster
by adding new specifications for monitoring configuration, log collection, and vector instance management. Key structures such as MonitoringSpec
, LogsCollectionSpec
, and VectorSpec
are created, along with methods for managing these new types. Additionally, constants for default configurations and a monitoring deployer are introduced, enhancing the deployment process and ensuring proper integration of monitoring features.
Files | Change Summary |
---|---|
apis/v1alpha1/greptimedbcluster_types.go , apis/v1alpha1/defaulting.go |
Added monitoring configurations including MonitoringSpec , LogsCollectionSpec , and VectorSpec . Introduced getter methods and status structures. |
apis/v1alpha1/constants.go |
Added constants for default images and resource requests for GreptimeDB and vector components. |
controllers/greptimedbcluster/deployers/monitoring.go |
Introduced MonitoringDeployer struct for managing monitoring components and Kubernetes objects. |
controllers/greptimedbcluster/deployers/common.go |
Added methods for vector configuration volume and sidecar management, enhancing logging and configuration management. |
tests/e2e/greptimedbcluster/test_cluster_enable_monitoring.go , tests/e2e/greptimedbcluster/test_basic_cluster.go , tests/e2e/greptimedbcluster/test_cluster_enable_flow.go , tests/e2e/greptimedbcluster/test_cluster_standalone_wal.go |
Enhanced tests to verify retrieval of cluster instances after creation and ensure proper monitoring functionality. |
tests/e2e/testdata/resources/cluster/enable-monitoring/cluster.yaml |
Added configuration for a GreptimeDBCluster resource with monitoring enabled. |
Validate()
and Check()
methods in the GreptimeDBCluster
and GreptimeDBStandalone
structures relates to the main PR's changes in constants and configurations, as both involve enhancing the validation and configuration management of GreptimeDB components.In the meadow where the bunnies play,
New features hop in, brightening the day.
Monitoring's here, with logs to collect,
Vector's sidecars, oh what a perfect effect!
With each little change, our cluster will thrive,
Hopping along, keeping data alive! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests
Chores