-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Metric for upsert tables count #12505
Metric for upsert tables count #12505
Conversation
if (tableConfig == null) { | ||
LOGGER.warn("Found null table config for table: {}. Resetting table config metrics.", tableNameWithType); | ||
_controllerMetrics.setValueOfTableGauge(tableNameWithType, ControllerGauge.REPLICATION_FROM_CONFIG, 0); | ||
return; | ||
} | ||
if (tableConfig.isUpsertEnabled()) { |
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.
Shall we also move _offlineTableCount
and _realTimeTableCount
metric update here?
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.
Done
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12505 +/- ##
============================================
- Coverage 61.75% 61.72% -0.03%
Complexity 207 207
============================================
Files 2436 2449 +13
Lines 133233 133507 +274
Branches 20636 20687 +51
============================================
+ Hits 82274 82409 +135
- Misses 44911 45015 +104
- Partials 6048 6083 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This PR adds a metric to get the count of tables which have upsert enabled.