Skip to content

Commit 6a0ae12

Browse files
authored
remove nettop (#43253)
### What does this PR do? Remove `nettop` CLI program. ### Motivation Unused CLI program that was never shipped with the agent. ### Describe how you validated your changes ### Additional Notes Co-authored-by: bryce.kahle <bryce.kahle@datadoghq.com>
1 parent fdbca8e commit 6a0ae12

3 files changed

Lines changed: 3 additions & 103 deletions

File tree

pkg/network/event_common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ type IPTranslation struct {
302302
}
303303

304304
func (c ConnectionStats) String() string {
305-
return ConnectionSummary(&c, nil)
305+
return connectionSummary(&c, nil)
306306
}
307307

308308
// IsExpired returns whether the connection is expired according to the provided time and timeout.
@@ -389,8 +389,8 @@ func BeautifyKey(key string) string {
389389
return fmt.Sprintf(keyFmt, pid, source, sport, dest, dport, family, typ)
390390
}
391391

392-
// ConnectionSummary returns a string summarizing a connection
393-
func ConnectionSummary(c *ConnectionStats, names map[util.Address][]dns.Hostname) string {
392+
// connectionSummary returns a string summarizing a connection
393+
func connectionSummary(c *ConnectionStats, names map[util.Address][]dns.Hostname) string {
394394
str := fmt.Sprintf(
395395
"[%s%s] [PID: %d] [%v:%d ⇄ %v:%d] ",
396396
c.Type,

pkg/network/nettop/main.go

Lines changed: 0 additions & 88 deletions
This file was deleted.

pkg/network/nettop/readme.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)