Ivana Huckova
fc9b8f6be1
Loki: Implement keep and drop operations ( #73636 )
...
* Update lezer
* Add functionalities for code and builder
* Add comment
2023-08-23 14:52:19 +02:00
Matias Chomicki
9abf8140c7
Loki: Add support for distinct operation in autocomplete and query builder ( #69003 )
...
* Loki Autocomplete: add support for suggesting distinct
* Loki query builder: add distinct as format operation
* Remove unused import
* Loki visual query: add support to parse distinct filters
* Query builder: use label param editor for distinct
* Loki Autocomplete: Improve distinct label suggestions
* Query Builder: improve distinct parsing
* Fix tests
* Update tests
2023-05-25 14:22:16 +02:00
Ivana Huckova
ca44164bea
Loki: Implement decolorize logql operation ( #68972 )
...
* Loki: Implement decolorize operation
* Fix tests
2023-05-24 15:23:54 +02:00
Ivana Huckova
eff90809a6
Loki: Update LokiOperationOrder ( #68905 )
...
Loki: Rename and update order of operations
2023-05-24 13:46:49 +02:00
Gareth Dawson
d72c39c587
Loki: Add descriptions to query builder operations ( #64046 )
...
* feat: add descriptions to query builder operations
* refactor: add suggestion from review
* fix: update width of label operator seelct
2023-03-14 12:14:32 +00:00
Sven Grossmann
9f9bf4650d
Loki: Fix missing parameters on Query Builder operations ( #60677 )
...
* add missing mandatory params
* improve naming
* change let to const
2022-12-22 15:31:41 +01:00
Gareth Dawson
65f7b93e6b
Loki: Add format explanation to regex operations ( #60518 )
...
* change explain messages for regex operations
* update explain messages to use the more accurate RE2
2022-12-19 14:32:51 +00:00
Gareth Dawson
2027f4702c
Loki: Add case insensitive line contains operation ( #58177 )
...
* add line-contains-case-insensitive operation definition
* add loki operation id for line-contains-case-insensitive
* make query case-insensitive when using line filter
* remove console log from operationUtils.ts
* add line-does-not-contain-case-insensitive operation definition
* add loki operation id for line-does-not-contain-case-insensitive
* make query case insensitive when using line-does-not-contain-case-insensitive
* update title and min-width for line-contains-case-insensitive
* add caseInsensitive optional parameter
* toggle case insensitive on operations
* remove console log
* update operation names
* add test coverage
* update to implement suggestions
* add suggestion
2022-11-07 17:01:06 +00:00
Sven Grossmann
4b1ddba0a8
fixed explain handlers for label- and lineformat ( #58135 )
2022-11-03 14:57:29 +01:00
Matias Chomicki
c8689fd591
Loki Monaco Editor: grab operator documentation from the operations module ( #57525 )
...
* feat(loki-operations): add method to resolve operation docs
* feat(loki-operations): read operation and strip markdown links
* feat(loki-monaco-editor): read parser docs from operations
* feat(loki-monaco-editor): grab docs for more operations
* Chore: update completions test
* Chore: add tests for the operations module
* Chore: fix typo
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* Chore: fix typo
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-10-26 15:44:44 +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
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
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
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
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
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
svennergr
b355adac6f
Loki: Run query when pressing Enter on line-filters ( #49913 )
...
* changed `onBlur` and `onKeyDown` handling
- `onCommitChange` is only called if `onBlur` or `onKeyDown` are not set
* added `runQueryOnEnter` flag to OperationParamDef
* only run query if `runQueryOnEnter` is configured
* changed `evt.type` check to `keydown`
2022-06-01 15:16:18 +02:00
Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
Andrej Ocenas
95009995e4
Prometheus: Move count_values from function to aggregation ( #47260 )
...
* Move count_values from function to aggregation
* Fix typos
* Fix loki operations
* Fix error that change the aggregation variant on blur
* Fix loki ops
2022-04-12 16:08:50 +02:00
Ivana Huckova
82aa31df36
Loki: Add missing functions to query builder ( #47333 )
2022-04-05 19:15:22 +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
f8b9bf543b
Loki: Replace auto with ( #47283 )
2022-04-04 18:43:37 +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
Torkel Ödegaard
21fd9dd056
Loki: Adds line format operation ( #47015 )
2022-03-30 09:11:36 +02:00
Torkel Ödegaard
feaa4a5c64
Loki: Support binary operations and nested queries in new builder ( #47012 )
...
* Binary ops support
* Add support for nested expressions in loki
* Nested queries working
* Fixing tests
* Share more code between loki and prometheus query modellers
2022-03-29 18:50:07 +02:00
Torkel Ödegaard
5f9cd7b875
Loki: Add aggregate by label support ( #46965 )
...
* Loki: Add aggregate by label support
* Label lookups now work for loki
* Fixed ts issue
* review comment fixed
2022-03-29 17:49:21 +02:00
Torkel Ödegaard
76c9ad2d9b
Loki: Improve operation ordering when adding new operations ( #46598 )
2022-03-23 07:42:25 +01:00
Torkel Ödegaard
c952c9c90a
Loki: Adds more options to make line filter UX better ( #46324 )
...
* Loki: Adds more options to make line filter UX better
* Sync wording
* Tweak width
* More tweaks
* Added descriptions as well
2022-03-10 10:12:54 +01:00
Andrej Ocenas
6dea7275a6
Prometheus: Improved the function selector with search ( #46084 )
...
* Change to cascader with search
* Don't change to select on backspace
* Fix error on group select
* Simplify getOperationDef
* Set cascader wrapper to fixed width
* Add placeholder
* Fix tests and type errors
* Fix props for backward compatibility
* Add comments
2022-03-03 10:24:33 +01:00
Torkel Ödegaard
f7291ce270
Prometheus: Remove the auto range vector option ( #45715 )
...
* Prometheus: Remove auto range option
* Prometheus: Remove auto range option
* Overhaul of range vector operations and default param
* Make sure label is string
2022-02-25 11:18:08 +01:00
Torkel Ödegaard
64e1e91403
PromQueryBuilder: Query builder and components that can be shared with a loki query builder and others ( #42854 )
2022-01-31 06:57:14 +00:00