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
1332ddbc
Commit
1332ddbc
authored
Aug 16, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(mixed datasources): updated OpenTSDB data source query editor to new model, #436
parent
b30dfcf2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
22 deletions
+25
-22
public/app/plugins/datasource/influxdb/partials/query.editor.html
+11
-14
public/app/plugins/datasource/mixed/datasource.js
+1
-8
public/app/plugins/datasource/opentsdb/partials/query.editor.html
+0
-0
public/app/plugins/datasource/opentsdb/queryCtrl.js
+8
-0
public/css/less/tightform.less
+5
-0
No files found.
public/app/plugins/datasource/influxdb/partials/query.editor.html
View file @
1332ddbc
...
...
@@ -80,8 +80,7 @@
<div
class=
"tight-form"
ng-hide=
"target.rawQuery"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 44px"
></li>
<li
class=
"tight-form-item query-keyword"
style=
"width: 75px;"
>
<li
class=
"tight-form-item query-keyword tight-form-align"
style=
"width: 75px;"
>
FROM
</li>
<li>
...
...
@@ -94,9 +93,7 @@
<div
class=
"tight-form"
ng-hide=
"target.rawQuery"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 44px"
></li>
<li
class=
"tight-form-item query-keyword"
style=
"width: 75px;"
>
<li
class=
"tight-form-item query-keyword tight-form-align"
style=
"width: 75px;"
>
WHERE
</li>
...
...
@@ -109,8 +106,7 @@
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
ng-hide=
"target.rawQuery"
>
<li
class=
"tight-form-item"
style=
"width: 44px"
></li>
<li
class=
"tight-form-item query-keyword"
>
<li
class=
"tight-form-item query-keyword tight-form-align"
>
GROUP BY
</li>
...
...
@@ -144,13 +140,14 @@
Alias pattern
</li>
<li>
<input
type=
"text"
class=
"input-medium tight-form-input"
ng-model=
"target.alias"
spellcheck=
'false'
placeholder=
"alias"
ng-model-onblur
ng-change=
"get_data()"
>
</li>
</ul
>
<
div
class=
"clearfix"
></div
>
</
div
>
<input
type=
"text"
class=
"input-medium tight-form-input"
ng-model=
"target.alias"
spellcheck=
'false'
placeholder=
"alias"
ng-model-onblur
ng-change=
"get_data()"
></input
>
<
/li
>
</
ul
>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
</div>
public/app/plugins/datasource/mixed/datasource.js
View file @
1332ddbc
define
([
'angular'
,
'lodash'
,
'kbn'
,
],
function
(
angular
,
_
,
kbn
)
{
function
(
angular
,
_
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.services'
);
...
...
@@ -27,12 +26,6 @@ function (angular, _, kbn) {
return
{
data
:
_
.
flatten
(
_
.
pluck
(
results
,
'data'
))
};
});
// console.log(options.targets);
// // get from & to in seconds
// var from = kbn.parseDate(options.range.from).getTime();
// var to = kbn.parseDate(options.range.to).getTime();
//
// return backendSrv.get('/api/metrics/test', { from: from, to: to, maxDataPoints: options.maxDataPoints });
};
return
MixedDatasource
;
...
...
public/app/plugins/datasource/opentsdb/partials/query.editor.html
View file @
1332ddbc
This diff is collapsed.
Click to expand it.
public/app/plugins/datasource/opentsdb/queryCtrl.js
View file @
1332ddbc
...
...
@@ -8,6 +8,13 @@ function (angular, _, kbn) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
directive
(
'metricQueryEditorOpentsdb'
,
function
()
{
return
{
controller
:
'OpenTSDBQueryCtrl'
,
templateUrl
:
'app/plugins/datasource/opentsdb/partials/query.editor.html'
,
};
});
module
.
controller
(
'OpenTSDBQueryCtrl'
,
function
(
$scope
,
$timeout
)
{
$scope
.
init
=
function
()
{
...
...
@@ -113,6 +120,7 @@ function (angular, _, kbn) {
return
errs
;
}
$scope
.
init
();
});
});
public/css/less/tightform.less
View file @
1332ddbc
...
...
@@ -29,6 +29,7 @@
}
}
.spaced-form {
.tight-form {
margin: 7px 0;
...
...
@@ -209,3 +210,7 @@ select.tight-form-input {
}
}
.tight-form-align {
padding-left: 66px;
}
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