Is it possible to adapt Grafana to be both monitoring & control application?

Hi all,
We are considering using Grafana as a base for our new project. I have quite a clear understanding of what can be done in terms of data visualization, but I was wondering if anyone tried expanding it beyond pure monitoring?
Would it be possible to use REST or MQTT API to issue control requests from inside of a panel plugin? Has anyone tried it?
I’d be grateful for some guidance :slight_smile

Thanks in advance,