Commit Graph

17820 Commits

Author SHA1 Message Date
Torkel Ödegaard
d5b4a1288a
Scenes: Updates to variables demo (#63511)
* Scenes: Updates to variables demo to include a collapsable scene to test scenario of part of scene containing a query runnner being inactive while a variable changes value

* Table: Fixes logic for when adhoc filters are shown

* Scene: Variables minor style fix

* rever unrelated change

* Update version

* Update
2023-02-24 09:30:15 +01:00
Ivan Ortega Alba
14e29451cf
Loki ds: Interpolation breaks in Loki queries when no scoped vars (#63694) 2023-02-24 00:18:08 -08:00
Gábor Farkas
6cee0cdbad
elastic: remove most of xpack (#63460)
elasticsearch: do not show the xpack toggle in datasource config
2023-02-24 07:24:31 +00:00
kay delaney
36e474d109
PanelHeaderMenu: Use UI/Menu component (#63040) 2023-02-24 04:23:56 +00:00
Ivan Ortega Alba
ca4cd85504
InfluxDB ds: Query variable breaks trying to interpolate __interval (#63682) 2023-02-23 20:30:20 +01:00
ismail simsek
ffed779879
InfluxDB: Fix getting empty response when querying fields with retention policy (#63669)
Revert "InfluxDB: Send retention policy with InfluxQL queries if its been specified. (#62149)"

This reverts commit a5a85e0398.
2023-02-23 12:20:20 -05:00
Isabella Siu
22537bec2e
CloudWatch Logs: Fix query editor freezing (#63661) 2023-02-23 11:50:48 -05:00
Torkel Ödegaard
2023203045
SectionNav: Simplify section toggle styling (#63653) 2023-02-23 17:03:00 +01:00
Josh Hunt
0c36b247af
Chore: Refactor Search/Folder view types into DashboardViewItem (#63162)
* Chore: Refactor Search/Folder view types into DashboardViewItem

* uid is not optional in api

* rename queryResultToNestedFolderItem function

* Fix error from locationInfo being empty

* change queryResultToViewItem to take view instead

* Fix sortMeta fields not showing on search cards

* Show correct parent for panel search results
2023-02-23 15:52:54 +00:00
Ashley Harrison
a48793b542
Accessibility: Make row actions keyboard accessible (#63367)
make row actions keyboard accessible
2023-02-23 15:20:59 +00:00
Torkel Ödegaard
85c81ae080
Scenes: Variables minor style fix for spacing & margin (#63643)
* Table: Fixes logic for when adhoc filters are shown

* Scene: Variables minor style fix

* rever unrelated change
2023-02-23 06:41:43 -08:00
Paul Dee
f3714099e7
spell fix (#63588) 2023-02-23 12:36:27 +01:00
Laura Benz
df6572b53f
Laura/refactor/move tests for running queries (#63581)
* refactor: move tests to a new file and clean up original file

* refactor: restructure test

* refactor: remove linting error

* refactor: change wording in test description
2023-02-23 11:51:51 +01:00
Josh Hunt
54aaaf169f
Internationalization: Mark up more of Dashboard Variables and Browse/Search Dashboards (#63518)
* Extract dirty translations from main

* Translate some variable phrases

* Translate nav bar

* Translate search/browse

* Fix header returning null

* Translate search results type

* fix test
2023-02-23 10:46:07 +00:00
Ashley Harrison
4a2695349d
Chore: more ts test fixes (#63438)
* replace anys in tests

* more test fixes

* clean up any's in tests
2023-02-23 10:07:44 +00:00
Jev Forsberg
f94b957333
Stat panel: Update out-of-date README (#63160)
* baldm0mma/chore/updateREADME/ update the readme for the statpanel

* baldm0mma/chore/updateREADME/ annos

* baldm0mma/chore/updateREADME/ update info with copy from docs

* baldm0mma/chore/updateREADME/ update caps

* baldm0mma/chore/updateREADME/ rem letter

* baldm0mma/chore/updateREADME/ update language

* baldm0mma/chore/updateREADME/ update spelling
2023-02-22 14:12:00 -07:00
Adela Almasan
05a9946b18
Geomap: Improve tooltip url for photos layer (#63487) 2023-02-22 20:00:06 +02:00
Abdul
5ec8e370f7
Expressions: Add tests for the QueryEditorRows and QueryGroup components (#63394)
* add QueryGroup onAddQueryClick and onExpressionClick tests

* add test's for the query group component

- new query/expression should be expanded
- adds query/expression onclick

* add open data source help modal test

* add disabled expression test

* add query editor rows test

* rm unused attributes, rm renderScenario required override
2023-02-22 17:26:41 +02:00
Ivana Huckova
a1c0feab7d
Loki: Remove comment (#63565)
Remove comment
2023-02-22 14:57:18 +01:00
ismail simsek
3d75dbc31e
Prometheus: Handle annotation query with empty fields (#63560)
Handle annotation query with empty fields
2023-02-22 14:47:50 +01:00
Gábor Farkas
f925a989d3
elasticsearch: metrics rate and top_metrics do not need xpack (#63457) 2023-02-22 14:36:15 +01:00
Kristina
06dfe2156f
Explore: Add transformations to correlation data links (#61799)
* bring in source from database

* bring in transformations from database

* add regex transformations to scopevar

* Consolidate types, add better example, cleanup

* Add var only if match

* Change ScopedVar to not require text, do not leak transformation-made variables between links

* Add mappings and start implementing logfmt

* Add mappings and start implementing logfmt

* Remove mappings, turn off global regex

* Add example yaml and omit transformations if empty

* Fix the yaml

* Add logfmt transformation

* Cleanup transformations and yaml

* add transformation field to FE types and use it, safeStringify logfmt values

* Add tests, only safe stringify if non-string, fix bug with safe stringify where it would return empty string with false value

* Add test for transformation field

* Do not add null transformations object

* Break out transformation logic, add tests to backend code

* Fix lint errors I understand 😅

* Fix the backend lint error

* Remove unnecessary code and mark new Transformations object as internal

* Add support for named capture groups

* Remove type assertion

* Remove variable name from transformation

* Add test for overriding regexes

* Add back variable name field, but change to mapValue

* fix go api test

* Change transformation types to enum, add better provisioning checks for bad type name and format

* Check for expression with regex transformations
2023-02-22 06:53:03 -06:00
Torkel Ödegaard
f64b7fe8a7
Page: Remove footer from new page layout (#63455)
* Page: Option to hide footer, enabled by default for PluginPage

* Remove footer from new page layout
2023-02-22 13:30:57 +01:00
Konrad Lalik
0a73ac36ad
Alerting: Add dashboard and panel links to rule and instance annotations (#63243)
* Add dashboard and panel links in rule and instance annotations

* Use clean annotations in RuleViewer
2023-02-22 13:17:13 +01:00
Gareth Dawson
c5ed9391b6
Loki: Display error with label filter conflicts (#63109)
* feat: add logic to check for conflicting operator

* feat: display error if there is a conflict

* feat: check if label filter conflicts with other filters

* fix: remove capitalisation from "no data"

* test: add tests for isConflictingFilter function

* feat(labels): add validation for label matchers

* test(labels): add tests for isConflictingSelector

* refactor(labels): add suggestions from code review

* test(labels): add case for labels without op

* refactor(operations): add suggestions from code review

* feat(operations): display tooltip when you have conflicts

* fix: remove unused props from test

* fix: remove old test

* fix(labels): error message now displays in the correct location

* fix(operations): operations can be dragged, even with error

* fix: remove unused vars

* fix: failing tests

* fix(operations): hide error message whilst dragging

* refactor: use more appropriate variable naming

* refactor: add suggestions from code review

* perf: use array.some instead of array.find
2023-02-22 09:56:20 +00:00
Shirley
3a57304ef0
CloudWatch: Remove error for multi-value variable in logs runner (#63522)
Remove error for multi template variable in CW logs runner
2023-02-22 10:35:39 +01:00
Gábor Farkas
b069fd81b2
loki: query splitting: more robust check (#63542) 2023-02-22 09:16:05 +01:00
Adela Almasan
3949706182
Geomap: Release night / day layer (#63435) 2023-02-22 07:39:39 +02:00
Adela Almasan
2240484935
Geomap: Fix default opacity for layers (#63426) 2023-02-21 20:55:07 +02:00
Andreas Christou
20591cc42b
CloudMonitor: Fix query migration (#63491)
* Update query and set required fields for explore queries

* Update test case

- Validate onChange is called with the new query
2023-02-21 11:21:20 -05:00
Torkel Ödegaard
6fd547881a
Page: Remove page shadow and replace with panel border (#63453) 2023-02-21 15:42:37 +01:00
ismail simsek
80292d3d1e
Prometheus: Fix missing abs operation to query builder (#63139)
Add abs operator to prometheus query builder
2023-02-20 15:49:59 +01:00
Gábor Farkas
8f7b980c95
Loki: query splitting: handle stats (#63436)
* loki: query splitting: handle stats

* update tests
2023-02-20 13:55:56 +00:00
Gilles De Mey
c30f3a617b
Alerting: adds tests for expression utils (#63421) 2023-02-20 08:53:06 +01:00
Konrad Lalik
69b2aade1b
Alerting: Make the folder field read-only on the eval group modal (#62935)
* Make the folder field read-only on the eval group modal

* Code cleanup

* Use useCombinedRuleNamespace to simplify groups fetching

* Fix groups filtering and label

* Revert go test changes, add folder button title

* Revert go changes

* Remove folder link when no url provided, fix messages

* Fix tests

* Fix lint
2023-02-20 08:47:50 +01:00
Gábor Farkas
7a8f1ab566
loki: query splitting: stricter types (#63387) 2023-02-17 19:43:08 +01:00
Matias Chomicki
a0bea04a02
Range splitting: Read errors from the received response and report them (#63368) 2023-02-16 12:39:26 -05:00
Matias Chomicki
0240f4eb45
Loki Range Splitting: Create a new instance for the initial frame (#63361)
* Range splitting: create a new instance of the initial frame

* Chore: rename variable
2023-02-16 12:55:31 +01:00
Ashley Harrison
f8d89eff56
Chore: fix type errors in tests (#63270)
* fix any's in tests

* fix more any's in tests

* more test type fixes

* fixing any's in tests part 3

* more test type fixes

* fixing test any's p5

* some tidy up

* fix template_srv
2023-02-14 16:46:42 +01:00
Gábor Farkas
0ee9d11a91
loki: query splitting: better canceling (#63315)
loki: query splitting: better cancelling
2023-02-13 17:52:30 +01:00
Matias Chomicki
84fdb7f908
Loki Range Splitting: Calculate dynamic maxLines per target based on the current response state (#63248)
* Range splitting: update maxLines for logs queries

* Range splitting: add unit tests for dynamic limit requesting
2023-02-13 07:59:20 +01:00
Ryan McKinley
985c61d700
Dashboard: remove unused submenuEnabled property (#63289)
remove submenu property
2023-02-12 18:10:29 +01:00
Ieva
229f8b6e6d
Support bundles: small UX improvements (#63277)
support bundle ux improvements
2023-02-11 08:31:03 +00:00
Ezequiel Victorero
8520a8614c
PublicDashboards: add recipients to the public dashboards retrieval (#63149) 2023-02-10 15:01:26 -03:00
Brendan O'Handley
879f980084
Revert "Prometheus Datasource: Improve Prom query variable editor" (#63278)
Revert "Prometheus Datasource: Improve Prom query variable editor (#58292)"

This reverts commit eedcd7d5b1.
2023-02-10 12:31:16 -05:00
Matias Chomicki
8cd3d1bfda
Loki Range splitting: Ignore hidden queries (#63250)
Range splitting: ignore hidden queries
2023-02-10 18:19:17 +01:00
Sven Grossmann
3f144924d1
Loki: Do not chunk when refid contains do-not-chunk (#63276)
add ref-id to not chunk requests
2023-02-10 18:00:49 +01:00
Sven Grossmann
0bd326d846
LogsVolume: Make log volume work with chunking (#63181)
* aggregate logs volume on streaming

* enable log volume queries to be split

* add streaming indicator

* added tests

* also chunk logs queries

* change extraInfo back to undefined
2023-02-10 14:43:41 +01:00
Sven Grossmann
00edc1c6b1
Loki Context UI: Do not disable last label (#62866)
* improved text

* prevent all labels removed

* use `structuredClone` instead of lodash

* update test

* get `structuredClone` in test?

* fix using structuredClone
2023-02-10 14:23:17 +01:00
Gábor Farkas
27d70819cc
loki: query splitting: split logs queries (#63091)
* loki: calculate logs-chunk-boundaries

* renamed function
2023-02-10 12:01:33 +01:00