Anchit
07/17/2023, 11:29 PMv0.50.7 on EKS and have metrics enabled. Metrics were working fine with previous versions and I started receiving these errors in the metrics pod
2023-07-17 23:10:46 ERROR i.a.m.r.Emitter(emit):221 - Exception querying database for metric:
java.lang.ClassCastException: class java.math.BigDecimal cannot be cast to class java.lang.Double (java.math.BigDecimal and java.lang.Double are in module java.base of loader 'bootstrap')
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:729) ~[?:?]
at io.airbyte.metrics.reporter.OldestRunningJob.lambda$new$1(Emitter.java:71) ~[io.airbyte.airbyte-metrics-reporter-0.50.7.jar:?]
at io.airbyte.metrics.reporter.Emitter.emit(Emitter.java:218) ~[io.airbyte.airbyte-metrics-reporter-0.50.7.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
I'm not even using the OldestRunningJob metric but looks like there's a type mismatch? Any help here?kapa.ai
07/17/2023, 11:29 PMkapa.ai
07/17/2023, 11:29 PMOldestRunningJob metric or the error you're encountering. However, you can refer to the [Airbyte documentation on collecting metrics](https://docs.airbyte.com/operator-guides/collecting-metrics) for more information on how metrics are handled in Airbyte. For more specific assistance, consider reaching out to the Airbyte community on their [Slack channel](https://airbytehq.slack.com) or [discussion forum](https://discuss.airbyte.io).