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
ce74b1dd
Commit
ce74b1dd
authored
Nov 27, 2018
by
Mattia Rossi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Requested Backend changes, removed link in popover description for the offset field
parent
f6fc7f7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pkg/tsdb/elasticsearch/time_series_query.go
+3
-2
public/app/plugins/datasource/elasticsearch/partials/bucket_agg.html
+1
-2
No files found.
pkg/tsdb/elasticsearch/time_series_query.go
View file @
ce74b1dd
...
@@ -134,9 +134,10 @@ func addDateHistogramAgg(aggBuilder es.AggBuilder, bucketAgg *BucketAgg, timeFro
...
@@ -134,9 +134,10 @@ func addDateHistogramAgg(aggBuilder es.AggBuilder, bucketAgg *BucketAgg, timeFro
a
.
Interval
=
"$__interval"
a
.
Interval
=
"$__interval"
}
}
if
bucketAgg
.
Settings
.
Get
(
"offset"
)
.
MustString
(
""
)
!=
""
{
if
offset
,
err
:=
bucketAgg
.
Settings
.
Get
(
"offset"
)
.
String
();
err
==
nil
{
a
.
Offset
=
bucketAgg
.
Settings
.
Get
(
"offset"
)
.
MustString
(
""
)
a
.
Offset
=
offset
}
}
if
missing
,
err
:=
bucketAgg
.
Settings
.
Get
(
"missing"
)
.
String
();
err
==
nil
{
if
missing
,
err
:=
bucketAgg
.
Settings
.
Get
(
"missing"
)
.
String
();
err
==
nil
{
a
.
Missing
=
&
missing
a
.
Missing
=
&
missing
}
}
...
...
public/app/plugins/datasource/elasticsearch/partials/bucket_agg.html
View file @
ce74b1dd
...
@@ -74,8 +74,7 @@
...
@@ -74,8 +74,7 @@
<label
class=
"gf-form-label width-10"
>
<label
class=
"gf-form-label width-10"
>
Offset
Offset
<info-popover
mode=
"right-normal"
>
<info-popover
mode=
"right-normal"
>
Change the start value of each bucket by the specified positive (+) or negative offset (-) duration, such as 1h for an hour, or 1d for a day,
Change the start value of each bucket by the specified positive (+) or negative offset (-) duration, such as 1h for an hour, or 1d for a day
see https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units for further details
</info-popover>
</info-popover>
</label>
</label>
<input
class=
"gf-form-input max-width-12"
type=
"text"
ng-model=
"agg.settings.offset"
ng-change=
"onChangeInternal()"
>
<input
class=
"gf-form-input max-width-12"
type=
"text"
ng-model=
"agg.settings.offset"
ng-change=
"onChangeInternal()"
>
...
...
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