Andrej Ocenas
ee87ed3b51
Prometheus: Parsing for vector matching and UI changes ( #46668 )
2022-03-17 10:50:49 +01:00
Andrej Ocenas
ecdbcd4941
Prometheus: Fix support of AdHoc filters for specific queries ( #46547 )
...
* Use parser to deal with ad hoc filters
* Add comment
* Fix variable naming
* Fix tests
2022-03-15 17:37:20 +01:00
Andrej Ocenas
a2cec62fa2
Prometheus: Fix parsing of binary operations ( #46549 )
2022-03-15 17:00:29 +01:00
Andrej Ocenas
04409799fb
Prometheus: Allow boolean params on operations and add bool modifier parsing ( #46448 )
...
* Allow boolean params on operations and add bool modifier parsing
* Allow float number literals
2022-03-14 17:36:25 +01:00
Andrej Ocenas
b3f8079f4f
Prometheus: Add title to metrics in the metric select with metric help text ( #46406 )
...
* Add title to metrics in the select
* Add some comments
* Fix tests
2022-03-10 16:58: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
Torkel Ödegaard
806b0e3b23
Prometheus/Loki: Improve operations header UX ( #46346 )
...
* Prometheus/Loki: Improve operations header UX
* More tweaks
* Rename file to match compponent
2022-03-10 09:38:53 +01:00
Andrej Ocenas
1604e09549
Prometheus: Add text to Add operation button ( #46249 )
2022-03-04 15:59:11 +01:00
Andrej Ocenas
5aa1713941
Prometheus: Support more binary operations in visual builder ( #46241 )
...
* Add definitions and code to parse more binary ops
* Add alternativesKey
* Add signs to nested query
* Change label
2022-03-04 15:04:09 +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
renovate[bot]
1f332a846b
Update dependency lezer-promql to v0.22.0 ( #45838 )
...
* Update dependency lezer-promql to v0.22.0
* Add missing peerdep + fixes in code
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-03-02 19:45:08 +01:00
Torkel Ödegaard
5c05a3deb9
Prometheus: Save query editor mode default ( #46074 )
2022-03-02 16:16:19 +01:00
Torkel Ödegaard
9bd6290968
Prometheus: Query builder operation docs popover improvements ( #46006 )
2022-03-01 13:12:14 +01:00
Torkel Ödegaard
16b99cc0f5
Prometheus: Query builder ux tweaks ( #46017 )
2022-03-01 13:11:47 +01:00
Stephanie Closson
251d6ed0e0
Chore: Add function documentation for new functions (Prometheus visual query editor) ( #45745 )
...
* add missing function documentation
* added trigonometric functions
2022-03-01 07:42:32 -04:00
Ivana Huckova
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
Torkel Ödegaard
9b6552c7b4
Prometheus: Fixes crash in the new options component when range was undefined ( #45921 )
...
* Prometheus: Fixes crash in the new options component when range was undefined
* Simplified conditions
2022-02-28 10:37:22 +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
Ashley Harrison
d3700c4032
Chore: Remove console output from some jest tests ( #45792 )
...
* Chore: Remove console output from some jest tests
* Skip manual performance test
2022-02-24 10:49:48 +00:00
Andrej Ocenas
5c6061acd2
Prometheus/QueryBuilder: Fix parsing of functions without args ( #45508 )
2022-02-24 11:37:25 +01:00
renovate[bot]
f6780d8861
Update dependency lru-cache to v7 ( #45074 )
...
* Update dependency lru-cache to v7
* Make latest lru cache work
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-02-18 10:23:06 +01:00
Stephanie Closson
abe32b9521
Implement PromQL Functions in new query editor ( #45431 )
...
* adding functions for prometheus queries
* WIP: functions added. Just categorizing them and testing each function out
* WIP: testing functions
* WIP verifying other functions
* Functions added and classified
* added tests
* moved bottomk to aggregations module
* added tests to the PromQueryModeller
* code review comments. Made range renderer common with code
* removed duplicate functions
* updated comments
2022-02-17 12:39:41 -04:00
Torkel Ödegaard
7bc12629fd
Prometheus: Fixing state timing issues ( #45458 )
2022-02-17 11:41:05 +01:00
Torkel Ödegaard
cfa24a3cfb
Prometheus: Auto legend handling ( #45367 )
...
* Legend editor is working
* It's working
* Progress on auto legend mode
* Fixes
* added unit tests
* Added go tests
* Fixing tests
* Fix issue with timing and internal state
* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-02-16 14:06:33 +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
Torkel Ödegaard
916f152a6f
Prometheus: Fixes issue adding rest params ( #45364 )
...
* Prometheus: Fixing issue adding rest param and adding test
* Rebuild when expr changes from outside
2022-02-16 08:05:16 +01:00
Torkel Ödegaard
52ae586452
Prometheus: Improvements to binary operations, nesting and parantheses handling ( #45384 )
...
* Prometheus: Improve query nesting ux
* Prometheus: Add parentheses around nested queries with binary ops
* removed unnessary typing change
* Fixing ts issues
* Improved paranthesis logic
* Fixing unit test
* Progress
2022-02-15 21:05:35 +01:00
Marcus Andersson
9a12b3ea00
TemplateSrv: exposing a function to detect if a target contains a template ( #45214 )
...
* exposing a function to check if a target contains variables.
* fixed tests.
* renamed function
* updated betterer result.
2022-02-15 08:53:42 +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
Torkel Ödegaard
aa6cee1072
Prometheus: Specific code mode view that has no options, instead sharing options with builder ( #45260 )
...
* Prometheus: Adding a slimmed down code mode for new prometheus query ux
* Show Both option in Explore
* Prometheus: Adding query defaults handling
* More tweaks
* Fixing defaults and logic for when to show exemplars toggle
* Fixing tooltip text
* Set exemplars to false when setting query type instant
* Updated test
2022-02-11 14:43:52 +01:00
Andrej Ocenas
642f0a250d
Prometheus: Use single string expr as a state for the visual editor ( #45232 )
...
* Use just expr string as a state for whole editor
* Fix patterns
* Fix tests
2022-02-10 16:55:44 +01:00
Ivana Huckova
6bc527a211
Add prometheus operation ids ( #45216 )
2022-02-10 13:40:02 +01:00
Torkel Ödegaard
f2795981c6
Prometheus: Fix test warnings ( #45206 )
2022-02-10 12:23:56 +01:00
Torkel Ödegaard
68eb18c758
Prometheus: Support with aggregations without labels ( #45160 )
2022-02-10 11:48:48 +01:00
Andrej Ocenas
071ff0b399
Prometheus: Query parsing for visual editor ( #44824 )
...
* Add parsing from string to visual query
* Add comments
* Parse expr when changing to builder
* Support template variables
* Report parsing errors
* More error handling
* Add ts-ignore for debug func
* Fix comments
2022-02-09 17:16:14 +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
Torkel Ödegaard
f92ab9bc72
Prometheus: Adds missing options to the new query builder ( #44915 )
...
* Prometheus: Query builder legend format, first working state
* Added format option
* Working options section
* Wrapping stuff up removing old stuff
* Fixed ts issues
* Review fixes
* Added unit tests for preview toggle
2022-02-07 13:32: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
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
renovate[bot]
d87cd6f26c
Update dependency prettier to v2.5.1 ( #43473 )
...
* Update dependency prettier to v2.5.1
* prettier fixes
* chore(toolkit): bump prettier to 2.5.1
* style(eslint): bump grafana config to 2.5.2 in core and toolkit
* style(mssql-datasource): fix no-inferrable-types eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
Torkel Ödegaard
fb680b3575
Loki: Query builder, hook up instant toggle and improve inline switch ( #44704 )
2022-02-01 13:56:11 +01:00
Torkel Ödegaard
e39d43db0a
Prometheus: Use explore query field unless new query editor feature toggle is enabled ( #44650 )
2022-01-31 19:06: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
Sergey Kostrukov
cb09162cde
Datasources: Simplify the AzureCredentials structure in datasource config ( #39209 )
...
Related #35857
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-01-25 14:23:32 +01:00
Tharun Rajendran
732c2ebb37
Explore: show scalar data result in a table instead of graph ( #44362 )
...
Signed-off-by: tharun <rajendrantharun@live.com>
2022-01-24 10:22:06 +01:00
Joker
3239c62a24
Explore: Support custom display label for exemplar links for Prometheus datasource ( #42732 )
...
* Add custom URL label, docs for prometheus exemplar
2022-01-14 14:52:00 +00:00
Ivana Huckova
c8ef541c02
Name fields based on targets length ( #43832 )
2022-01-12 10:13:52 +01:00
Ryan McKinley
546818819b
Loki: use queryType rather than range|instant flags ( #43727 )
2022-01-07 10:00:11 -08:00
machinly
36626554be
Prometheus: annotation: fix only first frame was process error & typo. ( #43486 )
2022-01-07 15:04:30 +01:00