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
9b84b885
Commit
9b84b885
authored
Apr 28, 2016
by
Lucas Costa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support to Elasticsearch precision_threshold
parent
0c9a19e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
public/app/plugins/datasource/elasticsearch/metric_agg.js
+5
-0
public/app/plugins/datasource/elasticsearch/partials/metric_agg.html
+5
-0
No files found.
public/app/plugins/datasource/elasticsearch/metric_agg.js
View file @
9b84b885
...
...
@@ -68,6 +68,11 @@ function (angular, _, queryDef) {
}
switch
(
$scope
.
agg
.
type
)
{
case
'cardinality'
:
{
var
precision_threshold
=
$scope
.
agg
.
settings
.
precision_threshold
||
''
;
$scope
.
settingsLinkText
=
'Precision threshold: '
+
precision_threshold
;
break
;
}
case
'percentiles'
:
{
$scope
.
agg
.
settings
.
percents
=
$scope
.
agg
.
settings
.
percents
||
[
25
,
50
,
75
,
95
,
99
];
$scope
.
settingsLinkText
=
'Values: '
+
$scope
.
agg
.
settings
.
percents
.
join
(
','
);
...
...
public/app/plugins/datasource/elasticsearch/partials/metric_agg.html
View file @
9b84b885
...
...
@@ -58,6 +58,11 @@
<input
type=
"text"
class=
"gf-form-input max-width-12"
ng-model=
"agg.settings.percents"
array-join
ng-blur=
"onChange()"
></input>
</div>
<div
class=
"gf-form offset-width-7"
ng-if=
"agg.type === 'cardinality'"
>
<label
class=
"gf-form-label width-10"
>
Precision threshold
</label>
<input
type=
"number"
class=
"gf-form-input max-width-12"
ng-model=
"agg.settings.precision_threshold"
ng-blur=
"onChange()"
></input>
</div>
<div
ng-if=
"agg.type === 'extended_stats'"
>
<gf-form-switch
ng-repeat=
"stat in extendedStats"
class=
"gf-form offset-width-7"
label=
"{{stat.text}}"
label-class=
"width-10"
checked=
"agg.meta[stat.value]"
on-change=
"onChangeInternal()"
></gf-form-switch>
...
...
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