Skip to content

HDDS-14219. Add metrics for ReadBlock#9753

Open
ss77892 wants to merge 3 commits intoapache:masterfrom
ss77892:HDDS-14219
Open

HDDS-14219. Add metrics for ReadBlock#9753
ss77892 wants to merge 3 commits intoapache:masterfrom
ss77892:HDDS-14219

Conversation

@ss77892
Copy link
Contributor

@ss77892 ss77892 commented Feb 12, 2026

What changes were proposed in this pull request?

new metrics for recently added ReadBlock functionality.
Original patch was created by @rich7420

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14219

How was this patch tested?

Manually with HDDS-14453 applied.
The following dashboards were updated while read operations are performed:
Data read per Volume
Read Ops
Read Block Traffic
Total Read Block Traffic
Read Block Ops
Combined Chunk and Block Traffic

@ss77892
Copy link
Contributor Author

ss77892 commented Feb 12, 2026

The failure is unrelated to the commits.

.getContainerData();
HddsVolume volume = containerData.getVolume();
if (volume != null) {
volume.getVolumeIOStats().incReadTime(endTime - startTime);

Choose a reason for hiding this comment

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

can it be done in a single call? for each read we had to update all these metrics, there is no reason to do 3 separate calls

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, added the helper.

Copy link

@yandrey321 yandrey321 left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants