-
Notifications
You must be signed in to change notification settings - Fork 751
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
[GOBBLIN-1736] Add metrics for change stream monitor and mysql quota manager #3593
Conversation
@@ -80,18 +87,21 @@ public void init(Collection<Dag<JobExecutionPlan>> dags) { | |||
|
|||
@Override | |||
public void checkQuota(Collection<Dag.DagNode<JobExecutionPlan>> dagNodes) throws IOException { | |||
try (Connection connection = this.quotaStore.dataSource.getConnection()) { | |||
try (Connection connection = this.quotaStore.dataSource.getConnection(); | |||
Timer.Context context = metricContext.timer(RuntimeMetrics.GOBBLIN_MYSQL_QUOTA_MANAGER_CHECK_QUOTA_TIME).time()) { |
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.
when do we call stop for this?
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.
This is in try clause, when this try section finish, the context will close automatically
public static final String GOBBLIN_MYSQL_QUOTA_MANAGER_QUOTA_EXCEEDS_REQUESTS = ServiceMetricNames.GOBBLIN_SERVICE_PREFIX + "gobblin.mysql.quota.manager.quotaExceeds.requests"; | ||
public static final String GOBBLIN_MYSQL_QUOTA_MANAGER_CHECK_QUOTA_TIME = ServiceMetricNames.GOBBLIN_SERVICE_PREFIX + "gobblin.mysql.quota.manager.check.quota.time"; |
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.
Names are a bit hard to understand without reading the code GOBBLIN_MYSQL_QUOTA_MANAGER_QUOTA_REQUESTS_EXCEEDED
so it implies number of requests exceeding quota. gobblin_mysql_quota_manager_time_to_check_quota
for the second, is it measuring amount of time it takes to do the whole check?
Codecov Report
@@ Coverage Diff @@
## master #3593 +/- ##
============================================
- Coverage 46.88% 46.87% -0.01%
- Complexity 10660 10673 +13
============================================
Files 2118 2120 +2
Lines 82981 83078 +97
Branches 9238 9252 +14
============================================
+ Hits 38902 38943 +41
- Misses 40515 40565 +50
- Partials 3564 3570 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
private ContextAwareMeter killsInvoked; | ||
private ContextAwareMeter resumesInvoked; | ||
private ContextAwareMeter unexpectedErrors; | ||
private Meter messageProcessedMeter; |
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.
why do you use normal Meter
instead of ContextAwareMeter
? Also we should end all the names in "Meter" or none of them ie: messagesProcessed
or killsInvokedMeter
…manager (apache#3593) * address comments * use connectionmanager when httpclient is not cloesable * [GOBBLIN-1730] Include flow execution id when try to cancel/submit job using SimpleKafkaSpecProducer * remove unnecessary dependency * [GOBBLIN-1736] Add metrics for change stream monitor and mysql quota manager * Revert "remove unnecessary dependency" This reverts commit d6871dc. * Revert "[GOBBLIN-1730] Include flow execution id when try to cancel/submit job using SimpleKafkaSpecProducer" This reverts commit f13e6ea. * address comments * address comments Co-authored-by: Zihan Li <[email protected]>
* upstream/master: [GOBBLIN-1747] add job.name and job.id to kafka and compaction workunits (apache#3607) [GOBBLIN-1746] Add fs.uri to FsDatasetDescriptor to support copy between volumes in GaaS (apache#3605) [GOBBLIN-1743] Ensure GobblinTaskRunner works without Yarn use (apache#3602) [GOBBLIN-1745] Fix bug in SimpleKafkaSpecProducer (apache#3604) [GOBBLIN-1739]Define Datanodes and Dataset Descriptor for Iceberg (apache#3596) do not close DestinationDatasetHandlerService prematurely (apache#3601) [GOBBLIN-1720]Add ancestors owner permissions preservations for iceberg distcp (apache#3577) [HOTFIX] Fix checkstyleMain (apache#3600) [GOBBLIN-1736] Add metrics for change stream monitor and mysql quota manager (apache#3593) [GOBBLIN-1737] Fix bug when using mysql user quota manager (apache#3595) Correct a log line and GTE with currect number of total task count (apache#3591)
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
Add metrics for change stream monitor and mysql quota manager to monitor the health of the components in warm standby mode
Tests
unit test
Commits