Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e556df5b
Commit
e556df5b
authored
Oct 04, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tsdb): add draft implementation for influxdb
parent
d726f49a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
+45
-0
pkg/cmd/grafana-server/main.go
+1
-0
pkg/tsdb/influxdb/influxdb.go
+42
-0
pkg/tsdb/influxdb/models.go
+1
-0
public/app/plugins/datasource/influxdb/plugin.json
+1
-0
No files found.
pkg/cmd/grafana-server/main.go
View file @
e556df5b
...
@@ -20,6 +20,7 @@ import (
...
@@ -20,6 +20,7 @@ import (
_
"github.com/grafana/grafana/pkg/services/alerting/conditions"
_
"github.com/grafana/grafana/pkg/services/alerting/conditions"
_
"github.com/grafana/grafana/pkg/services/alerting/notifiers"
_
"github.com/grafana/grafana/pkg/services/alerting/notifiers"
_
"github.com/grafana/grafana/pkg/tsdb/graphite"
_
"github.com/grafana/grafana/pkg/tsdb/graphite"
_
"github.com/grafana/grafana/pkg/tsdb/influxdb"
_
"github.com/grafana/grafana/pkg/tsdb/prometheus"
_
"github.com/grafana/grafana/pkg/tsdb/prometheus"
_
"github.com/grafana/grafana/pkg/tsdb/testdata"
_
"github.com/grafana/grafana/pkg/tsdb/testdata"
)
)
...
...
pkg/tsdb/influxdb/influxdb.go
0 → 100644
View file @
e556df5b
package
influxdb
import
(
"context"
"crypto/tls"
"net/http"
"time"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/tsdb"
)
type
InfluxDBExecutor
struct
{
*
tsdb
.
DataSourceInfo
}
func
NewInfluxDBExecutor
(
dsInfo
*
tsdb
.
DataSourceInfo
)
tsdb
.
Executor
{
return
&
InfluxDBExecutor
{
dsInfo
}
}
var
(
glog
log
.
Logger
HttpClient
*
http
.
Client
)
func
init
()
{
glog
=
log
.
New
(
"tsdb.influxdb"
)
tsdb
.
RegisterExecutor
(
"influxdb"
,
NewInfluxDBExecutor
)
tr
:=
&
http
.
Transport
{
TLSClientConfig
:
&
tls
.
Config
{
InsecureSkipVerify
:
true
},
}
HttpClient
=
&
http
.
Client
{
Timeout
:
time
.
Duration
(
15
*
time
.
Second
),
Transport
:
tr
,
}
}
func
(
e
*
InfluxDBExecutor
)
Execute
(
ctx
context
.
Context
,
queries
tsdb
.
QuerySlice
,
context
*
tsdb
.
QueryContext
)
*
tsdb
.
BatchResult
{
panic
(
"missing implementation"
)
}
pkg/tsdb/influxdb/models.go
0 → 100644
View file @
e556df5b
package
influxdb
public/app/plugins/datasource/influxdb/plugin.json
View file @
e556df5b
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
"defaultMatchFormat"
:
"regex values"
,
"defaultMatchFormat"
:
"regex values"
,
"metrics"
:
true
,
"metrics"
:
true
,
"annotations"
:
true
,
"annotations"
:
true
,
"alerting"
:
true
,
"info"
:
{
"info"
:
{
"author"
:
{
"author"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment