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
f8b3c0a6
Commit
f8b3c0a6
authored
Feb 05, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(influxdb): add default interval setting
closes #1552
parent
6f9896c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
public/app/plugins/datasource/influxdb/datasource.ts
+1
-1
public/app/plugins/datasource/influxdb/partials/config.html
+17
-0
No files found.
public/app/plugins/datasource/influxdb/datasource.ts
View file @
f8b3c0a6
...
...
@@ -19,7 +19,7 @@ export function InfluxDatasource(instanceSettings, $q, backendSrv, templateSrv)
this
.
name
=
instanceSettings
.
name
;
this
.
database
=
instanceSettings
.
database
;
this
.
basicAuth
=
instanceSettings
.
basicAuth
;
this
.
interval
=
(
instanceSettings
.
jsonData
||
{}).
timeInterval
;
this
.
supportAnnotations
=
true
;
this
.
supportMetrics
=
true
;
...
...
public/app/plugins/datasource/influxdb/partials/config.html
View file @
f8b3c0a6
...
...
@@ -33,3 +33,20 @@
</div>
<br>
<h4>
Default query settings
</h4>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 200px"
>
Group by time interval
</li>
<li>
<input
type=
"text"
class=
"input-medium tight-form-input input-xlarge"
ng-model=
"ctrl.current.jsonData.timeInterval"
spellcheck=
'false'
placeholder=
"example: >10s"
>
</li>
<li
class=
"tight-form-item"
>
<i
class=
"fa fa-question-circle"
bs-tooltip=
"'Set a low limit by having a greater sign: example: >10s'"
data-placement=
"right"
></i>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
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