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
28e7f0f7
Commit
28e7f0f7
authored
Dec 17, 2015
by
carl bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'felixbarny-global_interval'
parents
e4985034
80d757b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletions
+23
-1
public/app/features/panel/panel_helper.js
+3
-1
public/app/plugins/datasource/elasticsearch/datasource.js
+1
-0
public/app/plugins/datasource/elasticsearch/partials/config.html
+19
-0
No files found.
public/app/features/panel/panel_helper.js
View file @
28e7f0f7
...
...
@@ -59,7 +59,9 @@ function (angular, _, $, kbn, dateMath, rangeUtil) {
scope
.
resolution
=
Math
.
ceil
(
$
(
window
).
width
()
*
(
scope
.
panel
.
span
/
12
));
}
scope
.
interval
=
kbn
.
calculateInterval
(
scope
.
range
,
scope
.
resolution
,
scope
.
panel
.
interval
);
var
panelInterval
=
scope
.
panel
.
interval
;
var
datasourceInterval
=
(
scope
.
datasource
||
{}).
interval
;
scope
.
interval
=
kbn
.
calculateInterval
(
scope
.
range
,
scope
.
resolution
,
panelInterval
||
datasourceInterval
);
};
this
.
applyPanelTimeOverrides
=
function
(
scope
)
{
...
...
public/app/plugins/datasource/elasticsearch/datasource.js
View file @
28e7f0f7
...
...
@@ -26,6 +26,7 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
this
.
timeField
=
datasource
.
jsonData
.
timeField
;
this
.
esVersion
=
datasource
.
jsonData
.
esVersion
;
this
.
indexPattern
=
new
IndexPattern
(
datasource
.
index
,
datasource
.
jsonData
.
interval
);
this
.
interval
=
datasource
.
jsonData
.
timeInterval
;
this
.
queryBuilder
=
new
ElasticQueryBuilder
({
timeField
:
this
.
timeField
,
esVersion
:
this
.
esVersion
,
...
...
public/app/plugins/datasource/elasticsearch/partials/config.html
View file @
28e7f0f7
...
...
@@ -42,3 +42,22 @@
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
<h5>
Default query settings
</h5>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 200px"
>
Group by time interval
</li>
<li>
<input
type=
"text"
class=
"input-medium tight-form-input input-xlarge"
ng-model=
"current.jsonData.timeInterval"
spellcheck=
'false'
placeholder=
"example: >10s"
>
</li>
<li
class=
"tight-form-item"
>
<i
class=
"fa fa-question-circle"
bs-tooltip=
"'Set a low limit by having a greater sign: example: >10s'"
data-placement=
"right"
></i>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
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