Skip to content

Drastically reduce ss output#4346

Merged
therve merged 2 commits into
masterfrom
therve/network-short-ss-output
Aug 13, 2019
Merged

Drastically reduce ss output#4346
therve merged 2 commits into
masterfrom
therve/network-short-ss-output

Conversation

@therve

@therve therve commented Aug 12, 2019

Copy link
Copy Markdown
Contributor

Instead of retrieving the whole output of the ss command, pass it through shell calls to only get the bits that we need.

Comment thread network/datadog_checks/network/network.py Outdated
@therve
therve force-pushed the therve/network-short-ss-output branch from d830cc1 to b3c41c4 Compare August 12, 2019 14:35
@therve therve changed the title Pull request for therve/network-short-ss-output Drastically reduce ss output Aug 12, 2019
Instead of retrieving the whole output of the `ss` command, pass it
through shell calls to only get the bits that we need.
@therve
therve force-pushed the therve/network-short-ss-output branch from b3c41c4 to a143124 Compare August 12, 2019 15:53
1 similar comment
Comment thread network/datadog_checks/network/network.py
ofek
ofek previously approved these changes Aug 13, 2019

@ofek ofek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@therve
therve merged commit 0ddff1a into master Aug 13, 2019
@therve
therve deleted the therve/network-short-ss-output branch August 13, 2019 15:50
therve added a commit that referenced this pull request Aug 30, 2019
In #4346 we aggregated the output to reduce parsing time, but a bug was
introduced where only the latest state was used for states that are
combined (like SYN and FIN states). This adds a test and fixes it.
therve added a commit that referenced this pull request Aug 30, 2019
In #4346 we aggregated the output to reduce parsing time, but a bug was
introduced where only the latest state was used for states that are
combined (like SYN and FIN states). This adds a test and fixes it.
ofek pushed a commit that referenced this pull request Aug 30, 2019
In #4346 we aggregated the output to reduce parsing time, but a bug was
introduced where only the latest state was used for states that are
combined (like SYN and FIN states). This adds a test and fixes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants