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
22e88856
Commit
22e88856
authored
Sep 27, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(testdata): progress on test data stuff
parent
3ecd96e6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
296 additions
and
4 deletions
+296
-4
pkg/plugins/datasource_plugin.go
+1
-0
public/app/features/alerting/alert_tab_ctrl.ts
+2
-2
public/app/features/dashboard/dashboard_srv.ts
+2
-0
public/app/plugins/app/testdata/dashboards/graph_last_1h.json
+288
-2
public/app/plugins/app/testdata/datasource/plugin.json
+1
-0
public/app/plugins/datasource/graphite/plugin.json
+1
-0
public/app/plugins/datasource/prometheus/plugin.json
+1
-0
No files found.
pkg/plugins/datasource_plugin.go
View file @
22e88856
...
...
@@ -6,6 +6,7 @@ type DataSourcePlugin struct {
FrontendPluginBase
Annotations
bool
`json:"annotations"`
Metrics
bool
`json:"metrics"`
Alerting
bool
`json:"alerting"`
BuiltIn
bool
`json:"builtIn"`
Mixed
bool
`json:"mixed"`
App
string
`json:"app"`
...
...
public/app/features/alerting/alert_tab_ctrl.ts
View file @
22e88856
...
...
@@ -227,8 +227,8 @@ export class AlertTabCtrl {
var
datasourceName
=
foundTarget
.
datasource
||
this
.
panel
.
datasource
;
this
.
datasourceSrv
.
get
(
datasourceName
).
then
(
ds
=>
{
if
(
ds
.
meta
.
id
!==
'graphite'
&&
ds
.
meta
.
id
!==
'prometheus'
)
{
this
.
error
=
'
You dat
source does not support alerting queries'
;
if
(
!
ds
.
meta
.
alerting
)
{
this
.
error
=
'
The data
source does not support alerting queries'
;
}
else
if
(
this
.
templateSrv
.
variableExists
(
foundTarget
.
target
))
{
this
.
error
=
'Template variables are not supported in alert queries'
;
}
else
{
...
...
public/app/features/dashboard/dashboard_srv.ts
View file @
22e88856
...
...
@@ -30,6 +30,7 @@ export class DashboardModel {
snapshot
:
any
;
schemaVersion
:
number
;
version
:
number
;
revision
:
number
;
links
:
any
;
gnetId
:
any
;
meta
:
any
;
...
...
@@ -42,6 +43,7 @@ export class DashboardModel {
this
.
events
=
new
Emitter
();
this
.
id
=
data
.
id
||
null
;
this
.
revision
=
data
.
revision
;
this
.
title
=
data
.
title
||
'No Title'
;
this
.
autoUpdate
=
data
.
autoUpdate
;
this
.
description
=
data
.
description
;
...
...
public/app/plugins/app/testdata/dashboards/graph_last_1h.json
View file @
22e88856
{
"revision"
:
2
,
"title"
:
"TestData - Graph Panel Last 1h"
,
"tags"
:
[
"testdata"
],
"revision"
:
1
"tags"
:
[
"grafana-test"
],
"style"
:
"dark"
,
"timezone"
:
"browser"
,
"editable"
:
true
,
"hideControls"
:
false
,
"sharedCrosshair"
:
false
,
"rows"
:
[
{
"collapse"
:
false
,
"editable"
:
true
,
"height"
:
"250px"
,
"panels"
:
[
{
"aliasColors"
:
{},
"bars"
:
false
,
"datasource"
:
"Grafana TestData"
,
"editable"
:
true
,
"error"
:
false
,
"fill"
:
1
,
"id"
:
1
,
"isNew"
:
true
,
"legend"
:
{
"avg"
:
false
,
"current"
:
false
,
"max"
:
false
,
"min"
:
false
,
"show"
:
true
,
"total"
:
false
,
"values"
:
false
},
"lines"
:
true
,
"linewidth"
:
2
,
"nullPointMode"
:
"connected"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"span"
:
4
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"refId"
:
"A"
,
"scenario"
:
"random_walk"
,
"target"
:
""
,
"scenarioId"
:
"no_data_points"
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeShift"
:
null
,
"title"
:
"No Data Points Warning"
,
"tooltip"
:
{
"msResolution"
:
false
,
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"cumulative"
},
"type"
:
"graph"
,
"xaxis"
:
{
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
],
"links"
:
[]
},
{
"aliasColors"
:
{},
"bars"
:
false
,
"datasource"
:
"Grafana TestData"
,
"editable"
:
true
,
"error"
:
false
,
"fill"
:
1
,
"id"
:
2
,
"isNew"
:
true
,
"legend"
:
{
"avg"
:
false
,
"current"
:
false
,
"max"
:
false
,
"min"
:
false
,
"show"
:
true
,
"total"
:
false
,
"values"
:
false
},
"lines"
:
true
,
"linewidth"
:
2
,
"nullPointMode"
:
"connected"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"span"
:
4
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"refId"
:
"A"
,
"scenario"
:
"random_walk"
,
"target"
:
""
,
"scenarioId"
:
"datapoints_outside_range"
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeShift"
:
null
,
"title"
:
"Datapoints Outside Range Warning"
,
"tooltip"
:
{
"msResolution"
:
false
,
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"cumulative"
},
"type"
:
"graph"
,
"xaxis"
:
{
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
],
"links"
:
[]
}
],
"title"
:
"New row"
},
{
"title"
:
"New row"
,
"height"
:
"250px"
,
"editable"
:
true
,
"collapse"
:
false
,
"panels"
:
[
{
"aliasColors"
:
{},
"bars"
:
false
,
"datasource"
:
"Grafana TestData"
,
"editable"
:
true
,
"error"
:
false
,
"fill"
:
1
,
"id"
:
3
,
"isNew"
:
true
,
"legend"
:
{
"avg"
:
false
,
"current"
:
false
,
"max"
:
false
,
"min"
:
false
,
"show"
:
true
,
"total"
:
false
,
"values"
:
false
},
"lines"
:
true
,
"linewidth"
:
2
,
"nullPointMode"
:
"connected"
,
"percentage"
:
false
,
"pointradius"
:
5
,
"points"
:
false
,
"renderer"
:
"flot"
,
"seriesOverrides"
:
[],
"span"
:
8
,
"stack"
:
false
,
"steppedLine"
:
false
,
"targets"
:
[
{
"refId"
:
"A"
,
"scenario"
:
"random_walk"
,
"target"
:
""
,
"scenarioId"
:
"random_walk"
}
],
"thresholds"
:
[],
"timeFrom"
:
null
,
"timeShift"
:
null
,
"title"
:
"Random walk series"
,
"tooltip"
:
{
"msResolution"
:
false
,
"shared"
:
true
,
"sort"
:
0
,
"value_type"
:
"cumulative"
},
"type"
:
"graph"
,
"xaxis"
:
{
"mode"
:
"time"
,
"name"
:
null
,
"show"
:
true
,
"values"
:
[]
},
"yaxes"
:
[
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
},
{
"format"
:
"short"
,
"label"
:
null
,
"logBase"
:
1
,
"max"
:
null
,
"min"
:
null
,
"show"
:
true
}
],
"links"
:
[]
}
]
}
],
"time"
:
{
"from"
:
"now-6h"
,
"to"
:
"now"
},
"timepicker"
:
{
"refresh_intervals"
:
[
"5s"
,
"10s"
,
"30s"
,
"1m"
,
"5m"
,
"15m"
,
"30m"
,
"1h"
,
"2h"
,
"1d"
],
"time_options"
:
[
"5m"
,
"15m"
,
"1h"
,
"6h"
,
"12h"
,
"24h"
,
"2d"
,
"7d"
,
"30d"
]
},
"templating"
:
{
"list"
:
[]
},
"annotations"
:
{
"list"
:
[]
},
"schemaVersion"
:
13
,
"version"
:
4
,
"links"
:
[],
"gnetId"
:
null
}
public/app/plugins/app/testdata/datasource/plugin.json
View file @
22e88856
...
...
@@ -4,6 +4,7 @@
"id"
:
"grafana-testdata-datasource"
,
"metrics"
:
true
,
"alerting"
:
true
,
"annotations"
:
true
,
"info"
:
{
...
...
public/app/plugins/datasource/graphite/plugin.json
View file @
22e88856
...
...
@@ -8,6 +8,7 @@
],
"metrics"
:
true
,
"alerting"
:
true
,
"annotations"
:
true
,
"info"
:
{
...
...
public/app/plugins/datasource/prometheus/plugin.json
View file @
22e88856
...
...
@@ -8,6 +8,7 @@
],
"metrics"
:
true
,
"alerting"
:
true
,
"annotations"
:
true
,
"info"
:
{
...
...
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