Below the steps i have follwed
- forked Grafana repo, followed the setup guide and run it locally.
- In
public/app/plugins/datasource/my-datasource-plugin
i copied the/src
folder of a plugin created with npx @grafana/create-plugin@latest - modified then the file built_in_plugins.ts adding the import for the plugin:
const myDatasourcePlugin = async () =>
await import(/* webpackChunkName: "myDatasourcePlugin" */ 'app/plugins/datasource/my-datasource-plugin/module');
and added it to the map below:
'core:plugin/my-datasource-plugin': myDatasourcePlugin ,
- run these two commands:
yarn dev && make run
The result is:
- Randomicly works fine
- The plugin is randomicly shown in the connection list (when this happens it is not present in the response of https://localhost:3000/api/gnet/plugins?includeDeprecated=true)
- randomicly the configEditor is not available