Does it support customized datasource?

There is no streaming plugin or support for Grafana yet. The experimental Snap App plugin streams live data as does the closed source Splunk plugin. So it is fully possible if someone builds a general purpose plugin for streaming data to Grafana. Or you could build your own data source plugin that accepts data via your pub-sub protocol.

Websockets and live data streams are a long-term goal on the Grafana roadmap.