This is an automated email from the ASF dual-hosted git repository.
shown 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 1dd08b8b1 [improve]Centos network card information monitoring
optimization (#2626)
1dd08b8b1 is described below
commit 1dd08b8b19deb60c4037534661aed5b9fec67ad1
Author: Jast <[email protected]>
AuthorDate: Wed Aug 28 22:05:37 2024 +0800
[improve]Centos network card information monitoring optimization (#2626)
---
manager/src/main/resources/define/app-centos.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/manager/src/main/resources/define/app-centos.yml
b/manager/src/main/resources/define/app-centos.yml
index 55a138047..2954d1558 100644
--- a/manager/src/main/resources/define/app-centos.yml
+++ b/manager/src/main/resources/define/app-centos.yml
@@ -379,7 +379,7 @@ metrics:
privateKey: ^_^privateKey^_^
timeout: ^_^timeout^_^
reuseConnection: ^_^reuseConnection^_^
- script: cat /proc/net/dev | tail -n +3 | awk 'BEGIN{ print
"interface_name receive_bytes transmit_bytes"} {print $1,$2,$10}'
+ script: cat /proc/net/dev | tail -n +3 | awk 'BEGIN{ print
"interface_name receive_bytes transmit_bytes"} {gsub(":", "", $1); print
$1,$2,$10}'
parseType: multiRow
- name: disk_free
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]