I try to create Datasource (DS) plugin to display data from my project. But I’m very confused how to do it.
There are some methods used in other DS-plugins
1. IBM APM DS - native angularjs
<span class="gf-form-select-wrapper">
<select class="gf-form-input gf-size-auto"
ng-model="ctrl.target.timeAttribute"
ng-options="v.value as v.name for v in ctrl.timeAttributes">
</select>
</span>
Are exists any docs about type of gf-form-dropdown, metric-segmen-model and their opts (e.g. allow-custom)? I try to find something except this without any result
Could you’ll please explain how gf-form-dropdown populates data? I’m trying to create a dynamic dropdown (with json values that have been reduced to an array in my query_ctrl.js file) and need to populate gf-form-dropdown with it, but unable to get it to the “view”/html page and hence unable to populate my dropdown.
translates from a representation described in, what I think is the correct, javascript file.
This is a frustratingly high barrier to entry as someone who’s trying to contribute to the community and add functionality to Grafana by building a new datasource plugin which will likely have wider appeal than just my own interests.