apache / apache/hertzbeat

[BUG] <The file system list on the Linux real-time data monitoring detail page cannot be displayed correctly>

Open
#1,865 4 comments 1 reaction 1 assignee Claimed by @LiangliangSui View on GitHub
bug good first issue
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

The list used for linux file system information cannot be displayed properly, and the capacity unit and disk occupancy unit of some disks cannot be displayed on the same line as the value.
![截图 2024-04-27 10-20-10](https://github.com/apache/hertzbeat/assets/61670545/f8e6e319-0406-48a8-9e04-f5123545c5e0)
![image](https://github.com/apache/hertzbeat/assets/61670545/829093bc-5d7d-45a5-9da0-e870c9d78633)

### Expected Behavior

Disk capacity units, disk occupancy units and corresponding values on the same line.
for example
![截图 2024-04-27 10-16-27](https://github.com/apache/hertzbeat/assets/61670545/698dab21-7bb1-40f6-be2d-27f2e6edff82)

![image](https://github.com/apache/hertzbeat/assets/61670545/962406bd-a118-4594-b692-4ad380e8a774)

### Steps To Reproduce

I started the project from the latest source code of the project, and the monitoring template I am using is a generic Linux template. The problem above appeared after I mounted /dev/nvme0n1p5 to the system using gnome desktop.

### Environment

```markdown
HertzBeat version(s):v1.5.0
System info:Linux arch 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64 GNU/Linux
node version: v18.20.2
java version:openJDK Runtime Environment (build 17.0.11+9)
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.