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
2e1e7462
Commit
2e1e7462
authored
Mar 23, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #218 from mavimo/feature/influx-query-functions
[InfluxDB] Added more query functions
parents
69b91892
6fb36acc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/app/controllers/influxTargetCtrl.js
+1
-0
src/app/partials/influxdb/editor.html
+5
-1
No files found.
src/app/controllers/influxTargetCtrl.js
View file @
2e1e7462
...
@@ -15,6 +15,7 @@ function (angular) {
...
@@ -15,6 +15,7 @@ function (angular) {
$scope
.
target
.
function
=
'mean'
;
$scope
.
target
.
function
=
'mean'
;
}
}
$scope
.
functions
=
[
'count'
,
'mean'
,
'sum'
,
'min'
,
'max'
,
'mode'
,
'distinct'
,
'median'
,
'derivative'
,
'stddev'
,
'first'
,
'last'
];
$scope
.
oldSeries
=
$scope
.
target
.
series
;
$scope
.
oldSeries
=
$scope
.
target
.
series
;
$scope
.
$on
(
'typeahead-updated'
,
function
(){
$scope
.
$on
(
'typeahead-updated'
,
function
(){
$timeout
(
$scope
.
get_data
);
$timeout
(
$scope
.
get_data
);
...
...
src/app/partials/influxdb/editor.html
View file @
2e1e7462
...
@@ -74,7 +74,11 @@
...
@@ -74,7 +74,11 @@
function
function
</li>
</li>
<li>
<li>
<select
class=
"input-medium grafana-target-segment-input"
ng-change=
"get_data()"
ng-model=
"target.function"
ng-options=
"f for f in ['mean', 'sum', 'min', 'max', 'median', 'derivative', 'stddev']"
></select>
<select
class=
"input-medium grafana-target-segment-input"
ng-change=
"get_data()"
ng-model=
"target.function"
ng-options=
"f for f in functions"
></select>
</li>
</li>
</li>
<li
class=
"grafana-target-segment"
>
<li
class=
"grafana-target-segment"
>
group by time
group by time
...
...
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