mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(mqe): init commit
This commit is contained in:
parent
6a8138904e
commit
bd3259d07a
@ -21,6 +21,7 @@ import (
|
||||
_ "github.com/grafana/grafana/pkg/services/alerting/notifiers"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/graphite"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/influxdb"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/mqe"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/opentsdb"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/prometheus"
|
||||
_ "github.com/grafana/grafana/pkg/tsdb/testdata"
|
||||
|
33
pkg/tsdb/mqe/mqe.go
Normal file
33
pkg/tsdb/mqe/mqe.go
Normal file
@ -0,0 +1,33 @@
|
||||
package mqe
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/grafana/grafana/pkg/log"
|
||||
"github.com/grafana/grafana/pkg/tsdb"
|
||||
)
|
||||
|
||||
type MQEExecutor struct {
|
||||
*tsdb.DataSourceInfo
|
||||
}
|
||||
|
||||
func NewMQEExecutor(dsInfo *tsdb.DataSourceInfo) tsdb.Executor {
|
||||
return &MQEExecutor{dsInfo}
|
||||
}
|
||||
|
||||
var (
|
||||
glog log.Logger
|
||||
HttpClient *http.Client
|
||||
)
|
||||
|
||||
func init() {
|
||||
glog = log.New("tsdb.mqe")
|
||||
tsdb.RegisterExecutor("mqe", NewMQEExecutor)
|
||||
|
||||
HttpClient = tsdb.GetDefaultClient()
|
||||
}
|
||||
|
||||
func (e *MQEExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult {
|
||||
return &tsdb.BatchResult{}
|
||||
}
|
1
pkg/tsdb/mqe/types.go
Normal file
1
pkg/tsdb/mqe/types.go
Normal file
@ -0,0 +1 @@
|
||||
package mqe
|
Loading…
Reference in New Issue
Block a user