-
Notifications
You must be signed in to change notification settings - Fork 498
Develop datasource plugin
Our goal in this doc is to develop a panel plugin named victoriaMetrics1, we named with 1 because there already exists a victoriaMetrics panel.
As we already know how to develop a panel plugin, so let's have a quick tutorial of how to develop a datasource plugin.
Enter DATAV_ROOT/ui/external-plugins/datasource directory, copy the victoriaMetrics plugin directory and rename it to victoriaMetrics1, then rename victoriaMetrics.svg to victoriaMetrics1.svg:
Now you should have a code layout as above, next, rename candlestick1/candlestick.svg to candlestick1/candlestick1.svg. In datav , the icon of external plugin must has a same name as plugin directory for automatically install.
Since we have prepared our plugin source codes, now let's install it to the source code of Datav.
Execute the script in DATAV_ROOT/ui/external-plugins :
go run buildPlugins.go
2023/09/26 09:49:08 Generate panel plugins file successfully!That's super easy, at this time, our new plugin candlestick1 is installed, you can develop this plugin now, but before start, we need to understand what has happened after calling the script.