Cat Perry
83664121bc
Jaeger: Show loader when search options havent yet loaded ( #45936 )
...
* Swap out Select component for AsyncSelect to Jaeger search panel
2022-02-28 11:06:09 -08:00
Joey Tawadrous
42e516523f
InfluxDB: test datasource ( #45636 )
...
* Test datasource
* Remove core.explore check
* Extract resused check to function
* Update messages
* Updated message
2022-02-28 10:22:10 +00:00
Joey Tawadrous
f4658b72e1
InfluxDB: variables migration to backend ( #45512 )
...
* Remove check for explore
* Remove core app import
* applyVariables for select
* applyVariables for tags
* applyVariables for other query props
* applyTemplateVariables for flux
* applyTemplateVariables for influx
* Backwards compatibility
* interpolateVariablesInQueries
* Update InfluxQL mode and alias in test
* Should interpolate all variables with Flux mode
* Variables should be interpolated correctly
* Removed unused import
* explore in if check
* Removing backwards compat copy from classicQuery
* Return expandedQuery
* Const
2022-02-28 10:15:33 +00: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
Erik Sundell
1df040eb23
CloudWatch: Remove error message when using multi-valued template vars in region field ( #45886 )
...
* don't show error message when using multi-valued template variables in region field
* add unit tests
* remove commented code
2022-02-28 09:28:27 +01:00
Shachi Solanki
190757b3c6
Tempo / Trace Viewer: Support Span Links in Trace Viewer ( #45632 )
...
* Support Span Links in Trace Viewer
* Update ReferencesButton styles
* Remove datasource prop
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
2022-02-25 11:14:13 -07: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
Gábor Farkas
1cad35ea67
loki: backend mode: support all query types ( #45619 )
...
* loki: backend mode: support all query types
* loki: backend: adjust vector-parsing field-names
* loki: backend: no interval for streams-dataframes
* loki: backend: enable more query types
* better variable name
* removed unnecessary code
* improve frame-processing
* more unit tests
* improved code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* remove unused code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* simplify code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* lint fix
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-02-25 09:14:17 +01:00
Erik Sundell
b7a2fda2ae
Azure Monitor: Fixes broken log queries that use workspace ( #45820 )
...
* allow log queries to be executed also without a resource
* add unit tests
2022-02-24 15:29:18 +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]
ce4bba888c
Update dependency lru-cache to v7.4.0 ( #45739 )
...
* Update dependency lru-cache to v7.4.0
* Update snapshot
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-02-23 16:24:49 +01:00
Torkel Ödegaard
ef3f254208
Annotations: Fixes issue with tags filter not showing in annotation query ( #45724 )
2022-02-23 04:34:33 -08:00
Connor Lindsey
af2d19b02e
Tracing: Add option to map tag names to log label names in trace to logs settings ( #45178 )
...
* Add mapped tags input to allow renaming tags in trace to logs settings
* Use mappedTags in createSpanLink
* Update traceToLogs docs
* Show 'add kv' button if no tags
* Update docs
* Default mappedTags to tag values
2022-02-22 23:17:45 +01:00
Ryan McKinley
636af1fff4
Testdata: use alias in streaming example ( #45631 )
2022-02-18 16:30:57 -08:00
Gábor Farkas
78c35e6000
cloudwatch: use monaco from grafana-ui ( #45597 )
2022-02-18 17:14:14 +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
Hugo Häggmark
dbec2b02fd
Variables: move state tree into a keyed state ( #44642 )
...
* Variables: move state tree into a keyed state
* Update public/app/features/variables/state/transactionReducer.ts
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
* Chore: fix prettier error
* Chore: renamed slices and lastUid
* Chore: rename toUidAction
* Chore: rename dashboardVariableReducer
* Chore: rename state prop back to templating
* Chore renames variable.dashboardUid
* Chore: rename toDashboardVariableIdentifier
* Chore: rename getDashboardVariable
* Chore: rename getDashboardVariablesState
* Chore: rename getDashboardVariables
* Chore: some more renames
* Chore: small clean up
* Chore: small rename
* Chore: removes unused function
* Chore: rename VariableModel.stateKey
* Chore: rename KeyedVariableIdentifier.stateKey
* user essentials mob! 🔱
* user essentials mob! 🔱
* user essentials mob! 🔱
* user essentials mob! 🔱
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-02-18 06:06:04 +01:00
Sarah Zinger
85753afdf0
Cloudwatch: Fix bug with onblur in Metric Search ( #45488 )
2022-02-17 12:53:42 -05:00
Cat Perry
fcd85951a7
Tempo: Switch out Select with AsyncSelect component to get loading state in Tempo Search ( #45110 )
...
* Replace Select with AsyncSelect to get loading state
2022-02-17 09:18:25 -08: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
Connor Lindsey
6e07b30048
Chore: Clean up logs and deprecated library in tracing tests ( #45486 )
...
* Fix logs and errors from tracing tests
* Refactor SpanBar to remove recompose
* Fix NodeGraph tests
2022-02-17 16:34:16 +01:00
Isabella Siu
dac2b7ef73
Cloudwatch: Fix resource variables ( #45496 )
2022-02-17 09:04:59 -05:00
Peter Holmberg
0502a84922
Alerting: Add choice to external alertmanagers ( #45157 )
...
* implement alertmanagersChoice
* return empty array and remove non null assertion
2022-02-17 12:47:38 +01:00
Torkel Ödegaard
7bc12629fd
Prometheus: Fixing state timing issues ( #45458 )
2022-02-17 11:41:05 +01:00
Isabella Siu
50a53ef58b
CloudWatch: replace metricFindQueries with CallResourceHandler ( #41571 )
2022-02-16 14:28:26 -05:00
Ryan McKinley
1554bffcb8
Search: apply security in before returning results ( #45430 )
...
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
2022-02-16 09:47:41 -08:00
Torkel Ödegaard
2b9e46d1f8
Angular: Option to disable angular support and isolate angular dependencies ( #45421 )
...
* Angular: Initial setting that disables angular, load angular support in separate chunk
* Load angular panels on demand
* Load alerting in separate chunk only when angularSupportEnabled
* progress, do not export core_module if angular disabled
* Progress
* Update public/app/features/plugins/built_in_plugins.ts
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Removing remaining usage of angular from outside angular app (not counting plugins)
* Update config and docs
* Fix sample.ini
* Update public/app/features/alerting/AlertTab.tsx
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
* Fixing prettier issue
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2022-02-16 17:14:33 +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
Joey Tawadrous
b4dd3138ce
InfluxDB: metricFindQuery migration to backend ( #44546 )
...
* Send metricFindQuery to backend
* Added feature toggle
* Changed flag name
* metricFindQuery backend
* Added test for metricFindQuery backend parse
* Added test for show tag values
* Test for metricFindQueries
* Updated tests
* Put back comment
* Case insensitive in transformRows
* Check length ov value pair
* Sep tests
* Updated valuePair index
2022-02-16 09:16:22 +00: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
Ryan McKinley
d665306ad1
Search: add feature flag and basic service ( #45112 )
...
Co-authored-by: Artur Wierzbicki <artur@arturwierzbicki.com>
2022-02-15 10:26:03 -08:00
Torkel Ödegaard
ed5b2e5210
Move QueryPartDef out from angular app ( #45386 )
2022-02-15 14:20:50 +01:00
Joey Tawadrous
1b3dd310c0
Loki: Uppercase autocomplete ( #45123 )
...
* Updated regex
* Added test for uppercase
* Updated regex
2022-02-15 11:02:51 +00:00
Gábor Farkas
a612087c63
loki: remove fullRangeLogsVolume feature flag ( #45286 )
2022-02-15 09:05:03 +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
Connor Lindsey
3da0434e64
Tempo: Update service graph linked queries to use rate_interval and group histogram ( #45248 )
2022-02-11 07:58:10 -07: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
Gábor Farkas
59c5f14a59
loki: handle parsing infinity in loki response ( #45097 )
2022-02-11 14:28:11 +01:00
Marcus Efraimsson
0e8a5407d1
Postgres/MySQL/MSSQL: Remove usage of legacy timeSrv ( #45241 )
2022-02-11 13:36:11 +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
Jack Westbrook
979907e9dd
Chore: Set tsconfig target to ES6 ( #44842 )
...
* chore(tsconfig): update grafana/tsconfig to 1.2.0 for outputting es6
* rewrote the unsubscription part to use first().
* test: update failing tests to work with es6 output
* removed bug where we dispatch a promise instead of an array of ritch history.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2022-02-10 14:37:39 +01:00
Erik Sundell
57ecabf319
order subscriptions by name ( #45228 )
2022-02-10 14:27:12 +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