I am attempting to add variable support to a datasource plugin I have been working on. As far as I can tell I should be trying to make use of
templateSrv to achieve this objective but it is currently beyond me how to access this definition when developing a plugin using the recommended React-based approach leveraging @grafana react modules. Is it at all possible?
I have attempted to gain access in a brute force manner similar to How to change a dashboard variable value from a plugin? but this leads to compilation errors as the
DataSourceApi definition has no
I’d really like some guidance on how to develop custom datasources with templating support. Any pointers would be greatly appreciated.