docs: public void registerMetrics(MetricRegistry metricRegistry, String pipelineId, String stageId) {
          if (id() == null) {
              LOG.debug("Not registering metrics for unsaved rule {}", name());
              return;
          }
          if (id() != null) {
              globalExecuted = registerGlobalMeter(metricRegistry, "executed");
              localExecuted = registerLocalMeter(metricRegistry, pipelineId, stageId, "executed");
  
              globalFailed = registerGlobalMeter(metricRegistry, "failed");
              localFailed = registerLocalMeter(metricRegistry, pipelineId, stageId, "failed");
  
              globalMatched = registerGlobalMeter(metricRegistry, "matched");
              localMatched = registerLocalMeter(metricRegistry, pipelineId, stageId, "matched");
  
              globalNotMatched = registerGlobalMeter(metricRegistry, "not-matched");
              localNotMatched = registerLocalMeter(metricRegistry, pipelineId, stageId, "not-matched");
  
          }
      }