Skip to content
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

Add storage metrics for opendal storage. #4752

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fmassot
Copy link
Contributor

@fmassot fmassot commented Mar 16, 2024

@Xuanwo We need to add storage metrics for the OpenDal storage.

Note: I'm not sure how to compute correctly the number of PUT requests.

Can you take a look?

@fmassot fmassot force-pushed the fmassot/add-metrics-for-opendal branch from 556fd17 to 9a32743 Compare March 16, 2024 23:03
@@ -88,20 +88,35 @@ impl Storage for OpendalStorage {
tokio::io::copy(&mut payload_reader, &mut storage_writer).await?;
storage_writer.close().await?;

// FIXME: should be payload.len() / ByteSize::mb(8)?
Copy link
Contributor

@Xuanwo Xuanwo Mar 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, after buffer enabled, opendal makes sure all upload parts is buffer size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants