Skip to content

Commit

Permalink
Refactor job metricss (#2331)
Browse files Browse the repository at this point in the history
* refactor JobInstance refesh * fix job refesh npe * fix code style * Compatible with J Dk 8 * Modify the job refresh time to 5 秒之前 * fix alert npe * fix devops data * fix json parse error * refactor JobMetrics logic * remove recordStats * refactor JobMetrics * fix code style * fix code style * fix jdk8 * fix code style
  • Loading branch information
gaoyan1998 authored Sep 20, 2023
1 parent c2dc2b0 commit 7d966bf
Show file tree
Hide file tree
Showing 27 changed files with 402 additions and 417 deletions.
63 changes: 0 additions & 63 deletions dinky-admin/src/main/java/org/dinky/configure/MetricConfig.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

package org.dinky.configure.schedule.metrics;

import org.dinky.configure.MetricConfig;
import org.dinky.configure.schedule.BaseSchedule;
import org.dinky.context.MetricsContextHolder;
import org.dinky.data.annotation.GaugeM;
import org.dinky.data.enums.MetricsType;
import org.dinky.data.metrics.BaseMetrics;
Expand Down Expand Up @@ -93,7 +93,7 @@ public void updateState() {
metrics.setContent(metricsTotal);
metrics.setHeartTime(now);
metrics.setModel(MetricsType.LOCAL.getType());
MetricConfig.getMetricsQueue().add(metrics);
MetricsContextHolder.sendAsync(metrics);

log.debug("Collecting jvm information ends.");
}
Expand Down
Loading

0 comments on commit 7d966bf

Please sign in to comment.