apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.12k stars 897 forks source link

[Task] Display issue when monitoring name contains spaces #2151

Closed zhangshenghang closed 5 days ago

zhangshenghang commented 5 days ago

Description

Due to the code calculation logic, when the process name contains a space, it is now displayed as an & character, which does not look very convenient. Change & to \u2002 En Space. This also looks convenient and does not affect the program.

\u2002 Effect:

image

Current display:

image

expected result:

image

Server process display:

[root@test ~]# ps -ef|grep 12111
root     12111     1  0  2023 ?        19:13:14 /usr/bin/nps service

Task List

No response