Lukas Siatka
1de24cc929
Explore: adds PrometheusExploreQueryEditor ( #20195 )
...
* Explore: updates prom query field styles with flex-grow
* Explore: adds prometheus explore query editor
* Explore: updates step input width in prom explore query editor
* Explore: updates prom explore query editor step field input placeholder to auto
* Explore: updates prom explore query editor to include history
* Explore: updates prom explore query editor, removes unused lodash import
* Explore: updates step spacing in prom explore query editor
* Explore: updates prom explore query editor - moves logic to query field
* Explore: updates prom query field - adds step field with conditional rendering
* Explore: updates promql cheat sheet with step description
* Explore: updates prom cheat sheet step description
* Explore: updates styles - adds query row break class
* Explore: moves back step markup to PromExploreQueryEditor
2019-12-23 11:42:31 +01:00
Björn Rabenstein
7e8f4d0b0e
Simplify adjustInterval ( #21226 )
...
Much easier to wrap one's head around it if it is expressed more
directly.
This is not mathematically the same as the previous version involved
more rounding than necessary because of the way the intervalFactor was
handled. I'd argue the new version is better because it gets closer to
the 11,000 points limit and thus approaches better what the user
wanted within the limits of Prometheus.
Note that in practice, the 11,000 points limit should never be of
relevance. (Even a 4k screen doesn't have 11k points on the x axis.)
Signed-off-by: beorn7 <beorn@grafana.com >
2019-12-23 08:28:08 +01:00
Ryan McKinley
8d537b7afb
Chore: remove StreamHandler and DataStreamState ( #21234 )
...
* remove StreamHandler
* remove DataStreamState
2019-12-23 06:16:04 +01:00
Ryan McKinley
104c2e3636
Metrictank: fix bundled dashboard ( #21209 )
...
* update metrictank dashboard
* Restored dashboard datasource variable, and improved error handling in the import api handler
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2019-12-20 11:42:47 +01:00
David
34c1433ba4
Prometheus: Fix typehead after binary operators ( #21152 )
...
- no longer do right-trim to prevent suggestions after space
- rely on splitting on syntax elements to identify relevant prefix
- added tests
2019-12-18 13:35:31 +01:00
Dominik Prokop
26aa1f0cca
DataLinks: Sanitize data/panel link URLs ( #21140 )
...
* Sanitize html in panel links
* Add sanitize-url package
* Enable config mocking
* Sanitize datalinks urls
* Update public/app/core/config.ts
* Minor test update
* Remove sanitize-url dependency
* Remove typings
* Review update
* Revert "Remove sanitize-url dependency"
This reverts commit c4f38e6de6 .
* Revert "Remove typings"
This reverts commit 676d47e8c2 .
* Sanitaze, don't escape html when sanitizing URL
2019-12-18 11:31:11 +01:00
Hugo Häggmark
841cffbe9a
e2e: Migrates query variable CRUD tests to new framework ( #21146 )
...
* Refactor: Adds params to visit
* Refactor: Restructures exported Pages somewhat
* Refactor: Moves more into new framework but holdup because of bugs in digest
* Refactor: Finish migrating templating e2e tests to new framework
* Refactor: Changes after merge with master
* Refactor: Removes weird change
* Refactor: Adds duplication test
* Refactor: Adds move down and move up variable asserts
* Refactor: Adds some test to value select dropdown
2019-12-18 06:13:58 +01:00
Boyko
331bc173cc
Chore: Upgrade react, react-dom, react-test-renderer versions ( #21130 )
...
* Chore: Upgrade react, react-dom, react-test-renderer versions
* Chore: Normalize windows path for webpack plugin test
* Chore: Replace deprecated react-testing-hooks-library
2019-12-17 13:42:30 +01:00
David
13073fa6ba
Prometheus: Display HELP and TYPE of metrics if available ( #21124 )
...
* Prometheus: Display HELP and TYPE of metrics if available
- Prometheus recently added a metadata API around HELP and TYPE of
metrics
- request metadata when datasource instance is created
- use metadata to show help and type in typeahead suggestions and in
metrics selector as tooltip
* Fix types
2019-12-17 11:06:43 +01:00
Jerry Ylilammi
e27ab89aed
Postgres/MySQL/MSSQL: Adds support for region annotations ( #20752 )
...
Adds support for region annotations in Postgres, MySQL and
MSSQL data sources by adding a column named timeend to
annotation query.
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Closes #20918
Ref #10589
2019-12-13 17:25:36 +01:00
Shavonn Brown
f65da93d72
Azure Monitor: Use default from datasource if not saved on dashboard/query ( #20899 )
...
* use default from datasource if not saved on dash/query
* find datasource default workspace in returned workspace list
* don't need the find
* fix dropdown
2019-12-13 11:03:08 -05:00
Shavonn Brown
c14398edc8
Azure Monitor: Copy AM Creds to Log Analytics When Using Same As ( #21032 )
...
* copy creds draft
* copy azure monitor creds to log analystics for sameas
* alert
* update snapshot
2019-12-13 11:02:39 -05:00
Hugo Häggmark
a187500c0e
Prometheus: Prevents validation of inputs when clicking in them without changing the value ( #21059 )
...
Fixes #21056
2019-12-12 13:26:12 +01:00
Hugo Häggmark
e69ec6ca53
Prometheus: Fixes so user can change HTTP Method in config ( #21055 )
...
Fixes #21004
2019-12-12 11:52:03 +01:00
Itamar Turner-Trauring
70e38ec352
OpenTSDB: Adding lookup limit to OpenTSDB datasource settings ( #20647 )
...
* feat: adding lookup limit to OpenTSDB settings
Adding lookup to OpenTSDB datasource settings and using it in the datasource for tag value lookup and suggest
* Document the change.
* feat: UI for configuring OpenTSDB lookup limit.
* Apply prettier.
* Fix compilation error.
2019-12-12 09:02:50 +01:00
Andrej Ocenas
5a3c1dc6a4
Elastic: Add data links in datasource config ( #20186 )
2019-12-11 17:40:56 +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
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
Erik Sundell
93ab0532c7
Make sure datasource variable is being used everywhere ( #20917 )
2019-12-09 11:35:26 +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
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
Shavonn Brown
ced13da889
InfluxDB: Use new datasource update option funcs ( #20907 )
2019-12-06 08:57:05 +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
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
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
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
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
Ivana Huckova
45259f4362
Loki: Support for template variable queries ( #20697 )
2019-12-03 09:40:22 +01:00
Peter Holmberg
aa9d00d019
OpenTsdb: Migrate Config Editor to React ( #20808 )
2019-12-03 08:56:05 +01:00
Ivana Huckova
e68e93f595
Chore: Move Prometheus datasorce tests from specs folder and merge duplicated test files ( #20755 )
2019-12-02 18:14:26 +01:00
kay delaney
68944f8286
Datasource/Loki: Fixes regression where enhanceDataFrame was not called ( #20660 )
...
* Datasource/Loki: Fixes regression where enhanceDataFrame was not called
Closes #20642
2019-12-02 12:05:40 +00:00
Dieter Plaetinck
67bfdaeb3c
Graphite: Add metrictank dashboard to Graphite datasource ( #20776 )
...
Adds the latest metrictank dashboard (v0.13.1)
per https://github.com/grafana/metrictank/pull/1557
(same version lives on https://grafana.com/grafana/dashboards/279 )
fixes #20658
Note: for older versions of metrictank, some metrics may be a bit
different and thus some charts might not work.
2019-11-29 12:40:02 -08:00
Andrej Ocenas
f2574f4944
Prometheus: Fix caching for default labels request ( #20718 )
2019-11-28 16:55:38 +01:00
Peter Holmberg
c5ff7fa580
ReactMigration: Migrate Graphite config page to React ( #20444 )
...
* adding configeditor
* fix method signature and add state for metrictankhelper
* fix onChangeHandler
* prettier fix
* remove config and fix autoversion
* adding optional parameter to make this build
* set default version if none specified
* Graphite: removed version detection
2019-11-27 15:45:35 -08:00
Erik Sundell
116b6188a6
CloudWatch: Region template query fix ( #20661 )
...
* Make region an optional parameter
* Test region template query
2019-11-27 17:06:11 +01:00
kay delaney
d6ef02b3b3
Datasource/Loki: Fix issue where annotation queries weren't getting their variables interpolated ( #20702 )
...
Closes #20667
2019-11-27 15:58:21 +01:00
Erik Sundell
2929649fd4
CloudWatch: Annotations query editor loading fix ( #20687 )
...
* Re-adding lost import
* Make sure wildcard is not in annotations editor
2019-11-27 11:48:58 +01:00
David
c53ed5bbac
Loki: Fix query error for step parameter ( #20607 )
...
* Loki: Fix query error for step parameter
- Loki does not fully support float steps like prometheus and returns a
query error
- this change makes sure that the step parameter is rounded to an
integer
* Added test and comments
2019-11-26 05:43:24 -08:00