New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: initial effort on reducing cardinality for warehouseID #4667
base: master
Are you sure you want to change the base?
Conversation
Important Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
a7be112
to
c92aff2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4667 +/- ##
==========================================
+ Coverage 74.47% 74.57% +0.09%
==========================================
Files 413 413
Lines 48752 48752
==========================================
+ Hits 36310 36358 +48
+ Misses 10056 10013 -43
+ Partials 2386 2381 -5 ☔ View full report in Codecov by Sentry. |
@@ -348,6 +350,7 @@ func (bcm *BackendConfigManager) persistSSLFileErrorStat( | |||
"module": "warehouse", | |||
"destType": destType, | |||
"warehouseID": misc.GetTagName(destID, sourceName, destName, misc.TailTruncateStr(sourceID, 6)), | |||
"sourceID": sourceID, | |||
"destinationID": destID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like destID
is in use in other places.
"destinationID": destID, | |
"destID": destID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yean, I noticed that as well. There are dis-similarities around destID vs destinationID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was discussing the same with @lvrach around the mismatch of tags. We thought of following these steps:
- Add additional tags where there are mismatches, like in say in this particular case we will add let's say destID.
- Check operator, if we have alerts or dashboards requires those tags, we can replace them, like in say in this particular case we will replace
destinationID
withdestID
. - Once we have no dependency we will remove it from the code, like in say removing
destinationID
from stat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from one use of destinationID
instead of destID
for a stat tag.
c92aff2
to
2cd1b60
Compare
As @Sidddddarth mentions, why not use |
This might break any existing alerting or monitoring dashboard right which uses these labels. To be more specific this alert. |
Description
Initial Cardinality Reduction Effort: The primary focus is on reducing the cardinality associated with
warehouseID
. This is necessary becausewarehouseID
's cardinality is influenced by variables likesourceName
anddestinationName
, which are subject to change. Additionally, the inclusion ofsourceName
anddestinationName
does not add significant value sincesourceID
anddestID
suffice for identification purposes.Current Plan Overview:
warehouseID
is utilized,sourceID
anddestID
are ensured to be available. For any instances where these identifiers are absent, they are added.warehouseID
: Once the new tags (sourceID
anddestID
) are consistently populated, the next step involves removingwarehouseID
from the metrics dashboard and alerts. Instead,sourceID
anddestID
will be used for contextual information if necessary. (PIPE-1089)warehouseID
from the application code. (PIPE-1090)This improved version provides clearer explanations and organizes the plan's steps for better readability and understanding.
Linear Ticket
Security