mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 11:30:04 +08:00
feat(server): add process memory usage metrics (#13148)
close CLOUD-235 <img width="2104" height="1200" alt="image" src="https://github.com/user-attachments/assets/6ea0fd89-ab32-42e3-a675-f00f9e5856ad" /> #### PR Dependency Tree * **PR #13148** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a new monitoring service that automatically collects and logs process memory usage statistics every minute. * Enhanced system monitoring capabilities by integrating a global monitoring module. * Added support for a new "process" scope in metric tracking. * **Chores** * Improved internal module organization by including the monitoring module in the core functionality set. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -60,7 +60,8 @@ export type KnownMetricScopes =
|
||||
| 'ai'
|
||||
| 'event'
|
||||
| 'queue'
|
||||
| 'storage';
|
||||
| 'storage'
|
||||
| 'process';
|
||||
|
||||
const metricCreators: MetricCreators = {
|
||||
counter(meter: Meter, name: string, opts?: MetricOptions) {
|
||||
|
||||
Reference in New Issue
Block a user