Backport #28338 to branch v24.3.x. This issue was created as a placeholder because the original PR's commit(s) could not be automatically cherry-picked.
Here are the commands to execute:
git checkout v24.3.x
git checkout -b manual-backport-28338-v24.3.x-198
git cherry-pick -x c82e2b8c8b
git push origin manual-backport-28338-v24.3.x-198
gh pr create \
--title "[v24.3.x] cloud_io/cache: Prevent double counting of cache metrics" \
--base "v24.3.x" \
--label "kind/backport" \
--head "manual-backport-28338-v24.3.x-198" \
--draft \
--repo "redpanda-data/redpanda" \
--milestone "v24.3.x-next" \
--body "Backport of PR https://github.com/redpanda-data/redpanda/pull/28338 "