* enable linting rules for opentsdb * remove core imports * update plugin.json * write backend standalone files * remove frontend core imports * add yarn workspace * remove core import for the plugin * update grafana dependency * update package.json * add jest config
16 lines
318 B
Go
16 lines
318 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend/datasource"
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
|
|
)
|
|
|
|
func main() {
|
|
if err := datasource.Manage("opentsdb", NewDatasource, datasource.ManageOpts{}); err != nil {
|
|
log.DefaultLogger.Error(err.Error())
|
|
os.Exit(1)
|
|
}
|
|
}
|