Skip to content

Conversation

mbakht
Copy link
Contributor

@mbakht mbakht commented Aug 4, 2020

What does this PR do?

Adds stats for

  1. DNS queries
  2. Successful responses
  3. Failed responses

No explicit count for Timeouts. It should be 1 - (2 + 3)

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

Write there any instructions and details you may have to test your PR.

@mbakht mbakht added this to the 7.22.0 milestone Aug 4, 2020
@mbakht mbakht requested a review from a team as a code owner August 4, 2020 14:31
@mbakht mbakht self-assigned this Aug 4, 2020
Copy link
Contributor

@leeavital leeavital left a comment

Choose a reason for hiding this comment

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

did we also want to track packets that couldn't be mapped to a connection ?

@@ -755,7 +755,7 @@ func bindataPkgEbpfCTracerebpfdebugo() (*asset, error) {
name: "pkg/ebpf/c/tracer-ebpf-debug.o",
size: 59848,
md5checksum: "",
mode: os.FileMode(436),
mode: os.FileMode(420),
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI we're going to stop embedding the binaries inside the executable, so these changes should stop appearing

@mbakht
Copy link
Contributor Author

mbakht commented Aug 4, 2020

did we also want to track packets that couldn't be mapped to a connection ?

The stats are based on what is done on the snooper side - so it includes all DNS queries/responses irrespective of whether we can associate them with a connection or not.

@mbakht mbakht merged commit 45fcafe into master Aug 7, 2020
@mbakht mbakht deleted the mehedi.bakht/add-stats-for-dns-errors branch August 7, 2020 19:47
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