Commit Graph

10894 Commits

Author SHA1 Message Date
Torkel Ödegaard
72ee1b9a94
MixedDatasources: Do not filter out all mixed data sources in add mixed query dropdown (#20990) 2019-12-10 23:17:55 +01:00
David
75923c43d1
Promtheus: Improve tab completion (#20938)
Change in behavior:

- no longer suggest everything in empty field, only history
- term suggestions need at least one character
2019-12-10 16:11:31 +01:00
David
2d5dc5d6b2
Loki: fix labels fetching when no initial range given (#21000) 2019-12-10 15:29:32 +01:00
Erik Sundell
0e4850f203
UI: Segment fixes (#20947)
* Add support for primitive values/onchange

* Fix segment clickaway bug

* Fix onchange

* Use primitive in cloudwatch

* Add placeholder

* Use placeholder in cloudwatch editor

* Fix lint error

* Fix lodash import

* Use new component story format

* Add support for autofocus

* Use selectable value for onchange event

* Fix lint error
2019-12-10 13:00:22 +01:00
Labesse Kévin
26789d1eb6 Stackdriver: Make service list searchable (#20989)
* remove non-searchable option

* fix unit test

Signed-off-by: Kevin Labesse <kevin@labesse.me>

* fix unit test
2019-12-10 12:29:25 +01:00
Alexander Zobnin
f24b84faef
UI: ConfirmModal component (#20965)
* UI: ConfirmModal component based on Modal

* UI: refactor ConfirmModal after Modal changes

* UI: use Icon component for Modal

* UI: ConfirmModal tests

* UI: ConfirmModal story
2019-12-10 11:57:34 +03:00
lzd
6efadc9d79 Alert: If the permission is forbidden, keep the historical alarm data present. (#19007) 2019-12-10 09:22:49 +01:00
Hendrik van Huyssteen
bf0d87aaf6 Graph: Add fill gradient option to series override line fill (#20941) 2019-12-10 09:09:48 +01:00
David
1a2dad9d0c
Prometheus: disable dynamic label lookup on big datasources (#20936)
* Prometheus: disable dynamic label lookup on big datasources

- when a prometheus datasource has more than 10000 metrics, label lookup
for the query field is disabled
- installations of that size have slow typehead lookup times and make
the editor sluggish

* Raise dynamic lookup threshold to 10000 metrics

* Run start tasks again
2019-12-09 17:02:17 +01:00
David
7665dcc867
Loki: Fix datasource config page test run (#20971)
- since the API update, the URL fallback was working, but the response
format also needed adapting: `data` (v1) vs `values` (pre-v1)
- this change looks for either data or values in the response for test
and metadata requests
2019-12-09 16:45:56 +01:00
Hugo Häggmark
8140c9bab7
e2e: Replaces truth image (#20966) 2019-12-09 14:45:24 +01:00
Erik Sundell
93ab0532c7
Make sure datasource variable is being used everywhere (#20917) 2019-12-09 11:35:26 +01:00
Torkel Ödegaard
fc00d8336f
Alerting: Improve alert threshold handle dragging behavior (#20922) 2019-12-09 10:49:35 +01:00
Andrej Ocenas
a7f4e4c56a
Prometheus: Refactor labels caching (#20898) 2019-12-09 09:46:52 +01:00
Hugo Häggmark
58cffde0f2
e2e: Uses Cypress instead of Puppeteer (#20753)
* WIP: intial commit

* Tests: Runs e2e tests

* Refactor: Adds BASE_URL support

* Refactor: Adds namespacing

* Refactor: Cleans up the Page api

* Build: Adds to build-branches-and-prs job for testing

* Build: Hardcoded image for now

* Refactor: Uses Selectors in App

* Refactor: Adds addDataSource flow

* WIP

* Refactor: Adds e2eScenario

* Refactor: Adds add and delete scenarios

* Refactor: Adds logging

* Refactor: Adds ability to for Selectors with variables

* Refactor: Using variable selectors instead

* Refactor: Adds flow until Share Panel

* Refactor: Adds clicking on rendered image link

* Refactor: Deletes log output

* Refactor: Updates snapshots

* Chore: Reverts changes

* Refactor: Removes log plugin because maybe it breaks yarn build

* Refactor: Adds rendered image download

* Refactor: Adds image comparison

* Refactor: Removes uncaught errors override

* Refactor: Changes order of images to compare

* Refactor: Updates truth image

* Build: Updates path to CI artifacts

* Refactor: Cleaning up types and config

* wip

* Refactor: Cleans up external api

* Refactor: More cleanup

* Refactor: More cleanup

* Refactor: Removes usages of Pages and Flows

* Refactor: Removes last traces of Cypress in spec

* Refactor: Adds comments
2019-12-09 00:14:25 -08:00
Sofia Papagiannaki
4ad8b6f030 Elasticsearch: set default port to 9200 in ConfigEditor (#20948) 2019-12-07 21:50:54 -08:00
Ivana Huckova
23327fcdea
Loki: Remove appending of (?i) in Loki query editor if not added by user (#20908) 2019-12-06 18:04:13 +01:00
kay delaney
b4736558ac Datasource/Loki: Loki now goes to Logs mode when importing prom queries (#20890)
* Datasource/Loki: Loki now goes to Logs mode when importing prom queries
Closes #20831

* Fixes behavior and adds tests

* Update public/app/features/explore/state/actions.test.ts
2019-12-06 17:00:05 +01:00
David
ab3df98523
Cloudwatch: Defined explore query editor for cloudwatch (#20909)
* Defined explore query editor for cloudwatch

* Fix types
2019-12-06 16:04:31 +01:00
kay delaney
6f4f327887
Datasource/Loki: Empty metric name no longer replaced by query (#20924)
Closes #20762
2019-12-06 14:30:27 +00:00
Torkel Ödegaard
2a44cbd137
AngularPanels: Check for digest cycle on root scope (#20919) 2019-12-06 09:03:14 +01:00
Shavonn Brown
ced13da889 InfluxDB: Use new datasource update option funcs (#20907) 2019-12-06 08:57:05 +01:00
Torkel Ödegaard
a9bf8f80e9
Search: Fixed angular digest issues (#20906) 2019-12-05 19:17:26 +01:00
Erik Sundell
9d9f0e1b8c
Remove false positive error message for expression and id field (#20864) 2019-12-05 18:38:40 +01:00
Ivana Huckova
827688f152
Elastic: Fix multiselect variable interpolation for logs (#20894) 2019-12-05 11:55:03 +01:00
Torkel Ödegaard
20fad92a80
Singlestat: Fixed unit not showing and switched to new unit picker (#20892) 2019-12-05 11:54:14 +01:00
Torkel Ödegaard
87485e24a4
MetaAnalytics: Minor fix for meta analytics event (#20888)
* Minor fix for meta analytics event

* Fixed dashboardSrv issue

* Added timeSinceNavigationStart
2019-12-05 11:51:38 +01:00
Andrej Ocenas
c4c031ef43
Explore: Cleanup redundant state variables and unused actions (#20837) 2019-12-05 11:22:46 +01:00
kay delaney
880fbcb09a
Chore/Tech debt: Remove (most) instances of $q angular service use (#20668)
* Chore/Tech debt: Remove (most) instances of $q angular service use
Removes instances where the angular $q service is used and replaces
it with native Promises.
2019-12-05 09:04:03 +00:00
Torkel Ödegaard
62f0aca3e6
AngularPanels: Fixed loading spinner being stuck in some rare cases (#20878) 2019-12-05 08:59:07 +01:00
Hendrik van Huyssteen
9a7a1b86ee TeamPicker: Increase size limit from 10 to 100 (#20882) 2019-12-05 08:32:18 +01:00
Dominik Prokop
178bb1d3ab Echo: mechanism for collecting custom events lazily (#20365)
* Introduce Echo for collecting frontend metrics

* Update public/app/core/services/echo/Echo.ts

Co-Authored-By: Peter Holmberg <peterholmberg@users.noreply.github.com>

* Custom meta when adding event

* Rename consumer to backend

* Remove buffer from Echo

* Minor tweaks

* Update package.json

* Update public/app/app.ts

* Update public/app/app.ts

* Collect paint metrics when collecting tti. Remove echoBackendFactory

* Update yarn.lock

* Move Echo interfaces to runtime

* progress on meta and echo

* Collect meta analytics events

* Move MetaanalyticsBackend to enterprise repo

* Fixed unit tests

* Removed unused type from test

* Fixed issues with chunk loading (reverted index-template changes)

* Restored changes

* Fixed webpack prod
2019-12-05 08:30:39 +01:00
Torkel Ödegaard
4b8a50e70b StatPanel: change to beta 2019-12-04 21:34:33 +01:00
Shavonn Brown
2098b9eb44
Azure Monitor: Standardize Config Editor Implementation (#20455)
* initial changes - removal from state, remove anon functions, reset secrets empty

* post testing cleanup

* init promise cancellation, other cleanup

* workspaces response parser, remove version incrementing

* update datasource funcs - DRYer

* remove prop mutation

* func to modify root config opt

* fix version issue

* update snapshot
2019-12-04 14:35:53 -05:00
Marcus Andersson
5f72bfe6e7 GraphTooltip: added boundaries so we never render tooltip outside window. (#20874) 2019-12-04 18:08:49 +01:00
Dominik Prokop
ad33d95dd3 Graphite: Use data frames when procesing annotation query in graphite ds (#20857)
* Use data frames when procesing annotation query in graphite ds

* Remove destruct
2019-12-04 18:07:11 +01:00
Andrej Ocenas
4c9cb415ec Elastic: Fix parsing for millisecond number timestamps (#20290)
* Stop parsing 'field'

* Remove time field from query for docs queries

* Test refactor to test all versions

* Fix tests
2019-12-04 14:43:43 +01:00
Erik Sundell
e0229045f2
UI: Use SelectableValue as Segment value (#20867)
* Use SelectableValue for segment value

* Update cloudwatch components to use new segment props
2019-12-04 13:55:23 +01:00
kay delaney
b111fee642
Datasource/Loki: Fixes issue where time range wasn't being supplied with annotation query (#20829)
* Datasource/Loki: Fixes issue where time range wasn't being supplied with annotation query
Closes #20667

* Add test to verify new behavior

* Added end/start check to test
2019-12-04 12:43:22 +00:00
Andrej Ocenas
6682a36b8a
Explore: Fix reset reducer duplication (#20838) 2019-12-04 12:51:15 +01:00
kay delaney
02bbdca604
Datasource/Loki: Simplifies autocompletion (#20840)
Unifies loki autocomplete so behavior isn't different
across explore modes.
Closes #20769
2019-12-04 09:00:35 +00:00
Ryan McKinley
d7c76dacad ValueFormats: dynamically create units (#20763)
* update fixed

* update fixed

* update fixed

* don't change any tests

* add mising space

* Custom unit formats

* return a string for kbn

* return a string for kbn

* return a string for kbn

* Simplify unit tests

* More units

* fix more tests

* fix more tests

* fix more tests

* format values

* format values

* TimeSeries to string

* more kbn tests

* use the formatted value

* BarGauge: Fixed font size calculations

* support prefix

* add si support

* avoid npe

* BarGauge/BigValue: value formatting

* fix some tests

* fix tests

* remove displayDateFormat

* another unicode char

* Graph: Use react unit picker

* Updated unit picker

* Fixed build errors

* more formatting

* graph2 tooltip formatting

* optional chaining
2019-12-04 09:08:07 +01:00
kay delaney
a093fbb51a Migration: Migrate org switcher to react (#19607)
* Migration: Migrate org switcher to react

* Improve modal overflow behavior

* Updated modal backdrop

* Renamed type

* Modal: Refactoring and reducing duplication
2019-12-03 22:47:19 +01:00
Ivana Huckova
5a4465a382
Explore: Log message line wrapping options for logs (#20360) 2019-12-03 13:02:44 +01:00
Dominik Prokop
3f348287aa Fix prettier (#20827) 2019-12-03 10:23:41 +01:00
Ivana Huckova
45259f4362
Loki: Support for template variable queries (#20697) 2019-12-03 09:40:22 +01:00
Ivana Huckova
5710e52c11
Explore: Export timezone from redux state (#20812) 2019-12-03 09:38:47 +01:00
Peter Holmberg
aa9d00d019
OpenTsdb: Migrate Config Editor to React (#20808) 2019-12-03 08:56:05 +01:00
Philipp Nowak
64916cd7a9 TablePanel, GraphPanel: Exclude hidden columns from CSV (#19925)
* TablePanel: Don't include hidden columns in CSV export

Fixes #12076

* GraphPanel: Don't include hidden series in CSV export

Series are hidden if all values are zero/empty and the relevant graph
option is enabled as well. (e.g. "Hide series: With only nulls")

Fixes #12076
2019-12-02 21:58:36 +01:00
Ryan McKinley
e216044c75
DataFrame: add utilities to @grafana/data that support apache arrow (#20813) 2019-12-02 12:39:50 -08:00