Commit Graph
19865 Commits
Author SHA1 Message Date
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
David 8830c133d1 Merge pull request #14215 from grafana/davkal/fix-logging-selector-parsing
Logging: fix query parsing for selectors with multiple labels
2018-11-28 14:17:32 +01:00
David Kaltschmidt 9c316b55e9 Logging: fix query parsing for selectors with multiple labels
- simplify selector parsing
- added tests
2018-11-28 14:03:47 +01:00
Peter Holmberg 638c04e16b using percentage to not hide search when smaller screen 2018-11-28 11:41:40 +01:00
David 32511533c3 Merge pull request #14178 from grafana/davkal/explore-scan-log-range
Explore: Scan for older logs
2018-11-28 11:00:51 +01:00
Leonard Gram ce9e1a8f38 build: explaining the linux build. 2018-11-28 09:25:48 +01:00
Ryan McKinley b3e6da0cbd check for null with toLocalString (#14208) 2018-11-28 00:24:59 -08:00
Torkel Ödegaard 2faf8c722f Fix elastic ng-inject (build issue) (#14195)
fix elastic ng-inject issue in query editor
2018-11-28 00:20:49 -08: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
Peter Holmberg 2919fe1d6a color picker 2018-11-27 15:06:39 +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
Peter Holmberg b506697eda sort on value 2018-11-27 13:42:13 +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
Mattia Rossi ce74b1ddc2 Requested Backend changes, removed link in popover description for the offset field 2018-11-27 03:42:20 -05:00
Torkel Ödegaard 15637af1af Merge pull request #14197 from qhartman/patch-1
Remove confusing <> from variable intro
2018-11-27 00:03:23 +01:00
Quentin Hartman 02a7916b26 Remove confusing <> from variable intro
The existing intro makes it look like you should use `$<varname>` to refer to a variable. That of course is incorrect, and you should use `$varname`. In my experience using the <> marker around variable names should only be used when there isn't something else explicit to set it off. In this case we have `$`. Below, you can see the <> are also not used, because we have the `[[]]` to set it off. The inconsistency is confusing.
2018-11-26 15:33:13 -07:00
Erik Sundell 109ff1a3e1 includes ranges correctly in the options object 2018-11-26 17:09:50 +01:00
Leonard Gram bccce9922a docker: Upgrades base packages in the images.
Related to #14182
2018-11-26 16:41:46 +01:00
Peter Holmberg ff606891e2 small fixes 2018-11-26 16:21:54 +01:00
Marcus Efraimsson d9ff831bac Merge pull request #14194 from danielbh/pause-all-alerts-docs-fix
chore: correct pause-all-alerts auth in docs
2018-11-26 06:57:08 -08:00
Peter Holmberg aac1b6c57b logic for adding rows, styling 2018-11-26 15:52:50 +01:00
Marcus Efraimsson c0bf7c5f13 Merge pull request #14140 from grafana/fix_dashboard_service_log
log the actual error if failing to update alert data
2018-11-26 06:49:19 -08:00
Daniel Hollcraft 4a2e9b4bfa chore: correct pause-all-alerts auth in docs 2018-11-26 09:43:26 -05:00
Mattia Rossi f6fc7f7b64 Requested Backend changes, added details to popover description for the offset field 2018-11-26 08:58:25 -05:00
Marcus Efraimsson 46c6594744 Merge pull request #14163 from grafana/14155_whats_new
docs: what's new in v5.4
2018-11-26 05:28:57 -08:00
David 2257f63543 Merge pull request #14192 from grafana/davkal/fix-14190
Explore: Fix JS error when switching between 2 prometheus datasources
2018-11-26 14:20:16 +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 91ea8dccf5 Explore: Fix JS error when switching between 2 prometheus datasources
- since the DataQuery rewrite, Explore starts by submitting its queries (Explore cant know if the queries are emtpty)
- The datasource intercepts an empty query and returns an empty list of time series, and also no table for the table query.
- The query hinter then received no series to analyse and was not guarding against this.
- This PR adds this guard.
2018-11-26 13:43:22 +01:00
Peter Holmberg 1ca0d1deab color touches 2018-11-26 10:38:43 +01:00
Mattia Rossi 9825484176 Add support for Offset in elasticsearch datasource, date_histogram aggregation, fixes grafana #12653 2018-11-24 10:48:29 -05:00
Torkel Ödegaard efcbb92b3f Merge pull request #14170 from grafana/davkal/explore-prometheus-range-sort
Sort Prometheus range suggestions by length
v5.,2.4
2018-11-23 19:22:24 +01:00
David Kaltschmidt 575d888472 Fix tests to account for sortText 2018-11-23 16:53:46 +01:00
Leonard Gram 539036fd0f build: always test publisher. 2018-11-23 16:51:01 +01:00
Leonard Gram 82c98a5ff4 build: packages linked to dl.grafana.com. 2018-11-23 16:51:01 +01:00
David Kaltschmidt ae5ec44171 Fix tests to account for loglevel long names 2018-11-23 16:49:23 +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
Peter Holmberg e1eb7ca571 styling 2018-11-23 16:25:46 +01:00
Peter Holmberg 5c992ba13a created test for some functions 2018-11-23 16:12:53 +01:00
Marcus Efraimsson 1949c8eb57 update changelog 2018-11-23 15:41:47 +01:00
Erik Sundell 7209c7cd0a mock interval data 2018-11-23 15:37:49 +01:00