-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add command labels in tcp connect metrics and span attributes (#260)
* feat: add command info in tcp_connect metrics Signed-off-by: niejiangang <niejiangang@harmonycloud.cn> * feat: add pid and command info in trace Signed-off-by: niejiangang <niejiangang@harmonycloud.cn> * doc: add comm descrition in doc Signed-off-by: niejiangang <niejiangang@harmonycloud.cn> * doc: update config Signed-off-by: niejiangang <niejiangang@harmonycloud.cn> * fix: add command info in connectionStats Signed-off-by: niejiangang <niejiangang@harmonycloud.cn> * fix: add comm in aggreagation Selectors Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
- Loading branch information
Showing
13 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package tcpconnectanalyzer | ||
|
||
type Config struct { | ||
ChannelSize int `mapstructure:"channel_size"` | ||
WaitEventSecond int `mapstructure:"wait_event_second"` | ||
ChannelSize int `mapstructure:"channel_size"` | ||
WaitEventSecond int `mapstructure:"wait_event_second"` | ||
NeedProcessInfo bool `mapstructure:"need_process_info"` | ||
} | ||
|
||
func NewDefaultConfig() *Config { | ||
return &Config{ | ||
ChannelSize: 2000, | ||
WaitEventSecond: 10, | ||
NeedProcessInfo: false, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ const ( | |
) | ||
|
||
const ( | ||
Comm = "comm" | ||
Pid = "pid" | ||
Protocol = "protocol" | ||
IsError = "is_error" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters