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 new metric to count total number of fetched bytes from bucket #44

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

thib-ack
Copy link
Contributor

@thib-ack thib-ack commented Feb 2, 2023

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

We are using a cloud provider which bills us on the outgoing trafic, so it is useful for me to know how many bytes are downloaded from the bucket.
I thought maybe others can have the same needs.

Of course if you think that could be useful but want a different implementation, let me know.

Verification

updated TestDownloadUploadDirConcurrency test in objstore_test.go but I can add more tests if you want.

Thanks,

@matej-g
Copy link
Contributor

matej-g commented Feb 6, 2023

Thank you for your contribution @thib-ack 🙇 , I think this change makes sense. Would you mind signing the commits so that we can ensure all the PR checks are green?

@thib-ack
Copy link
Contributor Author

thib-ack commented Feb 6, 2023

I have signed the commits 🖋️

Copy link
Contributor

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

Thank you @thib-ack! Sorry, looks like this got buried, merging now.

@matej-g matej-g merged commit af9531b into thanos-io:main Mar 3, 2023
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.

2 participants