Closed illia-malachyn closed 3 months ago
[!WARNING]
Rate limit exceeded
@illia-malachyn has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 37 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between ff9f7be475329cce64b95647d447e2055355fa5b and 3354ba6b8a70374806ab59dd012404396f7504d9.
The recent updates significantly improve the application's monitoring capabilities by introducing the StorageSizeCollector
for tracking disk usage metrics. A new configurable update interval provides flexibility for real-time storage metric collection, enhancing both observability and performance. These changes ensure clearer insights into storage utilization and simplify the metric registration process, ultimately enriching the application's operational oversight.
Files | Change Summary |
---|---|
bootstrap/bootstrap.go , config/config.go , metrics/storage_collector.go |
Enhanced monitoring by initializing a storageSizeCollector with a configurable update interval for real-time tracking. |
metrics/collector.go |
Simplified metric registration by removing the logger parameter from NewCollector and using promauto for automatic Prometheus registration. |
services/traces/engine_test.go |
Updated tests to instantiate Collector with NewNoopCollector() , removing the logging dependency, streamlining the test environment. |
sequenceDiagram
participant Bootstrap
participant Config
participant StorageSizeCollector
participant Prometheus
Bootstrap->>Config: Load Config
Config-->>Bootstrap: Return Config
Bootstrap->>StorageSizeCollector: NewStorageSizeCollector(logger, dir, interval)
StorageSizeCollector-->>Bootstrap: Return StorageSizeCollector
Bootstrap->>StorageSizeCollector: Start(ctx)
StorageSizeCollector->>Prometheus: Register metric
loop Periodic Update
StorageSizeCollector->>StorageSizeCollector: updateStorageSize()
StorageSizeCollector->>Prometheus: Update metric
end
🐇 In the meadow, metrics bloom,
A storage watcher clears the gloom.
With intervals set, we gather more,
Digging deep, we explore the core.
Hop along, let data flow,
In our fields, new insights grow! 🌼
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?
This covers "Database size (folder size)" metric
Summary by CodeRabbit
New Features
Bug Fixes
Tests