Skip to content

[receiver/mysql] Add the total count of buffer pool pages#41252

Merged
andrzej-stencel merged 3 commits intoopen-telemetry:mainfrom
nenadnoveljic:mysql-total-buffer-pool-pages
Jul 24, 2025
Merged

[receiver/mysql] Add the total count of buffer pool pages#41252
andrzej-stencel merged 3 commits intoopen-telemetry:mainfrom
nenadnoveljic:mysql-total-buffer-pool-pages

Conversation

@nenadnoveljic
Copy link
Member

Description

Add the total count of buffer pool pages

@nenadnoveljic nenadnoveljic marked this pull request as ready for review July 11, 2025 13:07
@nenadnoveljic nenadnoveljic requested a review from a team as a code owner July 11, 2025 13:07
Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

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

Isn’t total the sum of the other data points? Is it worth reporting directly? Can this not be derived from existing metrics?

@nenadnoveljic
Copy link
Member Author

Isn’t total the sum of the other data points? Can this not be derived from existing metrics?

it should be total = data + free + misc

Is it worth reporting directly?

total is more likely to be correct, while data, free or misc can be wrong by orders of magnitude, for example due to the bug 59550.

@nenadnoveljic
Copy link
Member Author

Isn’t total the sum of the other data points? Can this not be derived from existing metrics?

it should be total = data + free + misc

Is it worth reporting directly?

total is more likely to be correct, while data, free or misc can be wrong by orders of magnitude, for example due to the bug 59550.

@atoulme : total is correct—it divides total memory by page size. data counts items in the LRU list, which can include both compressed and uncompressed versions of the same page, so some pages might be double-counted. Are you okay with moving forward with this PR?

@atoulme
Copy link
Contributor

atoulme commented Jul 16, 2025

Sounds good! Just need a codeowner to weigh in

@antonblock
Copy link
Contributor

Makes sense, I'll take a look soon

@ishleenk17
Copy link
Member

Minor nit. Change looks good.

Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
@atoulme atoulme added ready to merge Code review completed; ready to merge by maintainers and removed waiting-for-code-owners labels Jul 23, 2025
@andrzej-stencel andrzej-stencel merged commit ef04870 into open-telemetry:main Jul 24, 2025
192 of 195 checks passed
povilasv pushed a commit to coralogix/opentelemetry-collector-contrib-old-fork that referenced this pull request Jul 29, 2025
…etry#41252)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add the total count of buffer pool pages

---------

Co-authored-by: Antoine Toulme <antoine@toulme.name>
Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…etry#41252)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add the total count of buffer pool pages

---------

Co-authored-by: Antoine Toulme <antoine@toulme.name>
Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Code review completed; ready to merge by maintainers receiver/mysql

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants