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
52c7edf2
Commit
52c7edf2
authored
Aug 07, 2018
by
Sven Klemm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename last fillmode to previous
parent
ee7602ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
public/app/plugins/datasource/mssql/partials/query.editor.html
+1
-1
public/app/plugins/datasource/mysql/partials/query.editor.html
+1
-1
public/app/plugins/datasource/postgres/partials/query.editor.html
+1
-1
No files found.
public/app/plugins/datasource/mssql/partials/query.editor.html
View file @
52c7edf2
...
@@ -55,7 +55,7 @@ Macros:
...
@@ -55,7 +55,7 @@ Macros:
- $__unixEpochFilter(column) -
>
column
>
= 1492750877 AND column
<
= 1492750877
- $__unixEpochFilter(column) -
>
column
>
= 1492750877 AND column
<
= 1492750877
- $__timeGroup(column, '5m'[, fillvalue]) -
>
CAST(ROUND(DATEDIFF(second, '1970-01-01', column)/300.0, 0) as bigint)*300.
- $__timeGroup(column, '5m'[, fillvalue]) -
>
CAST(ROUND(DATEDIFF(second, '1970-01-01', column)/300.0, 0) as bigint)*300.
by setting fillvalue grafana will fill in missing values according to the interval
by setting fillvalue grafana will fill in missing values according to the interval
fillvalue can be either a literal value, NULL or
last; last will fill in the last
seen value or NULL if none has been seen yet
fillvalue can be either a literal value, NULL or
previous; previous will fill in the previous
seen value or NULL if none has been seen yet
- $__timeGroupAlias(column, '5m'[, fillvalue]) -
>
CAST(ROUND(DATEDIFF(second, '1970-01-01', column)/300.0, 0) as bigint)*300 AS [time]
- $__timeGroupAlias(column, '5m'[, fillvalue]) -
>
CAST(ROUND(DATEDIFF(second, '1970-01-01', column)/300.0, 0) as bigint)*300 AS [time]
Example of group by and order by with $__timeGroup:
Example of group by and order by with $__timeGroup:
...
...
public/app/plugins/datasource/mysql/partials/query.editor.html
View file @
52c7edf2
...
@@ -55,7 +55,7 @@ Macros:
...
@@ -55,7 +55,7 @@ Macros:
- $__unixEpochFilter(column) -
>
time_unix_epoch
>
1492750877 AND time_unix_epoch
<
1492750877
- $__unixEpochFilter(column) -
>
time_unix_epoch
>
1492750877 AND time_unix_epoch
<
1492750877
- $__timeGroup(column,'5m'[, fillvalue]) -
>
cast(cast(UNIX_TIMESTAMP(column)/(300) as signed)*300 as signed)
- $__timeGroup(column,'5m'[, fillvalue]) -
>
cast(cast(UNIX_TIMESTAMP(column)/(300) as signed)*300 as signed)
by setting fillvalue grafana will fill in missing values according to the interval
by setting fillvalue grafana will fill in missing values according to the interval
fillvalue can be either a literal value, NULL or
last; last will fill in the last
seen value or NULL if none has been seen yet
fillvalue can be either a literal value, NULL or
previous; previous will fill in the previous
seen value or NULL if none has been seen yet
- $__timeGroupAlias(column,'5m') -
>
cast(cast(UNIX_TIMESTAMP(column)/(300) as signed)*300 as signed) AS "time"
- $__timeGroupAlias(column,'5m') -
>
cast(cast(UNIX_TIMESTAMP(column)/(300) as signed)*300 as signed) AS "time"
Example of group by and order by with $__timeGroup:
Example of group by and order by with $__timeGroup:
...
...
public/app/plugins/datasource/postgres/partials/query.editor.html
View file @
52c7edf2
...
@@ -55,7 +55,7 @@ Macros:
...
@@ -55,7 +55,7 @@ Macros:
- $__unixEpochFilter(column) -
>
column
>
= 1492750877 AND column
<
= 1492750877
- $__unixEpochFilter(column) -
>
column
>
= 1492750877 AND column
<
= 1492750877
- $__timeGroup(column,'5m'[, fillvalue]) -
>
(extract(epoch from column)/300)::bigint*300
- $__timeGroup(column,'5m'[, fillvalue]) -
>
(extract(epoch from column)/300)::bigint*300
by setting fillvalue grafana will fill in missing values according to the interval
by setting fillvalue grafana will fill in missing values according to the interval
fillvalue can be either a literal value, NULL or
last; last will fill in the last
seen value or NULL if none has been seen yet
fillvalue can be either a literal value, NULL or
previous; previous will fill in the previous
seen value or NULL if none has been seen yet
- $__timeGroupAlias(column,'5m') -
>
(extract(epoch from column)/300)::bigint*300 AS "time"
- $__timeGroupAlias(column,'5m') -
>
(extract(epoch from column)/300)::bigint*300 AS "time"
Example of group by and order by with $__timeGroup:
Example of group by and order by with $__timeGroup:
...
...
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