Add tablet-tags/--init_tags stats#16695
Merged
deepthi merged 8 commits intovitessio:mainfrom Sep 25, 2024
Merged
Conversation
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
4 tasks
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16695 +/- ##
==========================================
+ Coverage 69.41% 69.44% +0.02%
==========================================
Files 1570 1570
Lines 202945 202948 +3
==========================================
+ Hits 140880 140935 +55
+ Misses 62065 62013 -52 ☔ View full report in Codecov by Sentry. |
frouioui
approved these changes
Sep 2, 2024
Member
frouioui
left a comment
There was a problem hiding this comment.
This sounds good to me, the format in the /metrics output looks okay too.
Collaborator
|
We don't seem to have any tests for tablet stats. Now may be a good time to add some. |
Contributor
Author
|
@deepthi I moved the |
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
timvaillancourt
added a commit
to slackhq/vitess
that referenced
this pull request
Sep 30, 2024
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
4 tasks
tanjinx
pushed a commit
to slackhq/vitess
that referenced
this pull request
Jun 11, 2025
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Tanjin Xu <tanjin.xu@slack-corp.com>
5 tasks
tanjinx
added a commit
to slackhq/vitess
that referenced
this pull request
Jun 11, 2025
* Add tablet-tags/`--init_tags` stats (vitessio#16695) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Tanjin Xu <tanjin.xu@slack-corp.com> * Add `ChangeTabletTags` RPC to `vtctl`, `ChangeTags` RPC to `vttablet` (vitessio#16857) Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Tanjin Xu <tanjin.xu@slack-corp.com> --------- Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Tanjin Xu <tanjin.xu@slack-corp.com> Co-authored-by: Tim Vaillancourt <tim@timvaillancourt.com>
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.
Description
This PR adds stats for the key/values set by
--init_tagsinvttablet. I assume it's unlikely that a tablet would have enough tags to generate too much metric cardinalityThis allows a user to use this data to query/group tablets in observability tooling
Output example (heavily redacted):

Related Issue(s)
Resolves #16696
Checklist
Deployment Notes