Dominik Prokop
dd19ec3b22
Move explore selectors to a separate file
2019-02-12 12:36:46 +01:00
Torkel Ödegaard
a79bd42414
Merge pull request #15306 from grafana/explore/dedup-strategu-url
...
Persist deduplication strategy in url
2019-02-11 17:12:41 +01:00
Dominik Prokop
1693f083cc
Move deduplication calculation from Logs component to redux selector
2019-02-11 16:57:49 +01:00
Daniel Lee
52fe6b0316
Merge pull request #15198 from CorpGlory/azure-monitor-refactor-#15087
...
Azure Monitor: refactor #15087
2019-02-11 14:19:42 +01:00
Dominik Prokop
85780eb30c
Remove not related code
2019-02-11 13:18:16 +01:00
Dominik Prokop
cee2e4788b
Do not read store state from toggle panelaction creator
2019-02-11 12:56:37 +01:00
Dominik Prokop
14bf960b64
Merge branch 'master' into explore/dedup-strategu-url
2019-02-11 12:03:45 +01:00
Dominik Prokop
c9fbd43231
Review changes
2019-02-11 11:59:48 +01:00
Torkel Ödegaard
b780b6377a
Fixed missing time axis on graph due to width not being passed
2019-02-11 11:17:23 +01:00
Torkel Ödegaard
df17f7dc45
fixed explore width-0 issue, fixes #15304
2019-02-07 18:20:16 +01:00
Dominik Prokop
229d646bfc
Persis deduplication strategy in url
2019-02-07 18:01:09 +01:00
Valentin Agachi
ec0e03e547
Support ANSI colors codes in Loki logs
...
Closes #15114
2019-02-08 00:49:39 +08:00
corpglory-dev
0cc9cbcb54
Merge branch 'master' into azure-monitor-refactor-#15087
2019-02-07 16:59:49 +03:00
Torkel Ödegaard
78ea7ae783
Merge pull request #15212 from grafana/dashboard-react-page
...
Dashboard react page
2019-02-07 14:23:44 +01:00
Torkel Ödegaard
8c65430ea3
Merge pull request #15251 from grafana/14822-use-autosizer
...
Remove react-sizeme and use AutoSizer
2019-02-07 14:03:25 +01:00
corpglory-dev
e58f3a678d
Merge branch 'master' into azure-monitor-refactor-#15087
2019-02-06 14:31:23 +03:00
Torkel Ödegaard
fa32198831
Merge branch 'master' into dashboard-react-page
2019-02-05 17:56:04 +01:00
Torkel Ödegaard
a0bd022186
Merge pull request #15259 from grafana/hugoh/clicking-outside-timepicker-should-hide-it
...
Clicking outside TimePicker (Angular & React versions) should close it
2019-02-05 16:46:47 +01:00
Hugo Häggmark
e42b670f5c
Closing timepicker when clicking outside the picker
2019-02-05 15:41:00 +01:00
Johannes Schill
e103143634
fix: Update snapshot
2019-02-05 14:42:18 +01:00
Johannes Schill
f5431f5210
chore: Explore: Remove inner AutoSizer, spread the size-object to width/height, change height type to number
2019-02-05 14:42:18 +01:00
Johannes Schill
d68df9d704
fix: Calculation issue with AutoSizer in explore
2019-02-05 14:42:18 +01:00
Johannes Schill
097396c517
chore: Replace withSize with AutoSizer in explore/Graph.tsx
2019-02-05 14:42:18 +01:00
Hugo Häggmark
9ba98b8703
Fixes #15223 by handling onPaste event because of bug in Slate
2019-02-05 13:13:52 +01:00
Torkel Ödegaard
44cef757e5
Merge branch 'hugoh/explore-refactor-initial-modified-queries'
2019-02-05 09:33:28 +01:00
Torkel Ödegaard
bfdfb215f3
added missing typing to explore props
2019-02-05 09:32:42 +01:00
Torkel Ödegaard
28fc27c4ae
Merge branch 'master' of github.com:grafana/grafana into dashboard-react-page
2019-02-05 09:23:58 +01:00
Hugo Häggmark
3b0a04c627
Fixed so onBlur event trigger an QueryChange and QueryExecute if values differ
2019-02-05 07:03:16 +01:00
Hugo Häggmark
2c255fd85a
Renamed initialQueries to queries
2019-02-05 06:19:40 +01:00
Johannes Schill
9ab5eeb7f3
fix: Explore: Query wrapping on long queries #15222
2019-02-04 17:26:20 +01:00
Hugo Häggmark
f74ebdade6
Missed to save
2019-02-04 15:11:19 +01:00
Hugo Häggmark
a0c4837eb5
Merge with master
2019-02-04 15:06:01 +01:00
Hugo Häggmark
34dd1a22ab
Fixed bug with removing a QueryRow thats not part of nextQueries
2019-02-04 14:16:15 +01:00
Torkel Ödegaard
b58a3c939c
Merge pull request #15194 from grafana/explore/url
...
Explore - UI panels state persistance in url
2019-02-04 14:10:50 +01:00
Hugo Häggmark
96aef3bab8
Replaced intialQueris with queryKeys
2019-02-04 13:41:29 +01:00
Hugo Häggmark
5e2b9e40a2
Added more typings
2019-02-04 11:25:07 +01:00
Torkel Ödegaard
217468074f
added submenu, made sure submenu visibility is always up to date
2019-02-04 11:19:45 +01:00
Hugo Häggmark
6b98b05976
Removed modifiedQueries from state
2019-02-04 11:07:32 +01:00
Hugo Häggmark
1f5bb76718
Refactor of action, actionTypes and reducer
2019-02-04 07:50:17 +01:00
Hugo Häggmark
2d0fd96621
More types and some refactoring
2019-02-04 07:50:17 +01:00
Hugo Häggmark
acea1d7f00
Alignment of interfaces and components
2019-02-04 07:50:17 +01:00
Hugo Häggmark
43f8098981
Removed the on every key change event
2019-02-04 07:48:25 +01:00
Dominik Prokop
3c358e406e
Make runQueries action independent from datasource loading
2019-02-01 14:56:54 +01:00
Torkel Ödegaard
740e1a0540
Made really good progress on loki support in dashboards
2019-02-01 13:30:15 +01:00
Dominik Prokop
2ddccb4a21
Temporarily run queries independently from UI state of explore panels
2019-02-01 12:57:09 +01:00
corpglory-dev
cf60ae79c3
Move prism to app/features/explore
2019-02-01 14:47:17 +03:00
Dominik Prokop
6ab9355146
Restoring explore panels state from URL
2019-02-01 12:33:15 +01:00
Torkel Ödegaard
6e0b873739
Merge branch 'master' into loki-query-editor
2019-02-01 11:17:22 +01:00
Torkel Ödegaard
6663b2fab9
Moved time_srv to services folder, this should not belong to dashboard feature but it is too dependant on dashboard to move it out now, needs a bigger refactoring to isolate from dashboard
2019-01-31 08:44:46 +01:00
Dominik Prokop
661de1efe1
Rename SetInitialQueries action to QueriesImported
2019-01-30 09:50:28 +01:00
Dominik Prokop
d746df485c
Add missing code
2019-01-30 09:36:23 +01:00
Dominik Prokop
ca0d2996f2
Merge branch 'master' into explore/queries-import-changes
2019-01-30 09:30:10 +01:00
Torkel Ödegaard
4c689fce96
Merge pull request #15121 from grafana/davkal/15011-fix-query-change-twice
...
Explore: query field should not propagate non-text change
2019-01-29 20:29:47 +01:00
David Kaltschmidt
8d44ed8d8f
Explore: query field should not propagate non-text change
...
- after mounting with an initial value, the onChange of a query field is triggered
- even though the slate documents are not the same, their text values are identical, hence the change propagation is useless
- added check to propagate text change only when text has actually changed
2019-01-29 15:53:51 +01:00
Dominik Prokop
9ddbfed730
Wait for queries to be imported before proceeding with datasource change
2019-01-29 15:52:36 +01:00
Dominik Prokop
8ea72eeaf7
Remove commented code
2019-01-29 15:40:01 +01:00
Torkel Ödegaard
0ac0588583
Merge pull request #15107 from grafana/explore-query-styles
...
Updated Explore query styles to align them to other query editors
2019-01-29 15:38:06 +01:00
Dominik Prokop
010f902003
Import queries before datasource is changed
2019-01-29 15:34:28 +01:00
Torkel Ödegaard
d53a430c82
Fixed issue with explore changeTime redux action not being hooked up, fixes #15115
2019-01-29 14:58:57 +01:00
Torkel Ödegaard
6dad4cce07
Updated Explore query styles to align them to other query editor to make them fit in better
2019-01-29 08:14:07 +01:00
Torkel Ödegaard
e4244d8bf8
Merge branch 'master' into loki-query-editor
2019-01-29 07:10:06 +01:00
Torkel Ödegaard
daab7a5f6e
Merge pull request #15099 from grafana/tooling/storybook-poc
...
Named colors & storybook
2019-01-28 20:47:46 +01:00
Torkel Ödegaard
8510f0cd11
Merge pull request #15084 from grafana/fix/explore-datasource-change
...
Update datasource before the loading has started
2019-01-28 17:55:33 +01:00
Dominik Prokop
7a8eb8c115
Merge branch 'master' into tooling/storybook-poc
2019-01-28 17:36:41 +01:00
Torkel Ödegaard
fd06e51776
Merge branch 'master' into fix/explore-do-not-clear-results
2019-01-28 17:16:39 +01:00
Torkel Ödegaard
5768593da7
Merge pull request #15095 from grafana/hugoh/bug-inifinite-loop-when-scan-for-older-logs-clicked
...
Making sure we do not pass a long invalid queries and save to state
2019-01-28 17:01:24 +01:00
Torkel Ödegaard
a1a905cbb1
Removed the initial data source as I could not see it being used anywhere
2019-01-28 16:31:38 +01:00
Hugo Häggmark
08f5a3338a
Making sure we do not pass a long invalid queries and save to state
2019-01-28 15:27:35 +01:00
Torkel Ödegaard
91d926f180
single import for types from @grafana/ui
2019-01-28 15:27:23 +01:00
Torkel Ödegaard
2c9a867bde
Merge branch 'master' into fix/explore-datasource-change
2019-01-28 15:24:14 +01:00
Hugo Häggmark
dc125f1e4d
Made sure we only resetTypeahead if mounted
2019-01-28 14:43:59 +01:00
David
edfce0893e
Merge pull request #15090 from grafana/hugoh/bug-explore-cant-go-from-dashboard-to-explore
...
Fixed reinitialise of Explore
2019-01-28 13:43:32 +01:00
Dominik Prokop
07331b4c07
Revert "Use the same panel loading indicator in explore as on dashboard's panel"
...
This reverts commit 05edb3e5ad
.
2019-01-28 13:40:41 +01:00
Hugo Häggmark
6b0400eed2
Firing off an action instead of listening to location changes
2019-01-28 13:27:56 +01:00
Dominik Prokop
957c659291
Handle undefined graph and table results
2019-01-28 13:09:51 +01:00
Dominik Prokop
05edb3e5ad
Use the same panel loading indicator in explore as on dashboard's panel
2019-01-28 12:58:10 +01:00
Dominik Prokop
2ff62c42ac
Prevents query result cleaning when new query trransaction starts
2019-01-28 12:57:09 +01:00
Hugo Häggmark
9298876ef0
Changes after PR Comments
2019-01-28 12:47:01 +01:00
Hugo Häggmark
1e6d50df7a
Made ExplorerToolbar connected and refactored away responsabilities from Explore
2019-01-28 12:47:01 +01:00
Hugo Häggmark
21df0c90a9
Removed some split complexity
2019-01-28 12:47:01 +01:00
Hugo Häggmark
0a094a13f2
Fixed some more styling
2019-01-28 12:47:01 +01:00
Hugo Häggmark
18727dce23
Fixed close split look and feel
2019-01-28 12:47:01 +01:00
Hugo Häggmark
d2a5477654
Fixed small issue with TimePicker dropdown position
2019-01-28 12:47:01 +01:00
Hugo Häggmark
032a82feed
Simplified some styles and dom elements
2019-01-28 12:47:01 +01:00
Hugo Häggmark
9caaf25078
Fixed some more with the sidemenu open and smaller screens
2019-01-28 12:47:01 +01:00
Hugo Häggmark
b2c284e42c
Fixed so heading looks good with closed sidemenu
2019-01-28 12:47:01 +01:00
Hugo Häggmark
ffe03ee22d
Restructure of component and styling
2019-01-28 12:47:01 +01:00
Hugo Häggmark
1aefc4cc2d
Refactored out ExploreToolbar from Explore
2019-01-28 12:47:01 +01:00
Hugo Häggmark
40f410562a
Fixed reinitialise of Explore
2019-01-28 11:45:15 +01:00
Dominik Prokop
05f9eb0766
Update datasource before the loading has started
2019-01-28 11:06:50 +01:00
Dominik Prokop
1d3122632f
Move Switch component to grafana-ui
2019-01-24 15:35:50 +01:00
Johannes Schill
2706f09de8
feat: Use CustomScrollbar in explore #14752
2019-01-24 12:59:12 +01:00
Torkel Ödegaard
02083d71c8
Loki query editor is starting to work, had to make changes to explore query field in order to update query from the outside without unmount between
2019-01-23 17:44:22 +01:00
David Kaltschmidt
c0277ab595
Explore: Fix scanning for logs
...
- Redux migration caused the scanner to not be set
- this change adds the setting/unsetting of the scanner in the reducer
- added test
2019-01-23 15:05:54 +01:00
Hugo Häggmark
85838a40d6
fix: Dispatch the correct action ( #14985 )
2019-01-22 13:59:58 +01:00
Torkel Ödegaard
e43fafd96e
Explore: mini styling fix for angular query editors
2019-01-22 10:46:21 +01:00
Torkel Ödegaard
a03faba9a3
Merge pull request #14983 from grafana/hugoh/logs-refactoring
...
Logs refactoring
2019-01-22 10:32:05 +01:00
Hugo Häggmark
bcb3824e6a
Minor rename of LogsProps and LogsState
2019-01-22 09:25:40 +01:00
Hugo Häggmark
c369279401
Splitted up LogLabels into LogLabelStats and LogLabel
2019-01-22 09:22:38 +01:00
Hugo Häggmark
23202ab130
Refactored out LogRow to a separate file
2019-01-22 08:59:22 +01:00
Torkel Ödegaard
79bd7f4077
Fixed data source selection in explore
2019-01-21 21:36:30 +01:00
Torkel Ödegaard
8a4ce3e4cc
Merge pull request #14945 from grafana/hugoh/bug-misalignment-of-explore-panels
...
Hack for getting the same height in splitted view
2019-01-18 15:09:17 +01:00
Hugo Häggmark
11944adc9c
fix: Hack for getting the same height in splitted view, view could use refactor IMHO #14853
2019-01-18 12:03:16 +01:00
Torkel Ödegaard
f2498645d0
Fixed issue with explore angular query editor support introduced by recent angular query editor changes
2019-01-18 11:20:55 +01:00
Torkel Ödegaard
205e2acdd8
Added data source type to explore state
2019-01-17 19:17:29 +01:00
Torkel Ödegaard
ecab597e5e
renaming DataSource type to DataSourceSettings and moved to grafana ui
2019-01-17 18:51:07 +01:00
Torkel Ödegaard
febb9e7168
Moved data source and data query types
2019-01-17 17:59:47 +01:00
David
6f6c4652dc
Merge pull request #14928 from grafana/davkal/14926-loki-missing
...
Explore: Fix datasource selector being empty with single datasource
2019-01-17 14:49:55 +01:00
David Kaltschmidt
648a775acb
Explore: Fix datasource selector being empty with single datasource
...
- The "missing" action was triggered unless the number of datasource >1 🤦
- Made datasource preselection more robust in case the requested datasource is already gone
2019-01-17 12:07:42 +01:00
Johannes Schill
1dfabf498a
chore: Replace the deprecated SFC with FC
2019-01-17 09:27:43 +01:00
David Kaltschmidt
9575a4a2c0
Move action properties to payload
2019-01-16 10:21:11 +01:00
David Kaltschmidt
6ff15039a9
File organization, action naming, comments
...
- moved ActionTypes to `./state/actionTypes`
- renamed click-related actions
- added comments to actions and state types
- prefixed Explore actions with `explore/`
- fixed query override issue when row was added
2019-01-15 20:04:05 +01:00
David Kaltschmidt
9aede9e636
Fix reducer issues
2019-01-15 20:04:03 +01:00
David Kaltschmidt
546a3a9d98
Connect Explore child components to store
2019-01-15 20:04:01 +01:00
David Kaltschmidt
607f7c25de
Update comments
2019-01-15 20:03:59 +01:00
David Kaltschmidt
f02f41c9b0
Move types to types/explore
2019-01-15 20:03:57 +01:00
David Kaltschmidt
be172d3e4a
Save state in URL and fix tests
2019-01-15 20:03:55 +01:00
David Kaltschmidt
68c039b289
Allow multiple Explore items for split
2019-01-15 20:03:53 +01:00
David Kaltschmidt
2be2deddb8
WIP Explore redux migration
2019-01-15 20:03:51 +01:00
Dominik Prokop
96be5fe8a3
Remove the jump effect on run query button
...
Caused by the return and loading spinner icons having different widths. Used fa-fw helper class to ensure fixed width on icons. Also, made the spacing between icon and button label slightly smaller, as the rotated level-down icon used as return icon has significantly smaller width compared to the loading spinner and it looked oddly far from the label as compared to timepicker's icon
2019-01-07 15:26:43 +01:00
Simon Podlipsky
c39dc1fb15
Some cleanup
2019-01-05 15:25:07 +01:00
David Kaltschmidt
757d6f322e
s/initialDatasourceId/initialDatasource/
2019-01-02 11:32:12 +00:00
David Kaltschmidt
67ebdcbcc3
Explore: Remember last use datasource
...
- use local storage to store last used database
- renamed `datasourceName` property to `initialDatasourceId` for consistency
- adapted tests
2018-12-31 18:30:32 +00:00
Torkel Ödegaard
66a13b281c
Merge branch 'grafana-lib'
2018-12-25 19:26:46 +01:00
Torkel Ödegaard
a02b4b47b6
Moving a couple of types to @grafana/ui
2018-12-23 09:15:32 +01:00
David
b2401e37fa
Merge pull request #14414 from grafana/davkal/explore-logging-search
...
Explore: Split logging query into selector and search
2018-12-22 17:00:57 +01:00
Torkel Ödegaard
d0f8d034df
Quick refactoring of time picker styles, needs a much bigger redesign
2018-12-19 13:13:46 +01:00
Torkel Ödegaard
6542bfb83e
Merge branch 'fix-misspell-issues' of https://github.com/mjtrangoni/grafana into mjtrangoni-fix-misspell-issues
2018-12-19 11:21:34 +01:00
Erik Sundell
ad3d36e6b7
Make sure panel id is unique since some datasources (Graphite) will cancel ongoing requests with the same panel id
2018-12-18 09:44:51 +01:00
Erik Sundell
f673d60dae
Merge branch 'develop' of https://github.com/grafana/grafana into develop
2018-12-17 11:17:58 +01:00
Erik Sundell
e84e6740e6
propagate initial state back to explore query runner
2018-12-17 11:17:16 +01:00
Torkel Ödegaard
72b9cb9b9f
Switched to react-select fork
2018-12-16 09:58:37 +01:00
Torkel Ödegaard
b15bb4fb95
Merge remote-tracking branch 'origin/master' into develop
2018-12-14 17:02:08 +01:00
Torkel Ödegaard
ae76ddcc3b
explore using data source picker
2018-12-14 14:05:47 +01:00
Torkel Ödegaard
24825dc899
renamed folder to select
2018-12-14 12:59:45 +01:00
Torkel Ödegaard
f9110f7902
Merge branch 'master' into develop
2018-12-11 10:00:29 +01:00
Torkel Ödegaard
0253792dad
Merge pull request #14438 from grafana/davkal/explore-enhanced-log-parsing
...
Explore: Improved line parsing for logging
2018-12-11 09:10:45 +01:00
David Kaltschmidt
71429d7210
Explore: Improved line parsing for logging
...
- changed log parser API to be more semantic: getting fields, getting values
- regexps become an implementation detail of parser and are no longer part of the API
- improved JSON parser to not be tripped by nested quotation marks
- improved JSON parser to support numbers
- added more tests
2018-12-10 10:05:57 -08:00
Torkel Ödegaard
6f061ab159
Merge pull request #14403 from grafana/logs-graph-stacking
...
Fixed issue with logs graph and stacking
2018-12-10 14:16:28 +01:00
Torkel Ödegaard
7e0bc8f30d
fixed max height issue not being respected by react select dropdown
2018-12-10 12:02:27 +01:00
David Kaltschmidt
6b9200a606
Explore: Split logging query into selector and search
...
- add second query field to logging datasource query component
- second field manages search term, first field manages stream selectors
- improved logging cheat sheet to get started
2018-12-09 18:44:59 +01:00
Torkel Ödegaard
a9fc77b411
Merge pull request #14408 from grafana/davkal/fix-14407
...
Explore: Hide scanning again after result was found
2018-12-09 17:46:14 +01:00
Torkel Ödegaard
837a621502
Merge pull request #14410 from grafana/davkal/explore-logging-dedup-description
...
Explore: Logging dedup tooltips
2018-12-09 17:44:45 +01:00
David Kaltschmidt
61924e9130
Explore: dont pass all rows to all rows, fixes profiler
...
- react profiler seems to evaluate all props of all components down the tree
- this becomes slow when 1000 rows are passed to 1000 rows and their labels
- use getter function instead to ask for rows on demand
2018-12-09 13:23:44 +01:00
David Kaltschmidt
487de2b832
Explore: Logging dedup tooltips
...
- use title attribute of toggle button group
- add descriptions for all dedup options
2018-12-09 13:06:34 +01:00
David Kaltschmidt
1bcc866341
Explore: Hide scanning again after result was found
...
- when query result was found, stop scanning
- this hides the scan status again
2018-12-09 11:42:35 +01:00
David Kaltschmidt
60ee4499e7
Explore: Fix timepicker inputs for absolute dates
...
- Timepicker needs to keep from and to internally as strings
for the fully controlled inputs
- make sure from and to are strings when time is reset
2018-12-09 07:05:27 +01:00
Torkel Ödegaard
14cf846e73
Fixed issue with logs graph and stacking
2018-12-08 11:15:02 -08:00
Torkel Ödegaard
cb59f388ca
explore logs options styling
2018-12-07 17:23:35 +01:00
Torkel Ödegaard
bfbb44af03
transparent toggle style and new button group style
2018-12-07 17:15:46 +01:00
Torkel Ödegaard
79933299c7
Merge branch 'develop' of github.com:grafana/grafana into develop
2018-12-07 15:09:09 +01:00
Torkel Ödegaard
eb6d0e9f51
Merge branch 'master' into develop
2018-12-07 14:59:38 +01:00
Erik Sundell
569f5e8d5e
remove result format. might add this later
2018-12-07 14:13:05 +01:00
Erik Sundell
68c2d2631e
filter out build in datasources. add unit test
2018-12-07 14:11:40 +01:00
Daniel Lee
687cf013bd
Merge pull request #14385 from grafana/davkal/fix-explore-date-parsing
...
Explore: Parse initial dates
2018-12-07 14:10:36 +01:00
Torkel Ödegaard
619b4b4872
Merge pull request #14336 from grafana/davkal/explore-line-parsing
...
Explore: Logging line parsing and field stats
2018-12-07 13:24:43 +01:00
Torkel Ödegaard
ef08b9cd2b
graphInterval needs to update after query execution, fixes #14364
2018-12-07 13:07:08 +01:00
David Kaltschmidt
a990b69baa
Explore: Parse initial dates
...
- parse dates passed from URL
- keep everything local time for now
2018-12-07 12:41:47 +01:00
Torkel Ödegaard
7cb456ea23
Aligned styling of stats popover/box with rest of grafana & minor css refactoring
2018-12-07 11:28:22 +01:00
Erik Sundell
97180d5106
add scoped vars to query options
2018-12-07 10:28:51 +01:00
David Kaltschmidt
fb4925a8c2
Rebase fixes
2018-12-07 10:22:52 +01:00
David Kaltschmidt
acd52e6a93
Explore: Logging line parsing and field stats
...
Lazily parse lines and display stats for field when clicked on.
- log line parsers for JSON (basic), and logfmt
- delayed parsing in case user moves to other line
- reuse label stats for field stats
2018-12-07 09:59:55 +01:00
David
be2d9edd1f
Merge pull request #14353 from grafana/14249-multi-button-group
...
Multi button group
2018-12-06 21:27:34 +01:00
David Kaltschmidt
15eb3bb2f8
Explore: improve error handling
2018-12-06 16:47:36 +01:00
Erik Sundell
b74c099773
use render props instead of cloneElement
2018-12-06 16:38:50 +01:00
Erik Sundell
6f8293af4e
sort of a hacky way to figure if the small variation should be used for the label
...
improve light theme look
use new toggle button group in logs
stop propagation on click event
clean up styles
improve support for small when a label is present
refactoring - move toggle button to the group file. turn it into a stateless component
improve support for light theme
rename dedupe to dedup
use radius variable
2018-12-06 16:37:23 +01:00
Torkel Ödegaard
9a06fad24d
Merge pull request #14352 from grafana/explore-logs-css-refactor
...
Explore logs css refactor
2018-12-06 15:52:25 +01:00
Torkel Ödegaard
2e6690428f
fixed logs to time series calculation issue, increased bucket size, fixes #14248
2018-12-06 12:12:43 +01:00
Torkel Ödegaard
afd7580598
explore logs css refactoring, step1
2018-12-06 10:53:01 +01:00
Torkel Ödegaard
c7d701c8fa
explore logs styling poc, WIP
2018-12-06 10:53:01 +01:00
Mario Trangoni
ab9f65a4cf
public/app/features/*: Fix some misspell issues
2018-12-05 13:08:00 +01:00
Torkel Ödegaard
e01c196d88
fix to switch component
2018-12-05 11:19:38 +01:00
Torkel Ödegaard
5f8001689b
explore data source selector fix
2018-12-05 10:22:26 +01:00
Torkel Ödegaard
180ca021b5
Merge branch 'master' into develop
2018-12-05 10:17:22 +01:00
David Kaltschmidt
6980d2e142
Explore: Display duplicate row count as number
...
- the pips were hard to see
- make it really clear which rows are duplicates by allocating a column to show number
2018-12-04 16:21:27 +01:00
David Kaltschmidt
6ee7459f22
Explore: Logging query live preview of matches
...
A logging query has a selector part and a regexp. The regexp matches are highlighted when results return.
This change adds live preview to matches when modifying the regexp in a search field.
- delegate retrieval of match query to datasource
- datasource returns search expressions to be used to highlight a live preview of matches
- logs row now takes preview highlights
- logs row renders preview highlights with dotted line to distinguish from query run matches (solid line)
- fix react-highlight-words version to ensure custom chunk matcher
- custom chunk matcher can now also take incomplete regexps, eg, `(level` without inifinte looping
- perf: debounce of live preview to 500ms
- perf: only top 100 rows get the live preview
- preview is only supported with one query row (multiple rows semantic makes this tricky: regexp for row n should only filter results for query n)
2018-12-04 15:47:51 +01:00
David
34b8c5bb61
Merge pull request #14278 from grafana/14272-scan-old-logs
...
only make it possible to scan for older logs if there is at least one…
2018-12-04 15:44:55 +01:00
Erik Sundell
9c8bd34787
remove all query empty related code. root cause of the problem was to fix hasNonEmptyQuery
2018-12-04 14:55:56 +01:00
Erik Sundell
4e591653bd
Set query empty condition in render function. Also clear query transactions when no valid query is present
2018-12-04 13:26:26 +01:00
David Kaltschmidt
9f0b1e533f
Tests for label stats calculation
2018-12-04 12:41:32 +01:00
David Kaltschmidt
5916cb3e7c
Explore: Logging label stats
...
- added filter and stats icons to log stream labels
- removed click handler from label itself
- click on stats icon calculates label value distribution across loaded logs lines
- show stats in hover
- stats have indicator which value is the current one
- showing top 5 values for the given label
- if selected value is not among top 5, it is added
- summing up remaining label value distribution as Other
2018-12-04 12:41:32 +01:00
David
a69ab2fb3a
Merge pull request #14299 from grafana/14273-clear-scanning
...
Explore: Stop scanning when clear all button is clicked
2018-12-04 12:37:04 +01:00
Erik Sundell
f8cef73b5b
stop scanning when clear all button is clicked
2018-12-04 11:28:04 +01:00
Erik Sundell
2be92af456
Use origin meta
2018-12-04 11:13:16 +01:00
Erik Sundell
541a691aca
only display scan button if there is at least one existing selector that returned an empty result
2018-12-04 11:00:21 +01:00
David Kaltschmidt
4ce79349a3
Explore: return to grid layout for logs table
...
- better column control than flexbox
- increased gutter and row spacing
2018-12-04 10:48:28 +01:00
Erik Sundell
e21ca3f545
Revert commit
2018-12-03 17:17:57 +01:00
Erik Sundell
d9d84f45bc
only make it possible to scan for older logs if there is at least one non failing selector
2018-12-03 16:58:46 +01:00
David
ba18b470a4
Merge pull request #14260 from grafana/davkal/fix-14258
...
Explore: Show logging errors from backend
2018-12-03 10:00:22 +01:00
David
fab2597650
Merge pull request #14259 from grafana/14237-prevent-table-crash
...
change obj order when merging so that correct format is being used
2018-11-30 16:37:50 +01:00
David Kaltschmidt
47468fca68
Explore: Show logging errors from backend
...
- Logging datasource sends error string directly in the message body
- allowing response body to be an error when query transaction failed
- added throw in case we ever encounter unhandled errors again (forces us to fix the issue)
2018-11-30 16:09:56 +01:00
Erik Sundell
12ba314e24
change obj order when merging so that correct format is being used
2018-11-30 15:58:01 +01:00
David Kaltschmidt
a513130493
Fixed typo in function name
2018-11-30 15:19:09 +01:00
Erik Sundell
3c556c4833
never load fallback query field. remove commented code
2018-11-30 13:53:39 +01:00
Erik Sundell
be85944d84
add an error alert component that will be displayed when there was an error loading ds in explore
2018-11-30 13:51:49 +01:00
Erik Sundell
c40bfb8eda
make sure target obj is not destructured so that angular copy of objected can be mutated
2018-11-30 12:49:05 +01:00
David Kaltschmidt
979f3f3e0c
Review feedback
...
- fixed typo
- moved result calculation to explore utils
- use component keys instead of componentWillReceiveProps
- require logs to have and id, to as use as Logs component key
- render delay based on row count
2018-11-30 12:26:57 +01:00
Erik Sundell
3d45b5ba73
make getAll return array instead of object
2018-11-30 09:48:59 +01:00
Erik Sundell
df75fb0e6d
remove obsolete test
2018-11-30 09:32:36 +01:00
David Kaltschmidt
ae26f7126f
Explore: Logging render performance
...
- moved from grid to flexbox
- calculate Explore results only when query transactions change to prevent expensive re-renders
- split up rendering of graph and log data
- render log results in 2 stages
2018-11-29 17:30:11 +01:00
Erik Sundell
d1a2488392
pass data correctly to event handler
2018-11-29 14:20:15 +01:00
Erik Sundell
3162dda088
remove explore check - make it possible to load all datasources
2018-11-29 10:46:50 +01:00
Erik Sundell
6f85fa6b35
add new flag in order to be able to indicate whether the datasource has native support for tables
2018-11-28 15:06:22 +01:00
Erik Sundell
18abd987bb
prevent explore from crashing when table is not present in response
2018-11-28 14:31:20 +01:00
David Kaltschmidt
c3b67f3a13
Explore: Logging label filtering
...
- adds a custom label renderer to Logs viewer in Explore
- labels are no longer treated as strings, they are passed as parsed objects to the log row
- label renderer supports onClick handler for an action
- renamed Explore's `onClickTableCell` to `onClickLabel` and wired up log label renderers
- reuse Prometheus `addLabelToSelector` to modify Logging queries via click on label
- added tests to `addLabelToSelector`, changed to include the surrounding `{}`
- use label render also for common labels in the controls panel
- logging meta data section has now a custom renderer that can render numbers, strings, and labels
- style adjustments
2018-11-28 14:20:10 +01:00
Erik Sundell
4eebede9ef
add current editor to panel targets
2018-11-27 16:50:09 +01:00
David Kaltschmidt
593cc38cfc
Added stop scan button
2018-11-27 16:35:37 +01:00
David Kaltschmidt
4803b8f3c0
Explore: Scan for older logs
...
Sometimes log streams dont return any lines for the given range. Would be great to automate the search until some logs are found.
- Allow Explore to drive TimePicker via ref
- Show `Scan` link in Logs when there is no data
- Click on `Scan` sets Explore into scanning state
- While scanning, tell Timepicker to shift left
- TimePicker change triggers new queries with shifted time range
- Remember if query transaction was started via scan
- keep scanning until something was found
- Manual use of timepicker cancels scanning
2018-11-27 15:56:10 +01:00
Erik Sundell
626a94be46
remove time srv initialization
2018-11-27 14:51:03 +01:00
Erik Sundell
7159b369a3
restructure imports
2018-11-27 14:49:03 +01:00
Erik Sundell
5e7d4beacf
get intervals from explore function
2018-11-27 14:45:39 +01:00
Erik Sundell
b36db6ac04
unregister all query editor event listeners
2018-11-27 14:27:33 +01:00
Erik Sundell
c79d8b2a9b
remove comments
2018-11-27 14:25:24 +01:00
Erik Sundell
c567d75320
temp remove until stackdriver implements explore
2018-11-27 14:22:39 +01:00
Erik Sundell
1998c08df5
use default range from time picker
2018-11-27 13:13:26 +01:00
David
9afb8b64ed
Merge pull request #14176 from grafana/davkal/explore-logging-level-filter
...
Explore: Filter logs by log level
2018-11-27 12:23:45 +01:00
Erik Sundell
109ff1a3e1
includes ranges correctly in the options object
2018-11-26 17:09:50 +01:00
Erik Sundell
3395b1caf6
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-26 13:44:32 +01:00
David Kaltschmidt
4f55a238ed
Explore: Filter logs by log level
...
- add `onToggleSeries` to Explore Graph props
- toggling a Logging Graph series from the legend propagates its hidden series to Logs
- Logs translates hidden series alias to LogLevels
- Logs filters out hidden log levels
2018-11-23 16:29:55 +01:00
Erik Sundell
7209c7cd0a
mock interval data
2018-11-23 15:37:49 +01:00
Erik Sundell
1e6ea8b124
rename variable
2018-11-23 15:15:41 +01:00
Erik Sundell
ccddee4a4a
add support for explore events
2018-11-23 15:12:20 +01:00
Erik Sundell
fae3ae2580
use plugin_loader directly instead of using the wrapper
2018-11-23 14:32:56 +01:00
David Kaltschmidt
f831836fa7
Explore: make query field suggestions more robust
...
- drop invalid history items
- make highlighter more robust by defaulting to empty string on text to highlight
2018-11-23 12:25:43 +01:00
Erik Sundell
eaf9a0b39a
initial commit
2018-11-22 18:22:15 +01:00
David
377eaa891c
Merge pull request #14147 from grafana/davkal/explore-data-query
...
Explore: Introduce DataQuery interface for query handling
2018-11-22 12:01:37 +01:00
David Kaltschmidt
9e94d22401
Added comments
2018-11-22 12:00:41 +01:00
David Kaltschmidt
21ee85b1e2
Fix issue with deleting a query (empty string not updating)
2018-11-22 11:14:46 +01:00
David Kaltschmidt
331d419d4f
Combine query functions
2018-11-21 17:21:13 +01:00
David Kaltschmidt
22987ee75f
Renamed targets to queries
2018-11-21 16:28:30 +01:00
David Kaltschmidt
b3161bea5a
Explore: Introduce DataQuery interface for query handling
...
- Queries in Explore have been string based
- This PR introduces the use of the DataQuery type to denote all queries handled in Explore
- Within Explore all handling of DataQueries is transparent
- Modifying DataQueries is left to the datasource
- Using `target` as variable names for DataQueries to be consistent with the rest of Grafana
2018-11-21 14:45:57 +01:00
Michael Huynh
a333c31ea8
Fix set utilities for explore section
...
Discovered implementation issues with the set utilities used in the
explore section after adding some tests. Added tests to reinforce the
expected behaviour of the utility functions.
Related: #13522
2018-11-21 21:42:53 +08:00
Michael Huynh
c7dc557e91
Add visibility toggle for explore graph series
...
The implemented toggling UX is similar to how the dashboard graph plugin
behaves. Also incorporates review feedback to persist series visibility
state by means of the alias property, with the limitation it carries
too.
Related: #13522
2018-11-20 21:52:42 +08:00
David Kaltschmidt
4771eaba5b
Explore: POC dedup logging rows
...
- added dedup switches to logs view
- strategy 'exact' matches rows that are exact (except for dates)
- strategy 'numbers' strips all numbers
- strategy 'signature' strips all letters and numbers to that only whitespace and punctuation remains
- added duplication indicator next to log level
2018-11-19 16:26:47 +01:00
David Kaltschmidt
adb2430a1b
Explore: collapsible result panels
...
- replace the Graph/Table buttons with toggle control in a wrapper panel
- moved toggle control to left to be close to the label
- removed panel styles from Logs and Graph viewer
- moved loader animation to panel
2018-11-16 18:21:13 +00:00
David
634d71a657
Merge pull request #14052 from grafana/davkal/explore-query-importer
...
Explore: POC for datasource query importers
2018-11-16 14:55:19 +00:00
David Kaltschmidt
411719bc70
Explore: POC for datasource query importers
...
Explore is about keeping context between datasources if possible. When
changing from metrics to logging, some of the filtering can be kept to
narrow down logging streams relevant to the metrics.
- adds `importQueries` function in language providers
- query import dependent on origin datasource
- implemented prometheus-to-logging import: keeping label selectors
that are common to both datasources
- added types
2018-11-16 13:52:58 +00:00
David Kaltschmidt
9b48338d95
Explore: Dont set datasource in state if navigated away
...
Datasource selection triggers a connection test, on success
the DS is set in the Explore state. If the test takes long and user
selects a different DS, and just after that the first test succeeds,
then the first DS overwrites the state.
* when test returns check if datasource is still the requested one
2018-11-12 18:06:12 +00:00
Michael Huynh
22b8b04dbe
Preserve suffix text when applying function suggestion
...
Updates all PromQL function-like suggestions to omit parentheses
when inserted. Such insertions also preserve any suffix text.
Related: #13885
2018-11-09 20:43:20 +08:00
David Kaltschmidt
6b8d7c89ac
Refactored log stream merging, added types, tests, comments
2018-11-08 14:24:54 +01:00
David Kaltschmidt
e39e82949d
Adaptive bar widths for log graph
2018-11-06 11:07:12 +01:00
David Kaltschmidt
c1ca1ed35e
Time selection via graph
2018-11-05 23:36:58 +01:00
David Kaltschmidt
583334df05
Explore: Logging graph overview and view options
...
- Logging gets a graph for log distribution (currently per stream, but I
think I'll change that to per log-level)
- added grid columns for timestamp and unique labels
- show common labels of streams
- View options to show/hide time columns, label columns
- created `--small` modifier for Switch CSS classes
- merging of streams is now a datasource responsibility
2018-11-02 08:25:36 +01:00
David Kaltschmidt
037167ff07
Fix TimePicker test by enforcing UTC on date string
2018-10-30 16:50:03 +01:00
David Kaltschmidt
c92f5462fe
Explore: repair logging after code restructuring
...
this is a fix-up PR that cleans up Explore Logging after the recent
restructuring.
- log results need to be merged since query transactions have been
introduced
- logging DS has its own language provider, query field, and start page
(some of them based on prometheus components)
- added loader animation to log viewer
- removed logging logic from prometheus components
2018-10-30 16:35:49 +01:00
David
758ec4bc70
Merge pull request #13844 from grafana/davkal/explore-empty-page
...
Explore: Pluggable components from datasource plugins
2018-10-30 14:54:34 +01:00
David Kaltschmidt
cf19ecc8f5
Make Explore plugin exports explicit
2018-10-30 14:38:34 +01:00
David Kaltschmidt
5a23723f2c
Explore: fix copy/paste on table cells
...
When selecting text via mouse, our ReactTable cells' click handler
triggers an event.
- check event target to be the link, only then handle the event
2018-10-29 16:44:50 +01:00
David Kaltschmidt
d0776937b5
Pluggable components from datasource plugins
...
- when instantiating a datasource, the datasource service checks if the
plugin module exports Explore components, and if so, attaches them to
the datasource
- Explore component makes all major internal pluggable from a datasource
`exploreComponents` property
- Moved Prometheus query field to promehteus datasource and registered
it as an exported Explore component
- Added new Start page for Explore, also exported from the datasource
2018-10-29 15:14:36 +01:00
David
b00e709aee
Merge pull request #13842 from grafana/davkal/explore-error-handling
...
Explore: error handling and time fixes
2018-10-29 15:08:14 +01:00