Collectd and ubus?

I would like to make a plugin for babeld to monitor the status of the mesh networking daemon. I added babeld ubus bindings to allow easy access of the important status information.

Instead of parsing the TCP server output, I would like to use ubus to parse those information and create status information. There was no collectd-plugin that used ubus already or?