LLP2333 opened a new pull request, #1868:
URL: https://github.com/apache/hertzbeat/pull/1868

   ## What's changed?
   
   I fixed the issue with command monitoring without paths.This problem exists 
for Top10 CPU processes and Top10 Memory processes.
   For example
   ### Before  Top10 memory processes
   
![image](https://github.com/apache/hertzbeat/assets/61670545/075db3c1-68f8-43b7-943e-a869ad713618)
   ### Now  Top10 memory processes
   
![image](https://github.com/apache/hertzbeat/assets/61670545/cb4ebdd6-94bf-4f4f-aae7-004d074822aa)
   
![image](https://github.com/apache/hertzbeat/assets/61670545/1a8ad944-44a6-4c77-916f-88d9ec96611d)
   ### In addition
   I modified the process sorting method to use the --sort parameter of ps, 
which I think is more flexible and performs better than using the sort command.
   
![image](https://github.com/apache/hertzbeat/assets/61670545/dae3c48f-0794-41c3-8b63-02c56e55e49c)
   
   
   
   
   ## Checklist
   
   - [x]  I have read the [Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [ ]  I have written the necessary doc or comment.
   - [ ]  I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [ ] I have added the necessary [e2e 
tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have 
passed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to