Skip to content

[Fix-16903] Fix monitor page cannot display well#16968

Merged
SbloodyS merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixMonitor
Jan 24, 2025
Merged

[Fix-16903] Fix monitor page cannot display well#16968
SbloodyS merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixMonitor

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Jan 21, 2025

Purpose of the pull request

close #16903

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@ruanwenjun ruanwenjun self-assigned this Jan 21, 2025
@ruanwenjun ruanwenjun added bug Something isn't working priority:high 3.3.0 labels Jan 21, 2025
@github-actions github-actions bot added UI ui and front end related backend labels Jan 21, 2025
@ruanwenjun ruanwenjun added this to the 3.3.0 milestone Jan 21, 2025
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Frontend build failed. @ruanwenjun

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixMonitor branch 2 times, most recently from b33e941 to 02f0164 Compare January 22, 2025 02:48
@github-actions github-actions bot added the test label Jan 22, 2025
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixMonitor branch 2 times, most recently from 39e4b5c to 4afbcd4 Compare January 22, 2025 06:05
@ruanwenjun ruanwenjun requested a review from SbloodyS January 22, 2025 08:34
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixMonitor branch from 4afbcd4 to bdd3ee4 Compare January 22, 2025 11:16
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixMonitor branch from bdd3ee4 to f77a616 Compare January 22, 2025 11:17
@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@ruanwenjun ruanwenjun requested a review from SbloodyS January 22, 2025 12:01
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM

.systemMemoryUsedPercentage((double) (totalSystemMemory - systemMemoryAvailable) / totalSystemMemory)
.diskUsed(diskToTalBytes - diskFreeBytes)
.diskTotal(diskToTalBytes)
.diskUsedPercentage((diskToTalBytes - diskFreeBytes) / diskToTalBytes)
Copy link
Member

Choose a reason for hiding this comment

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

nothing but want to make sure we store as float in stock and render as '\d %' right?

Copy link
Member Author

Choose a reason for hiding this comment

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

We will render as string by

<Gauge
    data={(
      JSON.parse(item.heartBeatInfo).diskUsage * 100
    ).toFixed(2)}
  />

It works well

image

@SbloodyS SbloodyS merged commit 899fb37 into apache:dev Jan 24, 2025
69 of 70 checks passed
@ruanwenjun ruanwenjun deleted the dev_wenjun_fixMonitor branch January 24, 2025 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.3.0 backend bug Something isn't working priority:high test UI ui and front end related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Monitor of server cannot display well

3 participants