mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 05:12:29 +08:00
add go-plugin deps to vendor
This commit is contained in:
@ -31,6 +31,7 @@ import (
|
||||
|
||||
"github.com/grafana/grafana/pkg/social"
|
||||
"github.com/grafana/grafana/pkg/tracing"
|
||||
tsdbplugins "github.com/grafana/grafana/pkg/tsdb/plugins"
|
||||
)
|
||||
|
||||
func NewGrafanaServer() models.GrafanaServer {
|
||||
@ -67,6 +68,13 @@ func (g *GrafanaServerImpl) Start() {
|
||||
login.Init()
|
||||
social.NewOAuthService()
|
||||
plugins.Init()
|
||||
client, err := tsdbplugins.Init()
|
||||
defer client.Kill()
|
||||
|
||||
if err != nil {
|
||||
g.log.Error("failed to start plugins", "error", err)
|
||||
g.Shutdown(1, "Startup failed")
|
||||
}
|
||||
|
||||
if err := provisioning.Init(g.context, setting.HomePath, setting.Cfg); err != nil {
|
||||
logger.Error("Failed to provision Grafana from config", "error", err)
|
||||
|
Reference in New Issue
Block a user