Ivana Huckova
07bc2c32e9
Explore: Add feature tracking for split open in logs sample ( #62241 )
...
Explore: Add tracking for split open in logs sample
2023-01-26 15:53:19 +00:00
Ivana Huckova
8246fc64fa
Explore: Trigger logs sample only when user click to see it ( #62226 )
...
LogSamples: Trigger log samples on user action
2023-01-26 16:23:13 +01:00
Ivana Huckova and Matias Chomicki
ea1fcbb866
Explore: Add feature to open log sample in split view ( #62097 )
...
* Add tests
* Implement split open to see logs functionality
* Fix imports in test
* Update packages/grafana-data/src/types/logs.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update packages/grafana-data/src/types/logs.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update default scneario to throw error
* Exit early in getSupplementaryQuery
* Update public/app/features/explore/LogsSamplePanel.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-01-26 16:06:10 +01:00
Ivana Huckova and Sven Grossmann
a0921f2e88
Explore: Implement logs sample in Explore ( #61864 )
...
* Implement log samples
* Explore: Implement logs sample panel
* Log samples: Add documentation
* Update docs
* Add info for log sample
* Fix label
* Update
* Default to true
* Fix copy in test
* Update public/app/features/explore/LogsSamplePanel.tsx
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Use timeZone from grafana/schema
* Rename data props to queryResponse
* Unify name to logs sample
* Remove redundant optional parameters in LogsSamplePanel
* Make intervalMs parameter optional in dataFrameToLogsModel and remove undefined argument when not needed
* Fix incorrect position of copy log line button
* Update public/app/core/logsModel.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2023-01-24 19:10:27 +01:00
Ivana Huckova and Piotr Jamróz
c106c7700b
Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples ( #61298 )
...
* Create DataSourceWithLogsSampleSupport check and move to 1 place
* Add new SupplementaryQueryType
* Add and change utility functions for loading, storing ancd checking supp queries
* Add logic to redux for processing of new type of supp query
* Implement queryLogsSample used to run samples queries
* Fix tests to include also Log samples
* Add tests
* Temporarily, default to false
* Change comment
* Fix lint error
* Refactor handling of supplementary queries in query.ts
* Fix looping over array
* Remove changes for any => unknowns as in utils.ts
* Fix logic
* Fix incorrect imports after function was moved to different file
* Migrate old log volume key
* Update public/app/features/explore/utils/supplementaryQueries.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Refactor to use DataSourceWithSupplementaryQueriesSupport
* Refactor, improve tests, change internal API
* Update packages/grafana-data/src/types/logs.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Add deprecation for DataSourceWithLogsVolumeSupport, but still support it
* Update comment with correct new issue
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2023-01-20 14:20:49 +01:00
Ivana Huckova
46722679b5
Elasticsearch: Fix creating of span link with no tags ( #61753 )
...
Elasticsearch: Fix create span link if no tags
2023-01-20 10:52:33 +01:00
Ivana Huckova
8bda8b8272
Log volume: Fix functionality if query has multiple comments ( #61306 )
...
* Log volume: Fix functionality if query has comments
* Add additional test
2023-01-11 16:21:02 +00:00
Ivana Huckova
256f640e19
Elasticsearch: Refactor processQuery to make it more readable ( #61145 )
...
* WIP: Simplify process query logic
* WIP: Simplify process query logic
* Simplify
* fix lint
2023-01-10 10:49:43 +01:00
Ivana Huckova and Piotr Jamróz
ddc8beda07
Logs volume: Refactor ( #60998 )
...
* Rename log volume in redux to supp query to make it more generic
* Change enabled query to queries
* Small spell fix StoreSuppQueryDataProviderAction -> storeSuppQueryDataProviderAction
* WIP
* Improve
* WIP
* Rename
* Move to 1
* Small updates
* Use enum
* Unify naming
* Use SUPP_QUERY_TYPES instead of Object.keys()
* Move SuppQueryType to types/explore
* Rename suppQuery to supportingQuery
* Rename SUPP_QUERY_TYPES to SUPPORTING_QUERY_TYPES
* Rename supporting to supplementary 🙈
* Remove suppQueryData && suppQueryData.data[0] check as it is redundant
* Update public/app/features/explore/state/query.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update public/app/features/explore/state/query.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Fix naming of SupplementaryQuery interface
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2023-01-09 18:33:48 +01:00
Ivana Huckova
30424a8618
Elasticsearch: Return error if invalid query ( #61044 )
...
* Elasticsearch: Return error if invalid query
* Add test
* Fix query in test
2023-01-06 11:14:17 +01:00
Ivana Huckova
772e8cbf60
Elasticsearch: Use interval provided by data request in backend ( #60480 )
...
* Elasticsearch: Remove interval caulation and use interval provises by grafana
* Remove redundant code
* Adjust snapshot tests
* Update test
* Fix lint
2023-01-05 12:26:27 +01:00
Ivana Huckova
c289cd136c
Elasticsearch: Fix adding of adhoc filters when jumping to explore ( #60691 )
...
* Elasticsearch: Fix adding of adhoc filters when jumping to explore
* Change NOT operator to - as it is preffered solution
2022-12-22 16:06:30 +01:00
Ivana Huckova
a1ef3d77f2
Elasticsearch: Use constants for default values and types ( #60673 )
2022-12-22 15:08:15 +01:00
Ivana Huckova
09bb4423d2
Elasticsearch: Fix pipeline aggregation queries in backend to pass frontend tests ( #60337 )
...
* Elasticsearch: Fix pipeline aggregation queries in backend
* Update
* Update lint
* Update pkg/tsdb/elasticsearch/time_series_query.go
* Fix lint
* Fix merge
2022-12-16 17:45:43 +01:00
Ivana Huckova
d332dab3ec
Elasticsearch: Refactor parse query ( #60440 )
...
* Refactor parse query to functions
* Move parsing to new file
* Create empty result variable and use it when returning early
* Fix linting
* Revert "Create empty result variable and use it when returning early"
This reverts commit 36a503f66e .
2022-12-16 16:30:36 +01:00
Ivana Huckova
70e34e7f32
Elasticsearch: Fix defaulting to time field if no field is specified in aggregation ( #60238 )
...
* Elasticsearch: Add test for using timeField from datasource when not specified in query
* Add default to timefield
* Merge fix
2022-12-14 14:19:03 +01:00
Ivana Huckova
d3ef86bd90
Elasticsearch: Add query building for log queries ( #60182 )
...
* Elasticsearch: Fix ordering in raw_document and add logic for raw_data
* Add comments
* Fix raw data request to use correct timefield
* Fix linting
* Add raw data as metric type
* Fix linting
* Elasticsearch: Add defaults for log query
* Add higlight
* Fix lint
* Add snapshot test
* Implement correct query for logs
* Update
* Adjust naming and comments
* Fix lint
* Remove ifs
2022-12-14 13:56:09 +01:00
Ivana Huckova
0973501233
Elasticsearch: Add query building for raw data and raw document queries to backend ( #59741 )
...
* Elasticsearch: Fix ordering in raw_document and add logic for raw_data
* Add comments
* Fix raw data request to use correct timefield
* Fix linting
* Add raw data as metric type
* Fix linting
* Hopefully fix lint
2022-12-13 13:11:44 +01:00
Ivana Huckova
3c9ccd4512
Loki: Usage for queries not from dashboards ( #60017 )
...
Loki: Usage for queries not from dashboars
2022-12-08 13:04:05 +01:00
Ivana Huckova
e2077e9659
Dashboard: Run requests with correct app type ( #60010 )
...
Dashboard: Run quries with correct core app
2022-12-08 11:52:28 +01:00
Ivana Huckova and Sven Grossmann
4b56493789
Elasticsearch: Add tracking for plugin adoption stats ( #59954 )
...
* Elasticsearch: Add tracking
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Refactor getLineLimit
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update not tracking for volume queries
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2022-12-08 11:28:40 +01:00
Ivana Huckova
601df109af
Loki: Remove annotation, context and volume tracking ( #59962 )
...
* Loki: Remove annotation and context tracking
* Implement log volume
2022-12-08 10:05:11 +01:00
Ivana Huckova
1aa94165d9
Loki: Do not track samples ( #59960 )
2022-12-07 16:24:22 +01:00
Ivana Huckova
13acddd605
Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation ( #59713 )
...
* Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation
* Update snapshot tests
* Fix linting
2022-12-07 09:47:31 +01:00
Ivana Huckova
fdc3adb2c9
Loki: Add tracking for on dashboard load ( #59914 )
...
Loki: Add on dashboard load tracking
2022-12-06 21:15:55 +01:00
Ivana Huckova and Gábor Farkas
e356a56741
Elasticsearch: Fix removing of empty settings from query in backend implementation ( #59704 )
...
* Elasticsearch: Fix removing of empty settings from query in backend implementation
* Update
* Update
* Update pkg/tsdb/elasticsearch/time_series_query.go
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com >
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com >
2022-12-05 16:06:55 +01:00
Ivana Huckova
a2ed586576
Elasticsearch: Migrate frontend query builder tests to backend ( #59578 )
...
* WIP: Migrated first batch of tests
* Migrate more tests
* Migrate rest of the tests
* Update comments
* Update
* Update
* Remove newline
2022-12-01 12:09:12 +01:00
Ivana Huckova
d6dd86d273
Elasticsearch: Run explore queries trough backend if feature toggle enabled ( #59394 )
2022-11-28 17:26:45 +01:00
Ivana Huckova
28c390bc90
Loki: Fix adhoc parsing if multiple stream selectors and some empty ( #58658 )
2022-11-25 14:00:48 +01:00
Ivana Huckova
261d620f1c
Elasticsearch: Add feature toggle for backend migration ( #58585 )
...
* Elasticsearch: Add feature toggle for backend migration
* Update
2022-11-10 16:35:15 +01:00
Ivana Huckova
a83dee6031
Elasticsearch: Add trace to logs functionality ( #58063 )
...
* Elasticsearch: Implement trace to logs
* Fix tests
2022-11-03 09:52:40 +01:00
Ivana Huckova
77f47ccba3
Loki: Remove redundant feature flag in defaults.ini ( #58084 )
2022-11-03 09:40:13 +01:00
Ivana Huckova
3d7439d97d
Loki: Fix input history ( #57344 )
2022-10-24 16:27:56 +02:00
Ivana Huckova
ef78f03a6f
Loki: Fix the name of exported component from LokiQueryEditor.tsx ( #57340 )
...
* Loki: Fix editor
* Fix names
2022-10-20 14:49:55 +02:00
Ivana Huckova and Matias Chomicki
3ee450e66b
Loki: Remove unused query editors ( #57192 )
...
* Loki: Remove not used query editors
* Move Loki editor to components and rename
* Update public/app/plugins/datasource/loki/components/LokiQueryEditorByApp.test.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Fix test
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2022-10-20 11:46:48 +02:00
Ivana Huckova and Sven Grossmann
7928f170ce
Loki: Fix adding of adhoc filters to stream selector when query with empty stream selector ( #57280 )
...
* disable double stringify
* Refactor test for addLabelToQuery
* Add tests (TDD for expected behaviour)
* Fix adding ad hoc filters to correct place when no stream selector
* Update
* Update comment
* Fix getAllPositionsInNodeByType
Co-authored-by: Sven Grossmann <svennergr@gmail.com >
2022-10-19 17:24:00 +02:00
Ivana Huckova and Matias Chomicki
b4a03d0cff
Loki: Fix explain section about $__interval variable ( #57188 )
...
* Loki: Update explain section
* Update
* Update public/app/plugins/datasource/loki/querybuilder/operationUtils.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2022-10-19 12:01:29 +02:00
Ivana Huckova
b997bc4200
Loki: Remove already selected options from next label filter options in builder ( #57187 )
...
* Loki: Filter out duplicated options in loki query builder label name options
* Update test
2022-10-19 11:32:01 +02:00
Ivana Huckova
7c10082c57
Devenv: Fix influx dashboard ( #56775 )
2022-10-12 14:01:48 +02:00
Ivana Huckova
3e856da2e4
LabelFilters: Remove redundant css styling ( #56653 )
...
* LabelFilters: Remove redundant css
* Remove unused import
2022-10-10 17:59:13 +02:00
Ivana Huckova
23e04c0f9c
Elasticsearch: Add integration tests for http header handling ( #56542 )
...
* Elasticsearch: Add integration test
* Fix lint
2022-10-07 18:21:48 +02:00
Ivana Huckova
a4c5801440
Loki: Fix redundant escaping in adhoc filter with regex match ( #56447 )
...
* Loki: Fix redundant escaping in adhoc filter with regex match
* Update data.js
* Simplify test
* Simplify test
* Update
* Add more tests
2022-10-07 16:21:59 +02:00
Ivana Huckova
eef3f28447
Loki: Add integration tests for http header handling ( #56478 )
...
* Loki: Add integration tests for http header handling
* Fix linting
2022-10-07 10:16:41 +02:00
Ivana Huckova
4469572b27
Loki: Add support for range aggregations with by grouping ( #56184 )
...
* Loki: Fix unwrapped range operations with grouping
* Update, fix tests
* Fix modeller
2022-10-05 11:32:33 +02:00
Ivana Huckova
b39d629142
Loki: Show invalid fields in label filter ( #55751 )
...
* Loki: Show invalid fields in Label filter
* Update
* Update comment
* Update comment
2022-09-29 13:32:01 +02:00
Ivana Huckova
21a99fba7e
Loki/Prometheus: Fix adding of ad hoc filters when jumping from dashboard to explore ( #55915 )
...
* Loki, Prometheus: Fix adding of ad hoc filters when jumping from dashbaord to explore
* Update
2022-09-29 11:17:41 +02:00
Ivana Huckova
5bd65db8a8
Loki: Add new range operation range_counter ( #55936 )
...
* Loki: Add new range operation range_counter
* Update yarn.lock
2022-09-28 18:36:36 +02:00
Ivana Huckova and Matias Chomicki
c0ecdf6783
Loki: Redesign and improve query patterns ( #55097 )
...
* WIP
* WIP
* Query patterns: Redesign and improve feature
* Remove duplicated pattern
* Remove empty line
* Refactor
* Add tests
* Update docs and e2e test
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Use capitalize
* Refactor to use QueryPatternsCard component
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update feature tracking for v2
* QueryPatternsCard: Remove unnecessary key
* Update naming for card
* Mock reportInteraction in tests
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2022-09-26 14:03:13 +02:00
Ivana Huckova
82a6872f0f
Loki, Prometheus: Remove beta tag from query builder ( #55150 )
2022-09-16 12:31:33 +02:00
Ivana Huckova
926a3396ab
Query patterns: Feature tracking ( #55164 )
...
* Query patterns: Feature tracking before redesign
* Update
2022-09-14 16:52:39 +02:00
Ivana Huckova
4503e0f417
Loki: Hide sample loki queries from inspector ( #55158 )
2022-09-14 14:25:25 +02:00
Ivana Huckova
e70395f07a
Query editor: Allow query editors to create new query ( #55028 )
...
* Query editor: Allow query editors to create new query
* Update
* Revert "Update"
This reverts commit d5b79d60dd .
2022-09-13 13:09:31 +02:00
Ivana Huckova
fde5147d71
Loki, Prometheus: Fix passing of query with defaults to code mode ( #53646 )
2022-08-12 15:00:55 +02:00
Ivana Huckova
f34a03b2f1
Loki: Rename Labels to Label filter and update placeholders ( #53446 )
...
* Loki: Rename Labels to Label filter and update placeholders
* Update label
* Replace Label filter with Label filters based on suggestion
2022-08-12 07:38:34 -04:00
Ivana Huckova
8813cbfb62
Loki: Update copy for missing label filter error message ( #53449 )
...
* Loki: Update copy for missing label filter
* Update
2022-08-11 17:57:10 +02:00
Ivana Huckova
ab739bf0e6
Collapse: Fix miss-aligned arrow icon ( #53452 )
2022-08-09 15:05:10 +02:00
Ivana Huckova
84b2498150
Loki: Fix showing of unusable labels field in detected fields ( #53319 )
...
* Loki: Fix showing of labels field in detected fields
* Create reusable createlogRow mock
2022-08-08 14:27:33 +02:00
Ivana Huckova
bf3fa4a445
Loki: Fix producing correct log volume query for query with comments ( #53254 )
...
* Loki: Remove comments from log volume query
* Update, add more tests
* Update based on suggestions
* Update
* Update tests to use it.each
2022-08-04 17:58:39 +02:00
Ivana Huckova
3877964470
Loki: Remove some of any assertions from tests ( #53114 )
...
* Loki: Remove some of any assertions from tests
* Remove unnecessary as assertions
2022-08-03 15:57:38 +02:00
Ivana Huckova
c4ed5c4d4b
Docs: Update explain section in Loki docs ( #53107 )
2022-08-02 17:21:09 +02:00
Ivana Huckova
5009c330ca
Loki: Add tests for explain section in builder and code editor ( #53113 )
...
* Loki: Add tests for new explain section
* Update any assertions
2022-08-02 17:20:22 +02:00
Ivana Huckova and ismail simsek
b8e4c2abeb
Loki: Move explain section to builder mode ( #52879 )
...
* Loki: Move explain to builder and code mode
* Update
* Update transition
* Fix tests
* Fix tests
* Prometheus: Move explain section to builder mode (#52935 )
* Prometheus: Move explain section to builder mode
* Show explain switch before raw query switch
* Store explain switch value in localstorage
* Make explain available for code mode too
* Introduce useFlag hook for query editor switches
* Remove Explain mode
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com >
2022-07-29 17:09:43 +02:00
Ivana Huckova
1eb3513781
Prometheus: Fix adding of multiple values for regex operator ( #52978 )
...
* Prometheus, Loki: Fix adding of multiple values for regex operator
* Refactor
2022-07-29 15:27:19 +02:00
Ivana Huckova
3f681114e5
Loki: Show label options for unwrap operation ( #52810 )
...
* Loki: Show options for unwrap operation
* Add comment for check
2022-07-27 10:45:30 +02:00
Ivana Huckova
77421907b7
Loki: Add support for IP label and line filter in query builder ( #52658 )
...
* Add support for IP line filter
* Add support for IP label filter
* Updates for Explain mode
* Update test
* Remove invalid options in LabelFilterIpMatches
2022-07-25 15:16:04 +02:00
Ivana Huckova and brendamuir
9d960e8723
Docs: Fix query history documentation ( #52610 )
...
* Query history: Fix docs
* Update query history docs
* Update docs/sources/explore/query-management.md
* Update docs/sources/explore/query-management.md
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com >
* Trigger drone
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com >
2022-07-25 15:00:56 +02:00
Ivana Huckova
53b8e528fc
Loki: Add unwrap with conversion function to builder ( #52639 )
...
* Loki: Add unwrap with conversion operator to builder
* Update explain section
* Update test
2022-07-25 12:51:28 +02:00
Ivana Huckova
772b6396f5
Loki: Add hints for level-like labels ( #52414 )
...
* Loki: Add hint for level-like label
* Add test to addToQuery
* Add tests
* Update tests
* Update copy
* Get log position in metrics query and add test
* Update
2022-07-22 16:59:25 +02:00
Ivana Huckova
c087198b1b
Loki: Fix adding of multiple label filters when parser ( #52335 )
...
* Loki: Fix adding multiple filters
* Update logic in sorting
2022-07-19 18:08:55 +02:00
Ivana Huckova and Sven Grossmann
8ff152f98f
ModifyQuery: Improve typing for modifyQuery and query hints ( #52326 )
...
* ModifyQuery: Improve typing
* Elasticsearch: Added `modifyQuery` method to add filters in Explore (#52313 )
* fixed elasticsearch `QueryFixAction` type
Co-authored-by: Sven Grossmann <Svennergr@gmail.com >
2022-07-18 14:13:34 +02:00
Ivana Huckova
8fc51932f5
Loki: Fix incorrect TopK value type in query builder ( #52226 )
...
* Loki: Fix incorrect TopK value type in query builder
* Simplify code
* Remove bracket
* Brackets are back
2022-07-15 13:03:14 +02:00
Ivana Huckova
1d077e84ce
Loki: Add hint for pipeline error to query builder ( #52134 )
...
* WIP
* Update
* Add tests
* Fix lint/betterer errors
* Update public/app/plugins/datasource/loki/addToQuery.ts
* Update copy
2022-07-14 10:48:27 +02:00
Ivana Huckova
2090534635
Loki: Support json parser with expressions in query builder ( #51965 )
...
* Loki: Support json parser with expressions in query builder
* Add explain docs for json parser
2022-07-12 15:42:01 +02:00
Ivana Huckova
0a2a370b77
Loki: Fix suggesting operations from different category ( #52034 )
2022-07-11 14:24:49 +02:00
Ivana Huckova
99fb29850e
Loki: Add missing operators in label filter expression ( #51880 )
2022-07-08 15:33:03 +02:00
Ivana Huckova
10cb84e401
Loki: Implement hints for query builder ( #51795 )
...
* Loki: Implement hints for query builder
* Update name of file
* Update imports
* Refactor
* Remove unused import
* Unify
* Revert "Unify"
This reverts commit 78da0e27e3 .
* Unify
* Fix types
* Fix tests
* Fix type error
* Simplify
* Update test
* Add documentation
* Update comment
* Add tests for addParserToQuery
* Smaller updates
2022-07-07 15:49:31 +02:00
Ivana Huckova
66b4a9e6a1
Loki: Remove unused prop from query builder ( #51504 )
2022-06-30 16:02:27 +02:00
Ivana Huckova
60454192b7
Loki: Add e2e test for query builder ( #51314 )
...
* Loki: Add e2e test for query builder
* Update
* Update test
* Update test
* Update test
* Update test
* Add more checks in test
* Update betterer
* Update betterer
2022-06-29 11:04:27 +02:00
Ivana Huckova
d3dd3042d6
Loki: Fix support of ad-hoc filters for specific queries ( #51232 )
...
* Loki: Refactor ad-hoc filters to use parser
* Remove renaming of files for easier review
* Update
* Update
* Add previously buggy test
* Fix tests
* Fix typos
* Update, improve typing
* Move reused code up
* Update order
* Update betterer statss
2022-06-24 22:29:22 +02:00
Ivana Huckova
0d899e2635
FeedbackLink: Add tracking ( #51251 )
2022-06-24 15:08:24 +02:00
Ivana Huckova
f7db3d2ae6
Logs: Fix report interaction name ( #51335 )
2022-06-24 10:37:16 +02:00
Ivana Huckova
62e55d530d
Query history: Fix default value when no config ( #51129 )
...
* Query history: Fix default value in setting.go
* Update for frontend
* Remove frontend update
2022-06-21 14:57:44 +02:00
Ivana Huckova
642b7b1eb8
LogRow: Fix placement of icon ( #51010 )
2022-06-17 09:48:00 +02:00
Ivana Huckova
0073f1b0b5
Update header ( #50787 )
2022-06-14 16:24:44 +02:00
Ivana Huckova
77bdbe1dea
Loki: Fix showing of duplicated label values in dropdown in query builder ( #50680 )
...
* Prometheus,Loki: Fix showing of duplicated values in dropdown
* Use different more readable solution
* Update
2022-06-13 15:19:20 +02:00
Ivana Huckova
0ddb3b7521
Query history: Add swagger definitions ( #50498 )
...
* Query history: Add swagger definitions
* Update
* Remove changes in generated files
* Generate api files
* Add query history into api docs
* Add examples for commands
* Add missing parameters
* Generate api-spec and api-merged
* Fix linting
* Fix showing of example of queries
* Revert "Fix showing of example of queries"
This reverts commit b1eb073fbe .
* Update
* Update
2022-06-13 09:47:40 +02:00
Ivana Huckova
088a1880d8
Loki, Prometheus: Show Query patterns in all editor modes ( #50263 )
2022-06-13 09:45:01 +02:00
Ivana Huckova
88279dda1c
Loki: Fix issues with using query patterns ( #50414 )
...
* WIP
* Loki: Fix running of query patterns
* Remove console.log
* Add test
* Update empty line filter test
2022-06-11 21:36:44 +02:00
Ivana Huckova
1231e0dd69
Explore: Fix log context scroll to bottom ( #50600 )
...
* Explore: Fix log context scroll to bottom
* Update
2022-06-11 21:33:12 +02:00
Ivana Huckova and Jennifer Villa
be712a5f17
Loki: Add more query patterns ( #50248 )
...
* Loki: Add query patterns
* Update
* Update queries
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com >
* Update public/app/plugins/datasource/loki/querybuilder/LokiQueryModeller.ts
* Update descriptions
* Update
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com >
2022-06-07 13:22:05 +02:00
Ivana Huckova
9f6afb3475
Prometheus, Loki: Update run queries button ( #50005 )
...
* Prometheus, Loki: Updare run queries button
* Update docs
* Update docs
2022-06-07 09:57:56 +02:00
Ivana Huckova and JitaC
5f6b23e45a
AutoSizeInput: Move to @grafana/ui ( #48811 )
...
* AutoSizeInput: Move to @grafana/ui
* Update packages/grafana-ui/src/components/AutoSizeInput/AutoSizeInput.mdx
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
* Update packages/grafana-ui/src/components/AutoSizeInput/AutoSizeInput.mdx
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
* Update packages/grafana-ui/src/components/AutoSizeInput/AutoSizeInput.mdx
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
* Fix linter error
* Update packages/grafana-ui/src/components/AutoSizeInput/AutoSizeInput.mdx
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
* Update packages/grafana-ui/src/components/AutoSizeInput/AutoSizeInput.mdx
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
* Move AutoSizeInput to Input folder
* Use iconOptions in storybook
Co-authored-by: JitaC <70489351+achatterjee-grafana@users.noreply.github.com >
2022-05-30 10:46:33 +02:00
Ivana Huckova
745b101d41
Loki: Fix unwrap parsing ( #49732 )
2022-05-27 14:00:51 +02:00
Ivana Huckova
e25a49ff49
Preferences: Fix updating of preferences for Navbar and Query History ( #49677 )
...
* Preferences: Fix PUT for Navbar and Query History
* Update linting
* Fix linting
* Use models defined in preference package in preferences
* Remove white space
* Revert "Use models defined in preference package in preferences"
This reverts commit 6f7aa9f8d3 .
2022-05-26 14:39:57 +02:00
Ivana Huckova and Gábor Farkas
250b72cc1b
Elasticsearch: Remove support for versions after their end of the life (<7.10.0) ( #48715 )
...
* Elasticsearch: Remove support for versions after their EOL
* Update docs
* Remove old versions from config
* Update pkg/tsdb/elasticsearch/elasticsearch.go
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com >
* Fix tests
* Fix typecheck errors
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com >
2022-05-05 16:16:34 +02:00
Ivana Huckova
769be876a5
Loki, Prometheus: Remember preferred editor ( #48580 )
...
* Loki: Remember default editor
* Loki: Add tests
* Prometheus: Set default editor type
* Fix and refactor tests
* Remove unused import
2022-05-03 14:50:13 +02:00
Ivana Huckova and Emil Tullstedt
4661c9ca47
Query history: Cleanup ( #48303 )
...
* Query history: Clean up stale history after 14 days
* Add unstarring sleanup
* Add wraapping
* Update sql for mysql database
* Update
* Remove fmt.Print
* Refactor and simplify solution
* Update pkg/services/queryhistory/database.go
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
* Adjust SQL to limit number of deleted queries
* Add limit enforcmenet to cleanup
* Change limit
* Update
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2022-05-03 14:49:58 +02:00
Ivana Huckova
cd462c5b21
Loki: add documentation for query builder ( #48523 )
2022-05-03 14:49:34 +02:00
Ivana Huckova and achatterjee-grafana
da1d34e83d
Elasticsearch: Add deprecation notice for < 7.10 versions ( #48506 )
...
* Elasticsearch: Add deprecation notice for old versions
* Add option to remove notice
* Remove deprecation from editor
* Update
* Update public/app/plugins/datasource/elasticsearch/configuration/ConfigEditor.tsx
* Simplify
* Update documentation
* Update
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-05-02 17:08:47 +02:00
Ivana Huckova
656cd4c8dd
Logs: Fix pagination skipping entries ( #48413 )
...
* Logs: Add pagination range to prevent pagination from skipping entries
* Revert "Logs: Add pagination range to prevent pagination from skipping entries"
This reverts commit 2e7a6b3870 .
* Refactor
* Update
2022-05-02 16:46:47 +02:00