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
7ad0904f
Commit
7ad0904f
authored
Jul 18, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
:Merge branch 'master' of github.com:grafana/grafana
parents
b9c41073
8f8ee28e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
CHANGELOG.md
+1
-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.
CHANGELOG.md
View file @
7ad0904f
...
...
@@ -5,6 +5,7 @@
*
**SingleStat**
: Add seriename as option in singlestat panel, closes
[
#4740
](
https://github.com/grafana/grafana/issues/4740
)
*
**Localization**
: Week start day now dependant on browser locale setting, closes
[
#3003
](
https://github.com/grafana/grafana/issues/3003
)
*
**Templating**
: Update panel repeats for variables that change on time refresh, closes
[
#5021
](
https://github.com/grafana/grafana/issues/5021
)
*
**Elasticsearch**
: Support to set Precision Threshold for Unique Count metric, closes
[
#4689
](
https://github.com/grafana/grafana/issues/4689
)
# 3.1.1 (unreleased / v3.1.x branch)
*
**IFrame embedding**
: Fixed issue of using full iframe height, fixes
[
#5605
](
https://github.com/grafana/grafana/issues/5606
)
...
...
public/app/plugins/datasource/elasticsearch/metric_agg.js
View file @
7ad0904f
...
...
@@ -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 @
7ad0904f
...
...
@@ -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