Sven Klemm
7177f19436
Merge branch 'master' into postgres-query-builder
2018-08-27 11:23:55 +02:00
Sven Klemm
da8696ed95
fix handling of variable interpolation for IN expresions
2018-08-26 22:43:03 +02:00
Torkel Ödegaard
e1beaaa0f7
tslint: tslint to const fixes part3 ( #13036 )
2018-08-26 21:52:57 +02:00
Torkel Ödegaard
35c00891e7
tslint: more const fixes ( #13035 )
2018-08-26 20:19:23 +02:00
Torkel Ödegaard
314b645857
tslint: changing vars -> const ( #13034 )
2018-08-26 18:43:07 +02:00
Torkel Ödegaard
9b978b7203
tslint: autofix of let -> const ( #13033 )
2018-08-26 17:14:40 +02:00
Sven Klemm
21e7b0b92d
add min interval to postgres datasource
2018-08-25 18:14:39 +02:00
Marcus Efraimsson
6995242b8b
copy and docs update for alert notification reminders
2018-08-24 19:13:52 +02:00
Tobias Skarhed
8a99fa269d
WIP Update tslint ( #12922 )
...
* Interface linting rule
* fix: changed model names in store files so that the interface names do not conflict with the model names
2018-08-24 16:48:47 +02:00
Marcus Efraimsson
49f9276df0
Merge pull request #12967 from franciscocpg/custom-all-value-variable-interpolation
...
Replacing variable interpolation in "All value" value
2018-08-24 15:40:55 +02:00
Marcus Efraimsson
a04d531d35
Merge pull request #12999 from alexanderzobnin/fix-12486-cherry-pick
...
Heatmap: fix tooltip and crosshair in firefox
2018-08-23 18:27:59 +02:00
Patrick O'Carroll
050902a1e7
fixed so animation starts as soon as one pushes the button and animation stops if login failed
2018-08-23 15:31:25 +02:00
Sven Klemm
ea110b5931
Merge branch 'master' into postgres-query-builder
2018-08-23 14:33:55 +02:00
Alexander Zobnin
060fb1af05
tests: fix missing tests (with .jest suffix)
2018-08-23 13:00:15 +03:00
Marcus Efraimsson
34e448c6d4
Merge remote-tracking branch 'origin/master' into alerting_reminder
2018-08-22 18:08:50 +02:00
Marcus Efraimsson
15d950ce35
update copy/ux for configuring alerting notification reminders
2018-08-22 18:06:05 +02:00
Alexander Zobnin
8dc1675574
heatmap: fix tooltip bug in firefox
2018-08-22 15:36:17 +03:00
Sven Klemm
1b5486ae7f
Merge branch 'master' into postgres-query-builder
2018-08-21 21:58:04 +02:00
Sven Klemm
02c5d36c0b
fix tableSegment and timeColumnSegment after table suggestion
2018-08-21 20:12:45 +02:00
Marcus Efraimsson
775e95bde4
Merge pull request #12959 from grafana/11890_variables
...
Fix: Template variables are executing excessive queries
2018-08-21 10:40:47 +02:00
Marcus Efraimsson
6ace01fbed
Merge pull request #12893 from grafana/davkal/12889-explore-fix-rate-filter
...
Explore: Fix label filtering for rate queries
2018-08-21 10:37:38 +02:00
Marcus Efraimsson
dc60848319
Merge pull request #12876 from grafana/davkal/explore-rate-hinting
...
Explore: still show rate hint if query is complex
2018-08-21 10:37:12 +02:00
Marcus Efraimsson
dd796bfbe3
Merge remote-tracking branch 'origin/master' into davkal/12889-explore-fix-rate-filter
2018-08-21 09:51:17 +02:00
Marcus Efraimsson
75db4d8eee
Merge remote-tracking branch 'origin/master' into davkal/explore-rate-hinting
2018-08-21 09:48:07 +02:00
Marcus Efraimsson
8f875951cb
Merge remote-tracking branch 'origin/master' into davkal/explore-facetting-filtered
2018-08-21 09:40:39 +02:00
Marcus Efraimsson
352a26780c
Merge pull request #12873 from grafana/davkal/explore-fix-split
...
Explore: Fix initial state in split view
2018-08-21 09:38:06 +02:00
David
6316d637f1
Explore: Apply tab completion suggestion on Enter ( #12904 )
...
- if the suggestions menu is open, apply the selected item on Enter
- if not open, run the queries
2018-08-20 19:22:55 +02:00
Pierre GIRAUD
72efd73c3b
Show min-width option only for horizontal repeat ( #12981 )
2018-08-20 19:22:30 +02:00
Marcus Efraimsson
470e7cc6db
add suggestions for reminder frequency and change copy
2018-08-20 18:23:48 +02:00
Marcus Efraimsson
6d2136b853
Merge remote-tracking branch 'origin/master' into alerting_reminder
2018-08-20 13:29:30 +02:00
Francisco Guimarães
0223a75de0
Refresh query variable when another variable is used in regex field ( #12961 )
2018-08-20 11:56:12 +02:00
Sven Klemm
e04127e430
unify quoting
2018-08-18 16:09:12 +02:00
Sven Klemm
49319fbdea
prefill editor with first metric table
2018-08-18 13:21:08 +02:00
Sven Klemm
ff2564900f
only allow 1 filter macro in where clause
2018-08-18 12:34:19 +02:00
Sven Klemm
c1890dbb6d
fix timeColumnType assignment
2018-08-18 12:28:05 +02:00
Sven Klemm
9699d7a166
make suggested filter macro depend on type
2018-08-18 12:11:10 +02:00
Sven Klemm
18ce6fc280
use unixEpochGroup macro for unix timestamp
2018-08-18 12:04:32 +02:00
Sven Klemm
998bb6ebe3
Merge branch 'master' into postgres-query-builder
2018-08-18 11:54:39 +02:00
Francisco Guimarães
d58986872c
Replacing variable interpolation in "All value" value
2018-08-17 11:04:32 -03:00
Marcus Efraimsson
2bb87446be
Merge pull request #12955 from grafana/12951-login-buttons
...
Login button issue in light theme
2018-08-17 15:31:31 +02:00
Marcus Efraimsson
313a8bd033
Merge pull request #12891 from svenklemm/unixepochgroup
...
add $__unixEpochGroup and $__unixEpochGroupAlias to sql datasources
2018-08-17 14:41:33 +02:00
Marcus Efraimsson
d6ad1ced6d
when value in variable changes, identify which variable(s) to update
...
Given you have variables a, b, c, d where b depends on a, c depends on b, c, d depends on a.
When updating a only an update of b and d should be triggered since c depends on b
and c will be updated eventually when the update of b are finished.
2018-08-17 12:20:21 +02:00
Patrick O'Carroll
190432296d
removed inverse btn styling and added bgColor to generic oauth and grafana.com login buttons, added styling so log in button uses dark theme inverse btn styling both for dark and light theme
2018-08-17 10:40:57 +02:00
Sven Klemm
8e4db8cc3a
suggest operators depending on datatype
2018-08-17 10:38:23 +02:00
Sven Klemm
28f97a2450
update persisted parts on param change
2018-08-16 13:23:38 +02:00
Sven Klemm
e84a1cbcc5
persist datatype information
2018-08-16 12:50:32 +02:00
Sven Klemm
8ced29a0e7
Don't do value suggestions for numeric and timestamp
2018-08-16 11:48:36 +02:00
Patrick O'Carroll
8877200ef4
created a class for loading buttons, added a button for when login slow on login page
2018-08-16 10:58:47 +02:00
Sven Klemm
735c4abe6c
rename postgres_query.jest.ts to .test.ts
2018-08-15 12:06:32 +02:00
Sven Klemm
907e8fd77c
fix variable escaping
2018-08-15 11:37:30 +02:00
Sven Klemm
a2f4441f9d
autodetect timescaledb when version >= 9.6
2018-08-15 10:42:15 +02:00
Sven Klemm
2d12801186
detect postgres version for saved datasources
2018-08-15 09:48:06 +02:00
Sven Klemm
2606f6e715
use pointer cursor for buttons in query editor
2018-08-15 09:21:17 +02:00
Sven Klemm
6d8ad3b076
require postgres 9.4+ for ordered set aggregate functions
2018-08-14 15:49:37 +02:00
Sven Klemm
9d022766ee
add postgres version to datasource config
2018-08-14 15:45:55 +02:00
Sven Klemm
c90eb45cef
only show first/last aggregate when timescaledb is enabled
2018-08-14 15:29:29 +02:00
Sven Klemm
e12d07dd68
keep jsonData in PostgresDatasource
2018-08-14 15:27:58 +02:00
Sven Klemm
5b3b0295e8
Merge branch 'master' into postgres-query-builder
2018-08-14 15:10:16 +02:00
Benoît Knecht
7ec146df99
social: add GitLab authentication backend
...
GitLab could already be used as an authentication backend by properly
configuring `auth.generic_oauth`, but then there was no way to authorize
users based on their GitLab group membership.
This commit adds a `auth.gitlab` backend, similar to `auth.github`, with
an `allowed_groups` option that can be set to a list of groups whose
members should be allowed access to Grafana.
2018-08-14 14:11:48 +02:00
Marcus Efraimsson
660530a3a6
Merge pull request #12914 from dehrax/12224-final
...
Karma to Jest: rename and cleanup
2018-08-14 12:55:23 +02:00
Sven Klemm
15c8ef6c95
Merge branch 'master' into postgres-query-builder
2018-08-14 12:51:03 +02:00
Torkel Ödegaard
a1ed3ae094
feat: add auto fit panels to shortcut modal, closes #12768
2018-08-14 12:26:08 +02:00
Marcus Efraimsson
74077be19e
Merge pull request #12680 from svenklemm/timebucket
...
[postgres] add timescaledb option to postgres datasource
2018-08-14 12:12:43 +02:00
Marcus Efraimsson
ddc83c2a72
Merge pull request #12897 from dehrax/12224-renderer
...
WIP Karma to Jest: heatmap renderer (refactor)
2018-08-14 11:16:48 +02:00
Marcus Efraimsson
77ee032e41
Merge pull request #12809 from dehrax/12224-share-modal-ctrl
...
Karma to Jest: share_modal_ctrl
2018-08-14 10:57:15 +02:00
Tobias Skarhed
a65589a5fb
Rename test files
2018-08-14 10:52:41 +02:00
Marcus Efraimsson
03aed21d4b
Merge pull request #12598 from kichristensen/TimeRangeVariables
...
Support timeFilter in query templating for InfluxDB
2018-08-14 10:24:21 +02:00
Marcus Efraimsson
8dbc75ceea
Merge pull request #12844 from grafana/10705_dash_links
...
Use uid when linking to dashboards internally in a dashboard
2018-08-14 09:16:43 +02:00
Tobias Skarhed
53bab1a84b
Remove tests and logs
2018-08-14 09:15:14 +02:00
Torkel Ödegaard
7e0482e78d
Fix for Graphite function parameter quoting ( #12907 )
...
* fix: graphite function parameters should never be quoted for boolean, node, int and float types, fixes #11927
* Update gfunc.ts
2018-08-14 08:52:51 +02:00
Marcus Efraimsson
36e808834d
don't render hidden columns in table panel ( #12911 )
2018-08-14 08:50:22 +02:00
Tobias Skarhed
fa6d25af72
Remove comment
2018-08-13 16:36:22 +02:00
Tobias Skarhed
be7b663369
Cleanup
2018-08-13 16:36:22 +02:00
Tobias Skarhed
38422ce8a4
All tests passing
2018-08-13 16:36:22 +02:00
Tobias Skarhed
35694a76ef
Class to function. Half tests passing
2018-08-13 16:36:22 +02:00
Tobias Skarhed
739bee0207
Karma to Jest: graph (refactor) ( #12860 )
...
* Begin conversion
* Test setup started
* Begin rewrite of graph
* Rewrite as class
* Some tests passing
* Fix binding errors
* Half tests passing
* Call buildFlotPairs. More tests passing
* All tests passing
* Remove test test
* Remove Karma test
* Make methods out of event functions
* Rename GraphElement
2018-08-13 16:08:01 +02:00
Tobias Skarhed
472b880939
Add React container
2018-08-13 15:51:58 +02:00
Marcus Efraimsson
39669e5002
fix redirect to panel when using an outdated dashboard slug ( #12901 )
2018-08-13 15:41:15 +02:00
David
1c185ef8d8
Add commit to external stylesheet url ( #12902 )
...
- currently only the release is used as a fingerprint which produces
caching issues for all lastest master builds
- also add build commit to url fingerprint
- make bra also watch go html template files
2018-08-13 15:40:52 +02:00
Marcus Efraimsson
d110343e53
Merge pull request #12838 from grafana/12476-show-teams-on-profile
...
show teams on profile
2018-08-13 15:16:04 +02:00
Patrick O'Carroll
535bab1baa
now hides team header when no teams + fix for list hidden when only one team
2018-08-13 15:07:29 +02:00
Tobias Skarhed
e6057e08de
Rename to HeatmapRenderer
2018-08-13 14:24:15 +02:00
Tobias Skarhed
2e2de38b31
Mock things
2018-08-13 13:55:47 +02:00
David Kaltschmidt
978e89657e
Explore: Fix label filtering for rate queries
...
- exclude `]` from match expression for selector injection to ignore
range vectors like `[10m]`
2018-08-13 12:53:12 +02:00
Sven Klemm
3f5d325e5b
Merge branch 'master' into postgres-query-builder
2018-08-13 12:40:00 +02:00
Sven Klemm
8c4d59363e
add $__unixEpochGroup to mssql datasource
2018-08-13 12:23:42 +02:00
Sven Klemm
fbc67a1c64
add $__unixEpochGroup to mysql datasource
2018-08-13 12:17:05 +02:00
Sven Klemm
bfe28ee061
Add $__unixEpochGroup macro to postgres datasource
2018-08-13 12:08:14 +02:00
Patrick O'Carroll
bdd9af0864
changed const members to filteredMembers to trigger get filtered members, changed input value to team.search ( #12885 )
2018-08-13 11:34:16 +02:00
Sven Klemm
c9bbdf244c
get timecolumn datatype on timecolumn change
2018-08-13 11:29:35 +02:00
Tobias Skarhed
a79c43420a
Add mocks
2018-08-13 10:57:32 +02:00
Sven Klemm
1dd8192d51
fix datatype query
2018-08-13 09:57:46 +02:00
Julien Pivotto
48364f0111
Add support for $__range_s ( #12883 )
...
Fixes #12882
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2018-08-13 07:53:41 +02:00
Sven Klemm
d8606ddfb0
Merge branch 'master' into postgres-query-builder
2018-08-12 10:02:18 +02:00
David Kaltschmidt
87745e6e44
Explore: label selector for logging
...
- query all available label keys for logs
- query all values for each key
- build cascader options with label values by key
- lots of temporarily added conditions to reuse the promquery field
2018-08-10 16:41:21 +02:00
Tobias Skarhed
520aad819d
Replace element
2018-08-10 16:30:51 +02:00
Tobias Skarhed
076bfea362
Rewrite heatmap to class
2018-08-10 15:35:47 +02:00
David Kaltschmidt
0f5945c557
Explore: still show rate hint if query is complex
...
- action hint currently only works for very simple queries
- show a hint w/o action otherwise
2018-08-10 15:29:21 +02:00
David Kaltschmidt
a0fbe3c296
Explore: Filter out existing labels in label suggestions
...
- a valid selector returns all possible labels from the series API
- we only want to suggest the label keys that are not part of the
selector yet
2018-08-10 14:45:09 +02:00
Daniel Lee
2770a7bc0c
Merge pull request #12843 from pgiraud/plugin_readme_links
...
Convert URL-like text to links in plugins readme
2018-08-10 14:01:05 +02:00
Daniel Lee
71630e4a7b
Merge pull request #12856 from grafana/12855-team-members-delete-button
...
Delete button for team members page
2018-08-10 13:46:13 +02:00
David Kaltschmidt
e832f91fb6
Fix initial state in split explore
...
- remove `edited` from query state to reset queries
- clear more properties in state
2018-08-10 13:37:15 +02:00
Patrick O'Carroll
277c735814
replaced with EmptyListCta
2018-08-10 11:31:35 +02:00
Tobias Skarhed
9188f7423c
Begin conversion
2018-08-10 09:35:19 +02:00
Patrick O'Carroll
1d1370d11d
changed messaging
2018-08-10 08:27:22 +02:00
Sven Klemm
a4a33d80db
mention time_bucket in timescaledb tooltip
2018-08-09 17:30:46 +02:00
Marcus Efraimsson
1bb3cf1c31
keep legend scroll position when series are toggled ( #12845 )
2018-08-09 16:04:56 +03:00
Patrick O'Carroll
f339b3502a
replaced confirm delete modal with deleteButton component in teams members list
2018-08-09 12:56:55 +02:00
Patrick O'Carroll
584a9cd942
[wip]added empty list cta to team list, if statement toggles view for when the list is empty or not
2018-08-09 11:05:20 +02:00
David Kaltschmidt
9d66eeb10c
Fix padding for metrics chooser in explore
2018-08-09 10:21:54 +02:00
Sven Klemm
acd1acba2d
revert passing ctrl to testDatasource
2018-08-09 10:05:35 +02:00
Sven Klemm
c3aad10047
change timescaledb to checkbox instead of select
2018-08-09 10:05:35 +02:00
Sven Klemm
b987aee7cf
add timescaledb option to postgres datasource
...
This adds an option to the postgres datasource config for
timescaledb support. When set to auto it will check for
timescaledb when testing the datasource.
When this option is enabled the $__timeGroup macro will
use the time_bucket function from timescaledb to group
times by an interval.
This also passes the datasource edit control to testDatasource
to allow for setting additional settings, this might be useful
for other datasources aswell which have optional or version
dependant features which can be queried.
2018-08-09 10:05:35 +02:00
David Kaltschmidt
128a5d98e1
Explore: expand recording rules for queries
...
- load recording rules from prometheus
- map rule name to rule query
- query hint to detect recording rules in query
- click on hint fix expands rule name to query
2018-08-08 16:56:21 +02:00
David
c1b9bbc2cf
Explore: Query hints for prometheus ( #12833 )
...
* Explore: Query hints for prometheus
- time series are analyzed on response
- hints are shown per query
- some hints have fixes
- fix rendered as link after hint
- click on fix executes the fix action
* Added tests for determineQueryHints()
* Fix index for rate hints in explore
2018-08-08 17:50:30 +03:00
Pierre GIRAUD
d7fb704e27
Convert URL-like text to links in plugins readme
2018-08-08 16:07:33 +02:00
Marcus Efraimsson
e97251fe28
skip target _self to remove full page reload
2018-08-08 16:01:35 +02:00
Marcus Efraimsson
8dfe4a97ef
use uid when linking to dashboards internally in a dashboard
2018-08-08 16:01:01 +02:00
Sven Klemm
13d0fa4b9a
add previous fill mode to query builder
2018-08-08 12:23:41 +02:00
Sven Klemm
3b6454ab88
Merge branch 'master' into postgres-query-builder
2018-08-08 12:09:17 +02:00
Patrick O'Carroll
a94406ac53
added more info about the teams
2018-08-08 11:22:47 +02:00
Patrick O'Carroll
ca06893e69
removed mock-teams, now gets teams from backend
2018-08-08 10:50:27 +02:00
Marcus Efraimsson
8952137ea2
Merge pull request #12753 from svenklemm/sql-fillmode-last
...
Add fill mode to fill in previously seen value when point is missing to SQL datasources
2018-08-08 10:29:56 +02:00
Patrick O'Carroll
b0ddc15e1a
team list for profile page + mock teams
2018-08-08 09:23:36 +02:00
Sven Klemm
52c7edf2f4
rename last fillmode to previous
2018-08-07 21:11:51 +02:00
David
91d04b87ad
Merge pull request #12821 from grafana/davkal/explore-query-ux
...
Explore: prometheus query helpers
2018-08-07 17:56:08 +02:00
David Kaltschmidt
2961c3b3b9
Review feedback
...
- use color variables for cascader styles
- fix Table value type
2018-08-07 17:42:00 +02:00
Marcus Efraimsson
cfe81510f9
Merge pull request #12796 from dehrax/12768-panel-heights
...
WIP: Fit panels to screen height
2018-08-07 15:57:40 +02:00
Tobias Skarhed
2ad358215a
Remove window
2018-08-07 14:49:11 +02:00
Tobias Skarhed
a0da66610e
Fix url param errors
2018-08-07 14:48:22 +02:00
David Kaltschmidt
642374de25
Explore: Metrics chooser for prometheus
...
- load all histogrammable metrics on start, based on `{le!=''}` series
query
- select dropdown shows all those metrics as well as histograms in a
special group
- select a metric will write fill the metric in the query box
- if a histogram is chosen, it will write a complete
`histogram_quantile` query
- added new dependency: rc-cascader
2018-08-07 13:43:32 +02:00
David Kaltschmidt
307248f713
Add clear row button
...
- clears the content of a query row
2018-08-07 13:43:32 +02:00
David Kaltschmidt
00f04f4ea0
Add clear button to Explore
...
- Clear All button to clear all queries and results
- moved result viewer buttons below query rows to make it more clear
that they govern result options
2018-08-07 13:42:32 +02:00
David Kaltschmidt
f1c1633d15
Explore: show message if queries did not return data
...
- every result viewer displays a message that it received an empty data
set
2018-08-07 13:03:33 +02:00
David
0f94d2f5f1
Fix closing parens completion for prometheus queries in Explore ( #12810 )
...
- position was determined by SPACE, but Prometheus selectors can
contain spaces
- added negative lookahead to check if space is outside a selector
- moved braces plugin into PromQueryField since braces are prom specific
2018-08-07 13:34:12 +03:00
David
34761205fd
Merge pull request #12799 from grafana/davkal/explore-history
...
Explore: Add history to query fields
2018-08-06 17:46:15 +02:00
Marcus Efraimsson
b3c25076d0
Merge pull request #12746 from grafana/11305_mssql_logo
...
Mssql: add logo
2018-08-06 17:19:53 +02:00
David Kaltschmidt
cda3b01781
Reversed history direction for explore
...
- _.reverse() was modifying state.history
2018-08-06 14:45:03 +02:00
David Kaltschmidt
eaff7b0f68
Explore: Add history to query fields
...
- queries are saved to localstorage history array
- one history per datasource type (plugin ID)
- 100 items kept with timestamps
- history suggestions can be pulled up with Ctrl-SPACE
2018-08-06 14:45:03 +02:00
David
5da3584dd4
Explore: facetting for label completion ( #12786 )
...
* Explore: facetting for label completion
- unified metric and non-metric label completion
- label keys and values are now fetched fresh for each valid selector
- complete selector means only values are suggested that are supported
by the selector
- properly implemented metric lookup for selectors (until the first
metric was used which breaks when multiple metrics are present)
- typeahead tests now need a valid selection to demark the cursor
* Fix facetting queries for empty selector
2018-08-06 15:36:02 +03:00
Tobias Skarhed
9f87f6081a
Remove Karma test
2018-08-06 11:23:50 +02:00
Tobias Skarhed
46dd4eba9e
All tests passing
2018-08-06 11:23:50 +02:00
Tobias Skarhed
034ca69610
Add mock constructor
2018-08-06 11:23:50 +02:00
Tobias Skarhed
7f4723a9a7
Begin conversion
2018-08-06 11:23:50 +02:00
Tobias Skarhed
ccd964e1df
Convert query control
2018-08-06 10:57:58 +02:00
Tobias Skarhed
45eadae692
Convert datasource
2018-08-06 10:42:35 +02:00
Torkel Ödegaard
624f3a0173
refactor: take submenu into account PR #12796
2018-08-05 11:39:46 +02:00
Torkel Ödegaard
b1b8a38061
refactor: renaming variables, refactoring PR #12796
2018-08-05 11:39:46 +02:00
Torkel Ödegaard
013f8cd8ea
refactor: moving code around a bit, refactoring PR #12796
2018-08-05 11:39:46 +02:00
Tobias Skarhed
f00b5eee83
Remove weird import
2018-08-05 11:39:46 +02:00
Tobias Skarhed
4b84a58575
Disable submenu when autopanels is enabled
2018-08-05 11:39:46 +02:00
Tobias Skarhed
36c406eefb
Extract to own method
2018-08-05 11:39:46 +02:00
Tobias Skarhed
1618b095c7
Use and add keybard shortcut
2018-08-05 11:39:46 +02:00
Tobias Skarhed
63fa9fdc6d
Add temporary url parameter
2018-08-05 11:39:46 +02:00
Tobias Skarhed
338a37abc8
Replace floor with round
2018-08-05 11:39:46 +02:00
Tobias Skarhed
9e4748e2aa
Go with just single margin compensation
2018-08-05 11:39:46 +02:00
Tobias Skarhed
78b3dc40f1
Add margin and padding compensation
2018-08-05 11:39:46 +02:00
Tobias Skarhed
a9f24bb36d
Remove weird import
2018-08-05 11:39:45 +02:00
Tobias Skarhed
818fe09a7f
Fit panels to screen height
2018-08-05 11:39:45 +02:00
Sven Klemm
6d07d825e9
dont break default parameters for functions
2018-08-03 18:38:40 +02:00
Sven Klemm
e4ae8be9fa
fix suggestion query
2018-08-03 14:09:41 +02:00
Marcus Efraimsson
6f1b125c48
Merge pull request #12808 from dehrax/12224-simple
...
Karma to Jest: remove tests
2018-08-03 13:38:57 +02:00
David Kaltschmidt
c900a30106
renamed slate unit tests to .jest.ts
2018-08-03 13:09:05 +02:00
Tobias Skarhed
61eb96ed79
Remove simple tests
2018-08-03 12:34:13 +02:00
Tobias Skarhed
61e3a0cceb
Begin conversion
2018-08-03 11:57:03 +02:00
David
bda49fcaa2
Add click on explore table cell to add filter to query ( #12729 )
...
* Add click on explore table cell to add filter to query
- move query state from query row to explore container to be able to set
modified queries
- added TS interface for columns in table model
- plumbing from table cell click to datasource
- add modifyQuery to prometheus datasource
- implement addFilter as addLabelToQuery with tests
* Review feedback
- using airbnb style for Cell declaration
- fixed addLabelToQuery for complex label values
2018-08-03 11:20:13 +03:00
Sven Klemm
aa830211fe
dont order for aggregate
2018-08-03 10:15:28 +02:00
Sven Klemm
dabfd88cd9
add moving average to query builder
2018-08-03 07:44:36 +02:00
Sven Klemm
0b57e88f9e
adjust frontend test
2018-08-03 06:19:53 +02:00
Sven Klemm
2cae966e6c
use $__timeGroupAlias macro
2018-08-02 21:40:15 +02:00
Sven Klemm
bfc66a7ed0
add fillmode "last" to sql datasource
...
This adds a new fill mode last (last observation carried forward) for grafana
to the sql datasources. This fill mode will fill in the last seen value in a
series when a timepoint is missing or NULL if no value for that series has
been seen yet.
2018-08-02 20:35:09 +02:00
Sven Klemm
67edb9e9fe
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-08-02 16:39:27 +02:00
Marcus Efraimsson
5cca478656
Merge pull request #12760 from svenklemm/postgres-timegroup
...
remove alias from postgres $__timeGroup macro
add $__timeGroupAlias macro to all sql datasources
2018-08-02 16:36:01 +02:00
Marcus Efraimsson
4d3e435298
Merge pull request #12774 from grafana/12766-table-colored-cell-link
...
table link color fix
2018-08-02 16:32:09 +02:00
Patrick O'Carroll
ff0ca6b7e2
added two new classes for color, fixed so link has value color
2018-08-02 15:25:48 +02:00
andig
57910549b6
Improve iOS and Windows 10 experience ( #12769 )
...
* Improve iOS homescreen icon
* Improve Windows10 tile experience
* Remove unused favicon
2018-08-02 03:37:50 -07:00
Mitsuhiro Tanda
04fcd2a054
add series override option to hide tooltip ( #12378 )
...
* add series override option to hide tooltip
* fix test
* invert option
* fix test
* remove initialization
2018-08-02 02:49:40 -07:00
Patrick O'Carroll
b03e3242e3
removed table-panel-link class
2018-08-02 11:21:17 +02:00
Patrick O'Carroll
36d981597e
removed table-panel-link class and add a class white to modify table-panel-cell-link class
2018-08-02 11:18:21 +02:00
Sven Klemm
7e9c9199c1
add warning when switching from raw sql mode
2018-08-02 10:15:53 +02:00
Sven Klemm
a221d9ec84
add more prominent button for switching edit mode
2018-08-02 09:50:21 +02:00
Sven Klemm
5c3b80b492
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-08-02 09:17:21 +02:00
Sven Klemm
82c473e3af
document $__timeGroupAlias
2018-08-01 21:23:00 +02:00
Brice Maron
bb7e583863
fix custom variable quoting in sql* query interpolations
2018-08-01 20:32:50 +02:00
Marcus Efraimsson
9d3743774d
Merge pull request #12771 from dehrax/12224-prometheus-ds
...
Karma to Jest: prometheus datasource
2018-08-01 15:06:36 +02:00
Tobias Skarhed
951b623bd2
Change to arrow functions
2018-08-01 14:27:45 +02:00
Tobias Skarhed
af32bfebef
Add all tests to one file
2018-08-01 14:26:29 +02:00
Tobias Skarhed
790aadf8ef
Remove angularMocks
2018-08-01 10:09:05 +02:00
Tobias Skarhed
d6158bc293
All tests passing
2018-08-01 09:30:26 +02:00
Patrick O'Carroll
d4d896ade8
replaced style with class for links
2018-08-01 09:08:17 +02:00
Sven Klemm
43295f9c18
remove alias from postgres $__timeGroup macro
2018-08-01 08:50:19 +02:00
Torkel Ödegaard
89eae1566d
fix: team email tooltip was not showing
2018-07-31 17:31:45 +02:00
Patrick O'Carroll
4b8ec4e323
removed a blank space in div
2018-07-31 13:07:43 +02:00
Sven Klemm
b8af68e05a
Merge branch 'master' into postgres-query-builder
2018-07-31 13:04:27 +02:00
Patrick O'Carroll
7b5b94607b
fixed color for links in colored cells by adding a new variable that sets color: white when cell or row has background-color
2018-07-31 12:51:07 +02:00
Tobias Skarhed
e4c2476f3c
Weird execution order for the tests...
2018-07-31 09:35:08 +02:00
Marcus Efraimsson
49430f7557
Merge pull request #12744 from Worty/master
...
change units to include characters for power of 2 and 3
2018-07-30 16:59:12 +02:00
Worty
4fa979649c
also fixed "Watt per square metre"
2018-07-30 16:28:19 +02:00
Worty
9c0fbe5a0b
fixed that missing one
2018-07-30 16:19:31 +02:00
Sven Klemm
6613f11499
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-30 15:23:56 +02:00
Marcus Efraimsson
e648ed197f
Merge pull request #12679 from svenklemm/postgres-metric-prefix
...
Use metric column as prefix when returning multiple value columns
2018-07-30 14:50:11 +02:00
Tobias Skarhed
3d4a346c66
Begin conversion
2018-07-30 13:02:08 +02:00
Sven Klemm
ace999b13f
rename special to windows
2018-07-29 15:56:22 +02:00
Sven Klemm
26ea88252b
add first and last support
2018-07-29 15:00:13 +02:00
Sven Klemm
d7ddab958e
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-29 13:41:41 +02:00
Sven Klemm
412bb6acab
refactor function handling in query builder
2018-07-29 13:31:50 +02:00
Sven Klemm
5327580939
refactor column function handling
2018-07-28 21:41:23 +02:00
Sven Klemm
6ca7a03975
consistent nameing fro group and select
2018-07-28 12:53:36 +02:00
Marcus Efraimsson
20b2b344f6
mssql: add logo
2018-07-28 11:31:30 +02:00
Sven Klemm
036647ae35
document metric column prefix in query editor
2018-07-27 17:18:45 +02:00
Marcus Efraimsson
8188679951
Merge pull request #12745 from dehrax/12224-heatmap-ctrl
...
Karma to Jest: heatmap_ctrl
2018-07-27 17:18:15 +02:00
Marcus Efraimsson
710566e146
Merge pull request #12742 from dehrax/12224-backend-srv
...
Karma to Jest: backend_srv
2018-07-27 17:17:54 +02:00
Marcus Efraimsson
86d75a64c1
Merge pull request #12737 from dehrax/12224-singlestat
...
Karma to Jest: singlestat
2018-07-27 17:17:09 +02:00
Tobias Skarhed
805dc3542f
Remove extra mock
2018-07-27 16:46:41 +02:00
Tobias Skarhed
26f709e87e
Karm to Jest
2018-07-27 16:45:03 +02:00
Worty
895b4b40ee
correct volume unit
2018-07-27 16:26:04 +02:00
Tobias Skarhed
c11d0f5cc6
Remove lo
2018-07-27 15:52:22 +02:00
Tobias Skarhed
2f6b302375
Test passing. Remove Karma
2018-07-27 15:51:56 +02:00
Sven Klemm
7905c29875
adjust metric prefix code to sql engine refactor
2018-07-27 15:34:04 +02:00
Tobias Skarhed
766c23a1eb
Fix emit errors
2018-07-27 15:16:19 +02:00
Tobias Skarhed
2db4a54f75
Fix test
2018-07-27 14:40:56 +02:00
Tobias Skarhed
4e6168f3a3
Add async/await
2018-07-27 14:22:48 +02:00
Sven Klemm
ad26a319c5
refactor schema query generation
2018-07-27 14:02:12 +02:00
Patrick O'Carroll
971e52ecc9
removed unused class from the deletebutton pr
2018-07-27 13:48:14 +02:00
Patrick O'Carroll
1bb5a57036
frontend part with mock-team-list
2018-07-27 13:45:16 +02:00
Tobias Skarhed
55111c801f
Update test for local time
2018-07-27 13:41:07 +02:00
Tobias Skarhed
67c613a45a
Begin conversion
2018-07-27 13:29:57 +02:00
Marcus Efraimsson
0550ec6de1
Merge pull request #12665 from grafana/9863-animated-delete-button
...
built a component for delete button in tables
2018-07-27 12:37:53 +02:00
Sven Klemm
734118de86
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-27 11:52:38 +02:00
Tobias Skarhed
bff7a29356
Cleanup
2018-07-27 11:34:14 +02:00
Tobias Skarhed
3d21e42aac
Remove Karma file
2018-07-27 11:30:37 +02:00
Tobias Skarhed
47da3e3ae8
All tests passing
2018-07-27 11:28:16 +02:00
Tobias Skarhed
675a031b6c
All except one passing
2018-07-27 11:04:01 +02:00
Sven Klemm
97f24733f5
remove tableschema from query builder ui
2018-07-27 10:58:08 +02:00
Tobias Skarhed
fc06f8bfe7
Pass more tests
2018-07-26 17:22:15 +02:00
David
7699451d94
Refactor Explore query field ( #12643 )
...
* Refactor Explore query field
- extract typeahead field that only contains logic for the typeahead
mechanics
- renamed QueryField to PromQueryField, a wrapper around TypeaheadField
that deals with Prometheus-specific concepts
- PromQueryField creates a promql typeahead by providing the handlers
for producing suggestions, and for applying suggestions
- The `refresher` promise is needed to trigger a render once an async
action in the wrapper returns.
This is prep work for a composable query field to be used by Explore, as
well as editors in datasource plugins.
* Added typeahead handling tests
- extracted context-to-suggestion logic to make it testable
- kept DOM-dependent parts in main onTypeahead funtion
* simplified error handling in explore query field
* Refactor query suggestions
- use monaco's suggestion types (roughly), see
https://github.com/Microsoft/monaco-editor/blob/f6fb545/monaco.d.ts#L4208
- suggest functions and metrics in empty field (ctrl+space)
- copy and expand prometheus function docs from prometheus datasource
(will be migrated back to the datasource in the future)
* Added prop and state types, removed unused cwrp
* Split up suggestion processing for code readability
2018-07-26 15:04:12 +03:00
Tobias Skarhed
88e91b3f51
Begin conversion
2018-07-26 10:44:40 +02:00
Marcus Efraimsson
751f68ab47
Merge pull request #12723 from dehrax/12224-variable-srv
...
Karma to Jest: variable_srv_init
2018-07-26 10:32:14 +02:00
Tobias Skarhed
35cc85bfcc
All tests passing. Remove Karma test.
2018-07-26 09:36:46 +02:00
Tobias Skarhed
931b944cdd
Almost all tests passing
2018-07-25 17:38:45 +02:00
Tobias Skarhed
7d51c15240
Two passing tests
2018-07-25 16:15:03 +02:00
Tobias Skarhed
f350461206
Start conversion
2018-07-25 14:52:03 +02:00
Marcus Efraimsson
81a041b50c
Merge pull request #12672 from grafana/12668-blue-in-light-theme
...
adjust table header contrast for the light theme
2018-07-25 11:49:45 +02:00
Patrick O'Carroll
df62282c11
fix for typeahead background, increased lighten
2018-07-25 11:27:43 +02:00
Patrick O'Carroll
f4ab432542
added position absolute and some flexbox so I could remov changes in display and setTimeout, added tests and types, did some renaming
2018-07-25 10:29:55 +02:00
Marcus Efraimsson
27b386c91d
Merge pull request #12706 from dehrax/12224-graphite-query-ctrl
...
Karma to Jest: graphite query_ctrl
2018-07-24 19:02:50 +02:00
Tobias Skarhed
ce9b25a5ac
Remove comments
2018-07-24 18:30:29 +02:00
Marcus Efraimsson
d8d748d2aa
remove unneeded comment
2018-07-24 17:40:00 +02:00
Marcus Efraimsson
74b4d2efd5
Merge pull request #12704 from dehrax/12224-completer
...
Karma to Jest: completer
2018-07-24 17:37:43 +02:00
Tobias Skarhed
27c081349f
Remove old influx stuff
2018-07-24 17:03:58 +02:00
Marcus Efraimsson
1c4dd6f2f7
Merge pull request #12702 from dehrax/12224-influx-query-ctrl
...
Karma to Jest: influx query_ctrl
2018-07-24 16:58:01 +02:00
Tobias Skarhed
b58a7642dc
Karma to Jest
2018-07-24 15:41:58 +02:00
Tobias Skarhed
25c8233523
Begin conversion
2018-07-24 15:41:58 +02:00
Tobias Skarhed
51caf470f5
Remove influx qeury_ctrl jest, as it is already completed
2018-07-24 14:56:14 +02:00
Tobias Skarhed
d6381bed7c
Test fail depending on test order
2018-07-24 14:56:13 +02:00
Tobias Skarhed
d2f81d52d4
Karma to Jest: begin influx query_ctrl
2018-07-24 14:56:13 +02:00
Tobias Skarhed
49a8c2e0c1
Make beautiful
2018-07-24 14:56:13 +02:00
Tobias Skarhed
c0f9c06f21
Karma to Jest: completer
2018-07-24 14:56:13 +02:00
Tobias Skarhed
48ae9ec77e
Remove comments and Karm test
2018-07-24 14:35:37 +02:00
Tobias Skarhed
987a16086b
Karma to Jest
2018-07-24 14:34:37 +02:00
Tobias Skarhed
81c32780b9
Pass more tests
2018-07-24 11:27:53 +02:00
David
4d722b2177
Merge pull request #12675 from grafana/davkal/logging-datasource
...
Datasource for Grafana logging platform
2018-07-23 18:11:11 +02:00
srid12
6b071054a3
changing callback fn into arrow functions for correct usage of this ( #12673 )
2018-07-23 07:23:26 -07:00
Marcus Efraimsson
a17a9218da
Merge pull request #12692 from dehrax/12224-graph-ctrl
...
Karma to Jest: graph_ctrl
2018-07-23 15:53:41 +02:00
Tobias Skarhed
47bec0fd91
Fix requested changes
2018-07-23 15:42:47 +02:00
Tobias Skarhed
bb0af52d34
Figuring out why it doesn't initialize
2018-07-23 14:54:58 +02:00
Tobias Skarhed
6b6a23ff6a
Add support for interval in query variable
...
Add range to scopedVars
Add basic tests and extract function for range vars
Add support for range query variable in createQuery
Template vars squash
2018-07-23 14:33:21 +02:00
Tobias Skarhed
46e31621b0
Add jest file
2018-07-23 14:28:17 +02:00
Tobias Skarhed
529883b61d
Change to arrow functions
2018-07-23 13:39:32 +02:00
Tobias Skarhed
ed8568f0df
Add graph_ctrl jest
2018-07-23 13:38:16 +02:00
Michał Węgrzynek
ee2eda615e
Update kbn.ts
2018-07-23 12:07:54 +02:00
Marcus Efraimsson
d7401a9f8a
Merge pull request #12690 from mtanda/cw_get_metricdata_input_validation
...
Id validation of CloudWatch GetMetricData
2018-07-23 11:48:01 +02:00
Tobias Skarhed
ae935bf08b
Add jest test file
2018-07-23 11:31:04 +02:00
Marcus Efraimsson
608303f4ce
Merge branch 'master' into jquery-flot-events-to-ts
2018-07-23 10:59:25 +02:00
Mitsuhiro Tanda
fb4546b811
Id validation of CloudWatch GetMetricData
2018-07-23 17:58:54 +09:00
Kim Christensen
8c52e2cd57
Fix timezone issues in test
2018-07-23 10:05:46 +02:00
Sven Klemm
b3ebc86093
fix window function query without group by
2018-07-23 07:52:42 +02:00
Daniel Lee
5129ea8f87
Merge pull request #11624 from mtanda/cw_get_metric_data
...
CloudWatch GetMetricData support
2018-07-22 21:34:07 +02:00
Sven Klemm
e1a37cf275
add order by to metadata queries
2018-07-22 17:12:30 +02:00
Sven Klemm
7af9cd7dfc
set explicit order for rate and increase
2018-07-22 15:20:40 +02:00
Sven Klemm
84d7743939
fix pre gui queries shortcircuit
2018-07-21 10:38:34 +02:00
Kim Christensen
dd81f4381d
Add unit test for InfluxDB datasource
2018-07-21 02:13:41 +02:00
Kim Christensen
a2574ac068
Support timeFilter in templating for InfluxDB
...
After support for queries in template variables was added to InfluxDB,
it can be necessary to added dymanic time constraints. This can now be
done changing the variable refresh to "On Time Range Changed" for
InfluxDB
2018-07-21 00:45:02 +02:00
David Kaltschmidt
3297ae462d
Datasource for Grafana logging platform
...
- new builtin datasource plugin "Logging" (likely going to be renamed)
- plugin implements no panel ctrls yet, only ships datasource
- new models for logging data as first class citizen (aside from table
and time_series model)
- Logs as new view for Explore
- JSON view for development
Testable only against existing logish deployment.
Then test with queries like `{job="..."} regexp`.
2018-07-20 17:07:17 +02:00
Patrick O'Carroll
b6909eb3b0
removed blue-dark variable with blue-light in light-theme, blue variable now has same value as blue-dark had before, should fix issue with any low contrast issues with blue in light-theme, this made query-blue variable unnecessery removed it, added variable for variable dropdown highlight background
2018-07-20 16:02:41 +02:00
Patrick O'Carroll
b8a4b7771a
removed import appEvents
2018-07-20 11:09:24 +02:00
Patrick O'Carroll
0b421004ea
built a component for delete button in tables, instead of using a modal to confirm it now does it in the row of the table, created a sass file for the component, the component uses css transitions for animation
2018-07-20 09:59:04 +02:00
David
bfd05ba6ec
Merge pull request #12617 from grafana/davkal/prometheus-value-formatting
...
Make prometheus value formatting more robust
2018-07-18 17:11:16 +02:00
Torkel Ödegaard
a4587cdeee
fix: datasource search was not working properly
2018-07-18 14:28:38 +02:00
Sven Klemm
9f0b4e0aa7
add groupby when adding first aggregate
2018-07-18 13:29:47 +02:00
David Kaltschmidt
3ab5ab3674
Fix label suggestions in Explore query field
...
- In 0425b477
the labels suggestions were refactored and a typo broke
the look up for available lables of a metric
2018-07-18 13:20:18 +02:00
Daniel Lee
3cb95fb40a
pluginloader: expose flot gauge plugin
2018-07-18 12:05:45 +02:00
David
21e5d61de6
Merge pull request #12631 from grafana/davkal/explore-url-encoding
...
Use url params for explore state
2018-07-17 16:49:13 +02:00
David
5c6adbbada
Merge pull request #12630 from grafana/davkal/explore-empty-error
...
Dont parse empty explore state from url
2018-07-17 16:48:23 +02:00
David Kaltschmidt
02427ef88d
Explore: calculate query interval based on available width
...
- classic dashboard panels inject a dynamic query interval as part of
the query options. Explore did not have that.
- this PR adds the interval calculation to Explore
- interval based on Explore container's width
- ensure min interval if set in datasource
2018-07-17 15:13:44 +02:00
David Kaltschmidt
c6e9ffb168
Use url params for explore state
...
- putting state in the path components led to 400 on reload
- use `/explore?state=JSON` instead
2018-07-17 12:56:05 +02:00
David Kaltschmidt
f67b27e009
Dont parse empty explore state from url
...
- only parse url state if there is any
- prevents parse exception in the console on empty explore state
2018-07-17 12:24:04 +02:00
Torkel Ödegaard
e318489bd4
Fix default browser th font-weight
2018-07-17 11:56:33 +02:00
David Kaltschmidt
1f74b298c4
Remove string casting for template variables in prometheus
2018-07-16 13:02:36 +02:00
David Kaltschmidt
1efe34e6cf
Make prometheus value formatting more robust
...
- prometheus datasources passes its own interpolator function to the
template server
- that function relies on incoming values being strings
- some template variables may be non-strings, e.g., `__interval_ms`,
which throws an error
This PR makes this more robust.
2018-07-16 12:40:55 +02:00