This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new a14aeb226 [bugfix] centos top10 shows missing one (#1870)
a14aeb226 is described below

commit a14aeb2265bc4f19d44c305843870b7ef2004b98
Author: Jast <[email protected]>
AuthorDate: Sun Apr 28 09:14:51 2024 +0800

    [bugfix] centos top10 shows missing one (#1870)
    
    Co-authored-by: zhangshenghang <[email protected]>
    Co-authored-by: zhangshenghang <[email protected]>
    Co-authored-by: tomsun28 <[email protected]>
---
 manager/src/main/resources/define/app-centos.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/manager/src/main/resources/define/app-centos.yml 
b/manager/src/main/resources/define/app-centos.yml
index 4f800a7d6..0da3077fc 100644
--- a/manager/src/main/resources/define/app-centos.yml
+++ b/manager/src/main/resources/define/app-centos.yml
@@ -467,7 +467,7 @@ metrics:
       privateKey: ^_^privateKey^_^
       timeout: ^_^timeout^_^
       reuseConnection: ^_^reuseConnection^_^
-      script: ps -aux | sort -k3nr | awk 'BEGIN{ print "pid cpu_usage 
mem_usage command" } {print $2, $3, $4, $11}'| head -n 10
+      script: ps -aux | sort -k3nr | awk 'BEGIN{ print "pid cpu_usage 
mem_usage command" } {print $2, $3, $4, $11}'| head -n 11
       parseType: multiRow
 
   - name: top_mem_process
@@ -508,5 +508,5 @@ metrics:
       privateKey: ^_^privateKey^_^
       timeout: ^_^timeout^_^
       reuseConnection: ^_^reuseConnection^_^
-      script: ps -aux | sort -k4nr | awk 'BEGIN{ print "pid cpu_usage 
mem_usage command" } {print $2, $3, $4, $11}'| head -n 10
+      script: ps -aux | sort -k4nr | awk 'BEGIN{ print "pid cpu_usage 
mem_usage command" } {print $2, $3, $4, $11}'| head -n 11
       parseType: multiRow


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

Reply via email to