I too struggled with getting the MQTT datasource working, but never did get it to work. Here is my error-laden experience: Help building backend datasource (MQTT for streaming data)
If you do get it working and can explain it here, I will personally nominate you to be the President of the Grafana Forums.