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
305f8d69
Commit
305f8d69
authored
Nov 16, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3234 from utkarshcmu/opentsdb-ui
Made opentsdb query editor consistent and tags are editable now
parents
93851a9a
8a184e9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
17 deletions
+27
-17
public/app/plugins/datasource/opentsdb/partials/query.editor.html
+20
-17
public/app/plugins/datasource/opentsdb/queryCtrl.js
+7
-0
No files found.
public/app/plugins/datasource/opentsdb/partials/query.editor.html
View file @
305f8d69
...
...
@@ -37,7 +37,7 @@
</ul>
<ul
class=
"tight-form-list"
role=
"menu"
>
<li
class=
"tight-form-item
"
style=
"width: 86
px"
>
<li
class=
"tight-form-item
query-keyword"
style=
"width: 100
px"
>
Metric
</li>
<li>
...
...
@@ -49,7 +49,7 @@
<i
class=
"fa fa-warning"
></i>
</a>
</li>
<li
class=
"tight-form-item"
>
<li
class=
"tight-form-item
query-keyword
"
>
Aggregator
</li>
<li>
...
...
@@ -62,7 +62,7 @@
</a>
</li>
<li
class=
"tight-form-item"
>
<li
class=
"tight-form-item
query-keyword
"
>
Alias:
<tip>
Use patterns like $tag_tagname to replace part of the alias for a tag value
</tip>
</li>
...
...
@@ -81,7 +81,7 @@
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
role=
"menu"
>
<li
class=
"tight-form-item tight-form-align
"
style=
"width: 86
px"
>
<li
class=
"tight-form-item tight-form-align
query-keyword"
style=
"width: 100
px"
>
Down sample
</li>
...
...
@@ -93,7 +93,7 @@
placeholder=
"interval (empty = auto)"
></input>
</li>
<li
class=
"tight-form-item"
>
<li
class=
"tight-form-item
query-keyword
"
>
Aggregator
</li>
...
...
@@ -104,8 +104,8 @@
</select>
</li>
<li
class=
"tight-form-item"
>
<editor-checkbox
text=
"Disable downsampling
"
model=
"target.disableDownsampling"
change=
"targetBlur()"
></editor-checkbox>
<li
class=
"tight-form-item
query-keyword
"
>
Disable downsampling
<editor-checkbox
text=
"
"
model=
"target.disableDownsampling"
change=
"targetBlur()"
></editor-checkbox>
</li>
</ul>
...
...
@@ -114,17 +114,20 @@
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
role=
"menu"
>
<li
class=
"tight-form-item tight-form-align
"
style=
"width: 86
px"
>
<li
class=
"tight-form-item tight-form-align
query-keyword"
style=
"width: 100
px"
>
Tags
</li>
<li
ng-repeat=
"(key, value) in target.tags track by $index"
class=
"tight-form-item"
>
{{key}}
=
{{value}}
<a
ng-click=
"removeTag(key)"
>
{{key}}
=
{{value}}
<a
ng-click=
"editTag(key, value)"
>
<i
class=
"fa fa-pencil"
></i>
</a>
<a
ng-click=
"removeTag(key)"
>
<i
class=
"fa fa-remove"
></i>
</a>
</li>
<li
class=
"tight-form-item"
ng-hide=
"addTagMode"
>
<li
class=
"tight-form-item
query-keyword
"
ng-hide=
"addTagMode"
>
<a
ng-click=
"addTag()"
>
<i
class=
"fa fa-plus"
></i>
</a>
...
...
@@ -154,15 +157,15 @@
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
role=
"menu"
>
<li
class=
"tight-form-item tight-form-align
"
style=
"width: 86
px"
>
<editor-checkbox
text=
"Rate
"
model=
"target.shouldComputeRate"
change=
"targetBlur()"
></editor-checkbox>
<li
class=
"tight-form-item tight-form-align
query-keyword"
style=
"width: 100
px"
>
Rate
<editor-checkbox
text=
"
"
model=
"target.shouldComputeRate"
change=
"targetBlur()"
></editor-checkbox>
</li>
<li
class=
"tight-form-item"
ng-hide=
"!target.shouldComputeRate"
>
<editor-checkbox
text=
"Counter
"
model=
"target.isCounter"
change=
"targetBlur()"
></editor-checkbox>
<li
class=
"tight-form-item
query-keyword
"
ng-hide=
"!target.shouldComputeRate"
>
Counter
<editor-checkbox
text=
"
"
model=
"target.isCounter"
change=
"targetBlur()"
></editor-checkbox>
</li>
<li
class=
"tight-form-item"
ng-hide=
"!target.isCounter || !target.shouldComputeRate"
>
<li
class=
"tight-form-item
query-keyword
"
ng-hide=
"!target.isCounter || !target.shouldComputeRate"
>
Counter Max:
</li>
...
...
@@ -172,7 +175,7 @@
placeholder=
"max value"
ng-model-onblur
ng-blur=
"targetBlur()"
></input>
</li>
<li
class=
"tight-form-item"
ng-hide=
"!target.isCounter || !target.shouldComputeRate"
>
<li
class=
"tight-form-item
query-keyword
"
ng-hide=
"!target.isCounter || !target.shouldComputeRate"
>
Reset Value:
</li>
<li
ng-hide=
"!target.isCounter || !target.shouldComputeRate"
>
...
...
public/app/plugins/datasource/opentsdb/queryCtrl.js
View file @
305f8d69
...
...
@@ -86,6 +86,13 @@ function (angular, _, kbn) {
$scope
.
targetBlur
();
};
$scope
.
editTag
=
function
(
key
,
value
)
{
$scope
.
removeTag
(
key
);
$scope
.
target
.
currentTagKey
=
key
;
$scope
.
target
.
currentTagValue
=
value
;
$scope
.
addTag
();
};
function
validateTarget
(
target
)
{
var
errs
=
{};
...
...
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