Repository navigation
fix: fix dropReason metrics labels - #12288
Merged
bradfitz merged 1 commit intoMay 31, 2024
Merged
Conversation
Contributor
Author
|
@andrew-d cheers! Do you need me to open an issue to appease issuebot, or does this count as "trivial"? |
Member
|
Thanks for the fix! An issue would be nice, or you can instead just include some metadata in the commit message like when it regressed. |
bradfitz
reviewed
May 30, 2024
bradfitz
reviewed
May 30, 2024
| s.packetsDroppedReasonCounters[dropReasonQueueHead] = s.packetsDroppedReason.Get("queue_head") | ||
| s.packetsDroppedReasonCounters[dropReasonQueueTail] = s.packetsDroppedReason.Get("queue_tail") | ||
| s.packetsDroppedReasonCounters[dropReasonWriteError] = s.packetsDroppedReason.Get("write_error") | ||
| s.packetsDroppedReasonCounters[dropReasonDupClient] = s.packetsDroppedReason.Get("dup_client") |
Member
There was a problem hiding this comment.
Looks like dup_client was the only missing one and all the others were fine? One was just renamed, but doesn't look like anything was reordered or off-by-one?
Contributor
Author
There was a problem hiding this comment.
No, queue_head, queue_tail and write_error were off by one, and dup_client was not included in the stats. E.g. I saw in stats:
"counter_packets_dropped_reason": {
"gone_disconnected": 0,
"gone_not_here": 20615,
"queue_head": 0,
"queue_tail": 0,
"unknown_dest": 26,
"unknown_dest_on_fwd": 0,
"write_error": 0
}
...that is, dropReasonQueueHead was getting tracked as gone_not_here in the stats.
Updates tailscale#2745 Updates tailscale#7552 Signed-off-by: Spike Curtis <[email protected]>
spikecurtis
force-pushed
the
spike/fix-drop-reason-stats-upstream
branch
from
May 31, 2024 09:08
1cc7fc3 to
82b1396
Compare
bradfitz
added a commit
that referenced
this pull request
May 31, 2024
The derp metrics got out of sync in 74eb99a (2023-03). They were fixed in 0380cbc (2024-05). This adds some further guardrails (atop the previous fix) to make sure they don't get out of sync again. Updates #12288 Change-Id: I809061a81f8ff92f45054d0253bc13871fc71634 Signed-off-by: Brad Fitzpatrick <[email protected]>
bradfitz
added a commit
that referenced
this pull request
May 31, 2024
The derp metrics got out of sync in 74eb99a (2023-03). They were fixed in 0380cbc (2024-05). This adds some further guardrails (atop the previous fix) to make sure they don't get out of sync again. Updates #12288 Change-Id: I809061a81f8ff92f45054d0253bc13871fc71634 Signed-off-by: Brad Fitzpatrick <[email protected]>
bradfitz
added a commit
that referenced
this pull request
May 31, 2024
The derp metrics got out of sync in 74eb99a (2023-03). They were fixed in 0380cbc (2024-05). This adds some further guardrails (atop the previous fix) to make sure they don't get out of sync again. Updates #12288 Change-Id: I809061a81f8ff92f45054d0253bc13871fc71634 Signed-off-by: Brad Fitzpatrick <[email protected]>
chen8945
pushed a commit
to Ckid-Home/tailscale
that referenced
this pull request
Jul 31, 2024
Updates tailscale#2745 Updates tailscale#7552 Signed-off-by: Spike Curtis <[email protected]>
chen8945
pushed a commit
to Ckid-Home/tailscale
that referenced
this pull request
Jul 31, 2024
The derp metrics got out of sync in 74eb99a (2023-03). They were fixed in 0380cbc (2024-05). This adds some further guardrails (atop the previous fix) to make sure they don't get out of sync again. Updates tailscale#12288 Change-Id: I809061a81f8ff92f45054d0253bc13871fc71634 Signed-off-by: Brad Fitzpatrick <[email protected]>
Asutorufa
pushed a commit
to Asutorufa/tailscale
that referenced
this pull request
Aug 23, 2024
Updates tailscale#2745 Updates tailscale#7552 Signed-off-by: Spike Curtis <[email protected]>
Asutorufa
pushed a commit
to Asutorufa/tailscale
that referenced
this pull request
Aug 23, 2024
The derp metrics got out of sync in 74eb99a (2023-03). They were fixed in 0380cbc (2024-05). This adds some further guardrails (atop the previous fix) to make sure they don't get out of sync again. Updates tailscale#12288 Change-Id: I809061a81f8ff92f45054d0253bc13871fc71634 Signed-off-by: Brad Fitzpatrick <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the
counter_packets_dropped_reasonmetric is using incorrect labels#2745 added
dropReasonDupClientwithout the corresponding metric label#7552 added the label "gone_not_here" without the corresponding
dropReasonThe actual reasons are
I noticed this while looking into DERP performance, since I was seeing a bunch of drops for
gone_not_herewhich is not a valid reason in present version.