File tree Expand file tree Collapse file tree
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe
extractor/dataregion/realtime/assigner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232import org .apache .iotdb .db .pipe .extractor .dataregion .realtime .PipeRealtimeDataRegionExtractor ;
3333import org .apache .iotdb .db .pipe .extractor .dataregion .realtime .matcher .CachedSchemaPatternMatcher ;
3434import org .apache .iotdb .db .pipe .extractor .dataregion .realtime .matcher .PipeDataRegionMatcher ;
35+ import org .apache .iotdb .db .pipe .metric .source .PipeAssignerMetrics ;
3536import org .apache .iotdb .db .pipe .metric .source .PipeDataRegionEventCounter ;
3637
3738import org .slf4j .Logger ;
@@ -70,6 +71,7 @@ public PipeDataRegionAssigner(final String dataRegionId) {
7071 this .matcher = new CachedSchemaPatternMatcher ();
7172 this .disruptor = new DisruptorQueue (this ::assignToExtractor , this ::onAssignedHook );
7273 this .dataRegionId = dataRegionId ;
74+ PipeAssignerMetrics .getInstance ().register (this );
7375 }
7476
7577 public void publishToAssign (final PipeRealtimeEvent event ) {
Original file line number Diff line number Diff line change 3030import org .apache .iotdb .db .pipe .metric .schema .PipeSchemaRegionExtractorMetrics ;
3131import org .apache .iotdb .db .pipe .metric .schema .PipeSchemaRegionListenerMetrics ;
3232import org .apache .iotdb .db .pipe .metric .sink .PipeDataRegionConnectorMetrics ;
33+ import org .apache .iotdb .db .pipe .metric .source .PipeAssignerMetrics ;
3334import org .apache .iotdb .db .pipe .metric .source .PipeDataRegionExtractorMetrics ;
3435import org .apache .iotdb .metrics .AbstractMetricService ;
3536import org .apache .iotdb .metrics .metricsets .IMetricSet ;
@@ -40,6 +41,7 @@ public class PipeDataNodeMetrics implements IMetricSet {
4041
4142 @ Override
4243 public void bindTo (final AbstractMetricService metricService ) {
44+ PipeAssignerMetrics .getInstance ().bindTo (metricService );
4345 PipeDataRegionExtractorMetrics .getInstance ().bindTo (metricService );
4446 PipeProcessorMetrics .getInstance ().bindTo (metricService );
4547 PipeDataRegionConnectorMetrics .getInstance ().bindTo (metricService );
@@ -56,6 +58,7 @@ public void bindTo(final AbstractMetricService metricService) {
5658
5759 @ Override
5860 public void unbindFrom (final AbstractMetricService metricService ) {
61+ PipeAssignerMetrics .getInstance ().unbindFrom (metricService );
5962 PipeDataRegionExtractorMetrics .getInstance ().unbindFrom (metricService );
6063 PipeProcessorMetrics .getInstance ().unbindFrom (metricService );
6164 PipeDataRegionConnectorMetrics .getInstance ().unbindFrom (metricService );
You can’t perform that action at this time.
0 commit comments