I believe I followed the following instructions and got it working:
If you're on 21.02, you don't need to do anything more than install collectd-moq-sqm (and -exec), add the specified lines/rule to collectd_exec_input, and possibly restart luci-app-statistics/collectd.