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
Ivana Huckova and achatterjee-grafana
f90622e0d0
Shortcuts: Add shortcut to show shortcuts to the list of shortcuts ( #48395 )
...
* Shortcuts: Add shortcut for shortcuts
* Update public/app/core/components/help/HelpModal.tsx
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 14:55:44 +02:00
Ivana Huckova and achatterjee-grafana
b92fe0e0f5
Query history: Add from and to parameters ( #48212 )
...
* Query history: Add from and to parameters
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Implement Grafana relative time range
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-04-29 09:55:33 +02:00
Ivana Huckova
da49e94069
Loki: Enable new visual query builder by default ( #48346 )
2022-04-28 13:03:59 +02:00
Ivana Huckova
a60c32275e
LabelFilter: Use EditorField instead of Field ( #48339 )
2022-04-27 15:13:11 +02:00
Ivana Huckova
c0ee94a04d
Update grafana/experimental and fix Cloudwatch components ( #48132 )
...
* Update grafana/experimental and fix components
* Simplify
2022-04-26 11:28:34 +02:00
Ivana Huckova
98161be9ad
Query history: Pass config to frontend and add missing documentation ( #48204 )
...
* Query history: Pass config to frontend and add missing documentation
* Update
2022-04-26 11:15:08 +02:00
Ivana Huckova
28665a869b
Prometheus: Add report interaction for editor modes ( #47940 )
...
* Prometheus: Add report interaction for editor modes
* Add new query
* Fix test
* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryEditorSelector.tsx
* Add app to feature tracking
* Update
2022-04-22 10:46:16 +02:00
Ivana Huckova
ce6aed21a7
Loki: Show raw query and patterns only in query builder ( #48049 )
2022-04-21 14:23:03 +02:00
Ivana Huckova
52768d87c4
Update button name to make it more clear ( #48042 )
2022-04-21 12:24:11 +02:00
Ivana Huckova
5c4459a723
Prometheus: Remove running of query on raw query toggle ( #47938 )
2022-04-20 13:33:59 +02:00
Ivana Huckova
677327ea07
Show error when operations, but no stream selector ( #47890 )
2022-04-19 16:54:08 +02:00
Ivana Huckova
a068712ac2
Loki: Updates to raw query and run query button ( #47874 )
...
* Loki: Create toggle-able raw query
* Update name
2022-04-19 15:29:40 +02:00
Ivana Huckova
2aa6f4d17b
Loki: Fix showing of default visual query only if no expression ( #47764 )
...
* AutoSizeInput: Fix updating of value
* Update
* Revert "Update"
This reverts commit a3b527e0c6 .
* Revert "AutoSizeInput: Fix updating of value"
This reverts commit d4b4ae0a10 .
* Fix showing of default visual query only if no expression
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderContainer.tsx
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderContainer.tsx
* Update
* Update
2022-04-19 15:29:27 +02:00
Ivana Huckova and Torkel Ödegaard
5df05e31bb
Loki: Use single string expr as a state for the visual editor ( #47566 )
...
* Loki: Use expr as state for visual editor
* Loki: Use query with line filter as default for visual editor
* Refactor based on feedback
* fix background for query text row
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2022-04-14 10:59:39 +02:00
Ivana Huckova
aceedb3a32
Query history: Add migration endpoint ( #47551 )
...
* Add endpoint for migration
* Check for createdAt
* Query history: Remove returning of dtos
* Query history: Fix CreatedAt
* Refactor based on suggestions
* Insert into table in batches
2022-04-14 09:33:41 +02:00
Ivana Huckova
201557c6fc
Query history: Save user preferences in database ( #47506 )
2022-04-12 11:42:42 +02:00
Ivana Huckova
7ab910af48
Query history: Search in comments ( #46761 )
2022-04-08 09:35:34 +02:00
Ivana Huckova
caa82a124d
Loki,Prometheus: Fix of showing error message for empty query ( #47379 )
...
* Loki,Prometheus: Dont show error on empty query
* Add tests
2022-04-06 11:17:49 +02:00
Ivana Huckova
82aa31df36
Loki: Add missing functions to query builder ( #47333 )
2022-04-05 19:15:22 +02:00
Ivana Huckova
6938d5b975
Loki: Show error when parsing nodes not supported in visual query builder ( #47321 )
...
* Show error when parsing nodes not supported in visual query builder
* Refactor, simplify
* Spell fix
* Spell fix
2022-04-05 17:07:13 +02:00
Ivana Huckova
c5ac19d499
Loki: Add all supported parsers to query builder ( #47304 )
...
* Loki: Add all supported parsers to query builderr
* Update test
* Add tests for new parsers
2022-04-05 14:52:06 +02:00
Ivana Huckova
4c6d2ce618
Loki: Parse query with unwrap ( #47282 )
...
* Loki: Parse simple unwrap
* Update public/app/plugins/datasource/loki/querybuilder/parsing.ts
* Simplify
2022-04-04 18:44:23 +02:00
Ivana Huckova
f8b9bf543b
Loki: Replace auto with ( #47283 )
2022-04-04 18:43:37 +02:00
Ivana Huckova
24cf70dd29
Loki: Add parsing for vector aggregations with grouping ( #47257 )
...
* Parse aggregations with grouping
* Move getByType to shared parsing utils
2022-04-04 18:11:15 +02:00
Ivana Huckova
5ba9ccb5a7
Loki: Add label_replace option to query builder ( #47247 )
...
* Add label_replace operation
* Update
2022-04-04 16:20:19 +02:00
Ivana Huckova and Andrej Ocenas
554492ec4e
Loki: Add parsing of query to visual query ( #46700 )
...
* Create parser
* Add parsing
* Update comment
* Remove operations that we don't support
* Resolve type errors
* Update test
* Handle backticks
* Handle backticks
* Remove copied test, update test
* Parsing for binary operations
* Remove error about setting state after unmount
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com >
2022-03-31 10:51:49 +02:00
Ivana Huckova
7839fadf00
Loki: Fix fetching of second label set for the streams selector ( #46898 )
...
* Fix fetching of labels
* Add test
2022-03-23 17:59:48 +00:00
6e96506c23
Query history: Add search functionality ( #45932 )
...
* Query history: Add search functionality
* Add more tests
* Add documentation
* Fix spell errors
* Update docs
* Update docs
* Fix lint error
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Document limit
* Run tests with postgres and mysql
* Use CASE insted of IIF
* Use BooleanStr instead of 1
* Change LIKE to LikeStr()
* Return back integration tests
* Update SQL to use Bool() everywhere
* Create new tests for sorting
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Add page, count and limit to results
* Remove newline
* Update documentation
* Update docs
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-03-07 12:28:04 +01:00
Ivana Huckova
647c5208d7
Devenv: Add documentation for integration tests ( #46056 )
...
* Add documentation for integration tests
* Update contribute/developer-guide.md
2022-03-02 10:12:50 +01:00
Ivana Huckova and Torkel Ödegaard
4ab191b612
Prometheus: Create AutoSizeInput with dynamic width ( #45601 )
...
* Autosize input for dynamic width
* Update
* Refactoring to use measureText util instead
* removed react fragment tags
* Add tests
* Use AutoSize input in legend, step and nested queries vector matcher
* Update
* Remove unused imports
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2022-02-28 10:52:58 +01:00
Ivana Huckova
9e452c7166
Devenv: Update Elasticsearch v7 image so it is usable on ARM (M1) ( #45612 )
...
* Devenv: Update Elasticsearch v7 images so they are usable on ARM (M1)
* Remove changes in 77
* Update data sources
2022-02-24 16:48:18 +01:00
Ivana Huckova and Piotr Jamróz
a3a852be81
Query history: Create API to star and unstar query in query history ( #45077 )
...
* Query history: Add starring and unstarring API
* Return dto with starred info when commenting
* Add documentation for starring and unstarring of query
* Return dto when starring/unstarring
* Update documentation
* Update deleting with unstarring
* Check queryUID length in queryhistory
* Fix linting issues
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2022-02-23 17:03:04 +01:00
Ivana Huckova
123f095536
Docs: Update log level information and add tip ( #45411 )
...
* Docs: Update conent for log level
* Add tip
2022-02-17 10:04:15 +01:00
Ivana Huckova
a1a96a7324
Prometheus: Fix removing of labels when removed outside of component ( #45424 )
...
* Prometheus: Don't remove lables when switching metrics
* Always update labels when labels from prop change
* Add test
* Update variable name
* Revert "Update variable name"
This reverts commit ca186f8b0b .
2022-02-16 09:40:04 +01:00
Ivana Huckova
d38f0e5d9e
Prometheus: Offer hint for metrics with labels ( #45396 )
...
* Prometheus: Offer hint for counter metric with labels
* Update comment
* Fix hinting for buckets with labe-values
2022-02-16 09:34:32 +01:00
Ivana Huckova and achatterjee-grafana
636a45f065
Query history: Create API to patch comment of query in query history ( #44981 )
...
* Query history: Patch comment
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Remove redundant check
* Use WithTransactionalDbSession to update comment
* Fix status code in test
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-02-15 15:43:17 +01:00
Ivana Huckova
6a828a051a
Logs: Fix LogDetailsRow tests that produced console errors ( #45388 )
...
* Fix LogDetailsRow tests that produced console errors
* Use div instead of wrapping with table
* Use div instead of wrapping with table
2022-02-15 14:06:24 +01:00
Ivana Huckova
9e2caa9ddc
Prometheus: Add hints to query builder ( #45288 )
...
* Add hints to query builder
* Move Query hints to own component
* Use replace 5m with in rate queries
* Remove unused prop
2022-02-11 16:50:35 +01:00
Ivana Huckova
6bc527a211
Add prometheus operation ids ( #45216 )
2022-02-10 13:40:02 +01:00
Ivana Huckova
2250c229d6
Prometheus: Add multi-word search and higlight to metric selector ( #44906 )
...
* Prometheus: Add multi-word search and higlight to metric selector
* Remove redundant test
* Remove redundant test id
* Update PromQueryBuilder test
* Match only words split with space
2022-02-07 15:18:17 +01:00
Ivana Huckova and Piotr Jamróz
0f362f8dfc
Query history: Create API to delete query from query history ( #44653 )
...
* Query history: Add delete and refactor
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2022-02-04 16:14:36 +01:00
Ivana Huckova
e7a0e69153
Loki: Use explore query field unless new query builder feature toggle is enabled ( #44858 )
...
* Loki: Fix using of Explore editor in Explore
* Add test and remove Explore fields in module
* Update tests
2022-02-04 12:19:18 +01:00
Ivana Huckova and Torkel Ödegaard
c23bc1e7b7
Prometheus: Show variable options in query builder ( #44784 )
...
* Prometheus: Show variable options
* Remove lint error
* Fix test for CodeQL
* Update public/app/plugins/datasource/prometheus/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
* Update public/app/plugins/datasource/loki/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
2022-02-03 11:40:19 +01:00
Ivana Huckova
780591cc12
Prometheus: Fix some of the alerting queries that use reduce/math operation ( #44380 )
...
* Prometheus: Dont fill response with nulls for alerting queries
* Refactor based on reviews
2022-01-31 18:14:30 +01:00
Ivana Huckova
4e37a53a1c
Query history: Create API to add query to query history ( #44479 )
...
* Create config to enable/disable query history
* Create add to query history functionality
* Add documentation
* Add test
* Refactor
* Add test
* Fix built errors and linting errors
* Refactor
* Remove old tests
* Refactor, adjust based on feedback, add new test
* Update default value
2022-01-28 17:55:09 +01:00
Ivana Huckova
e704110f74
Prometheus: Fix interpolation of $__rate_interval variable ( #44035 )
...
* Name fields based on targets length
* Remove rounding in rate interval variable replacing
* Refactor and fix edge case when interval and time duration would be rate interval
* Add tests
* Remove , from test
* Revert "Name fields based on targets length"
This reverts commit 5dcb34a765 .
2022-01-17 15:32:23 +01:00
Ivana Huckova
c8ef541c02
Name fields based on targets length ( #43832 )
2022-01-12 10:13:52 +01:00
Ivana Huckova
d7d6c10664
Prometheus: Fill missing steps with null values ( #43622 )
...
* Prometheus: Add empty points when data points missing
* Remove newline
* Add comments
* Improve/Fix test
* Remove unused variable
2022-01-05 11:40:32 +01:00
Ivana Huckova
f63c2e4bc4
Prometheus: Fix interpolation of variables in Annotation queries ( #43459 )
2021-12-22 16:50:58 +01:00
Ivana Huckova
2655be61b6
Prometheus: Interpolate curly brackets syntax variable ( #42927 )
2021-12-09 14:37:24 +01:00
Ivana Huckova
e555221523
Prometheus: Fix running of exemplar queries for non-histogram metrics ( #42749 )
...
* Prometheus: Fix running of exemplar queries for non-histogram mestrics
* Fix test
* Refactor based on review suggestions
2021-12-09 11:30:23 +01:00
Ivana Huckova
21fe78302b
Prometheus: Fix passing of custom params when running queries ( #42728 )
...
* Prometheus: Fix passing of custom params
* Remove prints
2021-12-03 16:28:05 +01:00
Ivana Huckova
8722c19cc3
A11y: Fix prometheus issues ( #42671 )
2021-12-03 14:15:25 +01:00
Ivana Huckova
698f452e0d
A11y: Add missing aria labels in Loki QueryEditor ( #42664 )
...
* Loki: Add missing aria-label
* Update text
* Update text
2021-12-03 14:14:51 +01:00
Ivana Huckova
64cf0aa813
Loki: Fix adding of ad hoc filters for queries with parser and line_format expressions ( #42590 )
...
* Loki: Fix ad hoc filtewrs for queries with line_format
* Fix tests
2021-12-03 14:11:43 +01:00
Ivana Huckova
5cbb4a0a2d
Prometheus: Interpolate template variables in interval ( #42637 )
...
* Interpolate interval
* Add test
2021-12-02 13:32:02 +01:00
Ivana Huckova and Giordano Ricci
d28e7b6185
Explore: Fix timezone not changing for graph and table ( #42430 )
...
* Pass timezone to graph in Explore
* Fix timezone issues for table
* Fix type error
* Update public/app/features/explore/TableContainer.test.tsx
Co-authored-by: Giordano Ricci <me@giordanoricci.com >
* Replace UTC with InternalTimeZones
* Update CEST to cest
Co-authored-by: Giordano Ricci <me@giordanoricci.com >
2021-12-02 12:07:23 +01:00
Ivana Huckova
8d6831f21f
Tracing: Refactor span detail logic ( #42152 )
...
* Tracing: Update incorrect span fix based on review feedback
* Prometheus: Use this.query for health check
* Revert "Prometheus: Use this.query for health check"
This reverts commit 4c1a6a92a5 .
2021-11-29 16:19:56 +01:00