部门:华林证券
产品线:
需求描述:
痛点:
功能现状:
[2023-09-13 20:50:38.101] ERROR [app-gateway,] 31030 — [taskScheduler-1] o.s.s.s.TaskUtils$LoggingErrorHandler 95: Unexpected error occurred in scheduled task
java.lang.IllegalArgumentException: Incorrect number of labels.
at io.prometheus.client.SimpleCollector.labels(SimpleCollector.java:65)
at com.szkingdom.koca.boot.actuator.metrics.util.RecordMetricsUtil.lambda$rotateAll$0(RecordMetricsUtil.java:81)
at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
at com.szkingdom.koca.boot.actuator.metrics.util.RecordMetricsUtil.rotateAll(RecordMetricsUtil.java:80)
at com.szkingdom.koca.boot.actuator.schedule.RequestDurationSecondsMaxScheduledTask.lambda$afterPropertiesSet$0(RequestDurationSecondsMaxScheduledTask.java:37)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
功能期望:
需求紧急程度:如:希望2023-10月解决