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 compression card to pool dashboard #9507
Add compression card to pool dashboard #9507
Conversation
Hi @aruniiird. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@GowthamShanmugam , @afreen23 , @bipuladh , @cloudbehl , please take a look. |
frontend/packages/ceph-storage-plugin/src/queries/ceph-queries.ts
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
'|', | ||
)}'}`, | ||
[StorageDashboardQuery.POOL_COMPRESSION_RATIO]: `((ceph_pool_compress_under_bytes / ceph_pool_compress_bytes_used > 0) and on(pool_id) (((ceph_pool_compress_under_bytes > 0) / ceph_pool_stored_raw) * 100 > 0.5)) * on (pool_id) group_left(name)ceph_pool_metadata{name=~'${poolNames.join( | ||
'|', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering these queries are correct, Please check with @anmolsachan about these queries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked with @anmolsachan . Queries generally look good. But as per @anmolsachan , some general changes (which is general for all the querries, not just for compression querries), we may have to add prometheus recording rules, but on a later stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
Please resolve the conflicts and add some screenshots also |
d6d297b
to
857c75c
Compare
857c75c
to
20c0372
Compare
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
4345738
to
f9ba66b
Compare
Please share some screenshot here |
f9ba66b
to
aa41226
Compare
...ackages/ceph-storage-plugin/src/components/block-pool/dashbaord/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
{compressionEnabled && ( | ||
<> | ||
<DetailItem isLoading={loading} title={t('ceph-storage-plugin~Storage efficiency')}> | ||
{''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why empty ?
can you share screenshot as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GowthamShanmugam , @afreen23 , please take a look at the screen shot
963e40b
to
f8bcd80
Compare
Because in the mock-up there is a larger gap. Please see the side by side image below.
Please see the mock-up, heading/title is not that bigger than the value. Heading is just bold.
True, not an expert here, will try to push the value part to the end of the card. ............. Mockup Card ...................................................................... Actual Card .......... PS: Mock-up card's screenshot taken from the following link: https://marvelapp.com/prototype/64gfhgf/screen/80819536 |
304c28a
to
a6591ab
Compare
@vbnrh , I have updated the code and here are the screen shots, ........... Mockup Card ......................................................... Actual Card .................. Over all picture |
a6591ab
to
9abe54f
Compare
Addressed all the conflicts and rebased to the latest upstream master. |
/ok-to-test |
...ckages/ceph-storage-plugin/src/components/dashboards/block-pool/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ckages/ceph-storage-plugin/src/components/dashboards/block-pool/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ckages/ceph-storage-plugin/src/components/dashboards/block-pool/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ckages/ceph-storage-plugin/src/components/dashboards/block-pool/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
...ckages/ceph-storage-plugin/src/components/dashboards/block-pool/compression-details-card.tsx
Outdated
Show resolved
Hide resolved
9abe54f
to
dfe6805
Compare
@afreen23 , addressed all the review comments. Please take a look... |
dfe6805
to
ec7358f
Compare
{!compressionEnabled ? 'Disabled' : 'Enabled'} | ||
</DetailItem> | ||
</DetailsBody> | ||
<DetailsBody> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<DetailsBody> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Please resolve #9507 (comment) in a followup PR. Functionality looks good hence tagging.
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
ec7358f
to
37d31df
Compare
@bipuladh , the suggestion provided here, #9507 (comment), if added will change the way the card look. ........Your suggestion .......................................................................... Current...................... Tag was added intentionally. In order to avoid some confusion, I moved the |
<DetailsBody> | ||
<div> | ||
<DetailsBody> | ||
<DetailItem isLoading={loading} title={t('ceph-storage-plugin~Storage efficiency')}> | ||
<EfficiencyItemBody {...compressionEligibilityProps} /> | ||
<EfficiencyItemBody {...compressionRatioProps} /> | ||
<EfficiencyItemBody {...compressionSavingsProps} /> | ||
</DetailItem> | ||
</DetailsBody> | ||
</div> | ||
</DetailsBody> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bipuladh , moved the <DetailsBody>
into compressionEnabled
true part.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afreen23, aruniiird, bipuladh, GowthamShanmugam The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adding compression card to pool dashboard, that means this PR is on top of @GowthamShanmugam 's PR#9423.