Skip to content

Commit

Permalink
change query frequency to 1hour (#15499)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohansong committed Aug 10, 2022
1 parent f143c8f commit f52bfb6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -52,7 +52,7 @@ public enum ToEmit {
NUM_ABNORMAL_SCHEDULED_SYNCS(countMetricEmission(() -> {
final var count = ReporterApp.configDatabase.query(MetricQueries::numOfJobsNotRunningOnSchedule);
MetricClientFactory.getMetricClient().gauge(OssMetricsRegistry.NUM_ABNORMAL_SCHEDULED_SYNCS, count);
})),
}), 1, TimeUnit.HOURS),
OVERALL_JOB_RUNTIME_IN_LAST_HOUR_BY_TERMINAL_STATE_SECS(countMetricEmission(() -> {
final var times = ReporterApp.configDatabase.query(MetricQueries::overallJobRuntimeForTerminalJobsInLastHour);
for (Pair<JobStatus, Double> pair : times) {
Expand Down

0 comments on commit f52bfb6

Please sign in to comment.