-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dfdaemon): add disk usage metrics #2912
base: main
Are you sure you want to change the base?
feat(dfdaemon): add disk usage metrics #2912
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2912 +/- ##
==========================================
- Coverage 51.06% 51.00% -0.07%
==========================================
Files 161 161
Lines 21778 21797 +19
==========================================
- Hits 11122 11118 -4
- Misses 9999 10021 +22
- Partials 657 658 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
metrics.DataUnReclaimedUsage.Set(float64(totalNotMarkedSize)) | ||
metrics.DataDiskGCThreshold.Set(float64(s.storeOption.DiskGCThreshold)) | ||
metrics.DataDiskGCThresholdPercent.Set(s.storeOption.DiskGCThresholdPercent) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The s.storeOption.DiskGCThresholdPercent
and s.storeOption.DiskGCThreshold
is static, we should not update them every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is used to record the threshold, so that we can display on the monitor, or there is better way to achieve that?
Description
collect disk usage metrics for dfdaemon
Related Issue
Motivation and Context
currently there is no disk usage metrics for data directory usage, we need to monitor the disk dfdaemon used
Screenshots (if appropriate)
Types of changes
Checklist