From f52bfb6223e6495428a83a5394a6ee7d0491b869 Mon Sep 17 00:00:00 2001 From: Xiaohan Song Date: Wed, 10 Aug 2022 11:16:17 -0700 Subject: [PATCH] change query frequency to 1hour (#15499) --- .../src/main/java/io/airbyte/metrics/reporter/ToEmit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-metrics/reporter/src/main/java/io/airbyte/metrics/reporter/ToEmit.java b/airbyte-metrics/reporter/src/main/java/io/airbyte/metrics/reporter/ToEmit.java index 1411eb29bc81..67c75cce479a 100644 --- a/airbyte-metrics/reporter/src/main/java/io/airbyte/metrics/reporter/ToEmit.java +++ b/airbyte-metrics/reporter/src/main/java/io/airbyte/metrics/reporter/ToEmit.java @@ -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 pair : times) {