Joe Blubaugh
e6743a7e9a
Alerting: Use the QuotaTargetSrv instead of the QuotaTarget in quota check ( #60026 )
...
Before this change, the alerting provisioning system incorrectly used
the QuotaTarget to check if alerting's request quota had been reached.
The quota service requires the QuotaTargetSrv, which is what's
registered with the service at startup time. This is leading to errors
in the provisioning system.
2022-12-08 22:34:46 +08:00
Sofia Papagiannaki
e7b25baf46
Chore: Fix failing feature toggle test ( #60030 )
2022-12-08 16:24:01 +02:00
Ludovic Viaud
694dc60724
Prometheus: Add traceID field on top of the exemplar popover ( #59920 )
...
Prioritize trace link
2022-12-08 14:53:07 +01:00
ying-jeanne
1131bac5da
[Nested Folder] Block move operation that could introduce more than 8 level of depth,… ( #59832 )
...
* block move operation that could introduce more than 8 level of depth, forbid circular reference
* move getHeight to store, mock store in service
* fix linter
2022-12-08 08:49:17 -05:00
Jo
9094153b30
Fix feature toggle test main ( #60024 )
...
fix feature toggle test
2022-12-08 14:26:18 +01:00
Ivana Huckova
3c9ccd4512
Loki: Usage for queries not from dashboards ( #60017 )
...
Loki: Usage for queries not from dashboars
2022-12-08 13:04:05 +01:00
Ivana Huckova
e2077e9659
Dashboard: Run requests with correct app type ( #60010 )
...
Dashboard: Run quries with correct core app
2022-12-08 11:52:28 +01:00
Ivana Huckova
4b56493789
Elasticsearch: Add tracking for plugin adoption stats ( #59954 )
...
* Elasticsearch: Add tracking
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Refactor getLineLimit
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Update public/app/plugins/datasource/elasticsearch/tracking.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Update not tracking for volume queries
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2022-12-08 11:28:40 +01:00
Yuri Tseretyan
c5ee4e4ae1
Alerting: Improve rule validation to check if rule uses backend datasources ( #58986 )
...
* validate if rule uses backend datasources
* add backend datasource to test
* fix tests
* another forgotten import
* remove unused var
2022-12-08 10:44:02 +01:00
Andriy
75cceec62c
chore: update go version to 1.19.4 in plugin ci images ( #59978 )
2022-12-08 10:11:31 +01:00
Ivana Huckova
601df109af
Loki: Remove annotation, context and volume tracking ( #59962 )
...
* Loki: Remove annotation and context tracking
* Implement log volume
2022-12-08 10:05:11 +01:00
kay delaney
955bf55c6a
Datasource Onboarding: Create initial data source onboarding page ( #58795 )
2022-12-07 23:29:38 +00:00
Daniel Lee
74167b4d44
UsageInsights: Record events for Explore queries ( #59931 )
...
* usageinsights: record events for Explore queries
* usageinsights: make the source field optional
It is not logical to have it for an event like the dashboard-view
* usageinsights: add comment to Explore test
Explain why we are reversing a previous decision
2022-12-07 21:19:35 +01:00
Kevin Minehart
69ffce4c42
CI: add a quick test, set enterprise2 when the enterprise2 flag is added ( #59967 )
...
* add a quick test, set enterprise2 when the enterprise2 flag is added
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2022-12-07 13:52:16 -05:00
Kristin Laemmert
ceb3d8d295
feature (user service): Add a validation check after the user record is created in the sqlstore. ( #59968 )
...
Add a validation check after the user record is created in the sqlstore.
2022-12-07 12:33:40 -05:00
Shirley
5c08f03512
CloudWatch: Fix deeplinks to still be able to pass log group names ( #59809 )
...
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2022-12-07 11:40:15 -05:00
Christopher Moyer
a4c884e808
Docs: corrects relref ( #59970 )
...
correct relref
2022-12-07 10:37:08 -06:00
Kristin Laemmert
70fbf47022
chore: remove CreateUser from sqlstore & replace with userService.CreateUserForTests ( #59910 )
2022-12-07 11:03:22 -05:00
Ryan McKinley
d036225f7b
Chore: get user from appcontext rather than store utility ( #59926 )
...
user from appcontext
2022-12-07 07:38:23 -08:00
Shirley
e8ed79873a
CloudWatch: return silently in case of missing log groups or incomplete query ( #59701 )
...
* Remove defaultLogGroups check in filterQuery
2022-12-07 16:37:35 +01:00
Andreas Christou
43afb85056
CloudMonitor: Improve detail of MQL series labels ( #59747 )
...
* Improve consistency between MQL and builder queries
* Review
* Review and fix test
2022-12-07 15:32:54 +00:00
Ivana Huckova
1aa94165d9
Loki: Do not track samples ( #59960 )
2022-12-07 16:24:22 +01:00
Sonia Aguilar
55055d0b9b
Alerting: Fix RuleEditor flaky test for existing grafana managed alert ( #59780 )
...
* Fix RuleEditor flaky test for existing grafana managed alert
* Fix RuleEditor flaky test for creating a new grafana managed alert
* Fix tests for cloud rules
* Split tests for different rule types
* Move common clickSelectOption method to helpers
* Remove from RuleEditorCloudRules.test.tsx a repeated cloud rule test
* Move existing grafana rule test case to a new file
* Split RuleEditorCloudRules test: move checking only allowed data sources test case to a new test file
* Re-use common ui const
* Re-use renderRuleEditor method
* Create getDiscoverFeaturesMock to reduce code
2022-12-07 16:15:33 +01:00
Jo
d833031726
ServiceAccounts: Do not display warnings about secret scanner when scanner is disabled ( #59952 )
...
ServiceAccounts: Fix warnings about secret scanner when scanner is disabled
2022-12-07 14:49:28 +01:00
Carl Bergquist
a5ace56be8
Plugins: Add username to datasource plugin logging ( #59893 )
...
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2022-12-07 13:15:42 +01:00
Carl Bergquist
1b676d0d49
Contexthandler: Add uname as response header ( #59930 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2022-12-07 13:14:53 +01:00
Torkel Ödegaard
7b58fb3a20
Scenes: Fix flaky scenes time range test ( #59900 )
...
* Scenes: Fix flaky scenes time range test
* Update public/app/features/scenes/core/SceneTimeRange.test.tsx
2022-12-07 11:52:35 +01:00
Polina Boneva
db1e19fe86
Dashboard: Making a dashboard editable does not allow resizing of panels ( #59255 )
...
* DashboardGrid should rerender ReactGridLayout when mutable dashboard updates
* add missing prop to test
2022-12-07 12:46:10 +02:00
George Robinson
6359dab040
Alerting: Change resultError in preparation for supporting ForError duration ( #59894 )
2022-12-07 10:45:56 +00:00
Ashley Harrison
5d0029c647
Navigation: handle case where navIndex is undefined ( #59826 )
...
handle case where navIndex is undefined
2022-12-07 10:16:55 +00:00
Ashley Harrison
2b3c86d201
Chore: Remove unused/deprecated @types definitions ( #59888 )
...
* remove @types/rc-tree, @types/classnames
* remove @types/rc-time-picker
* remove @types/reselect
* remove @types/testing-library__react-hooks
* only include known package.json's
2022-12-07 10:10:59 +00:00
Hamas Shafiq
dd406e887b
Chore: Refactor packages/jaeger-ui-components/src/TraceTimelineViewer/ListView
to TS ( #59873 )
2022-12-07 10:01:20 +00:00
Jo
df4f0343e5
Auth: Session cache [main] ( #59935 )
...
* Auth: Session cache [v9.2.x] (#59907 )
* add cache wrapper
only cache token if not to rotate
Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
anticipate next rotation
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
(cherry picked from commit 07a4b2343d
)
* FeatureToggle: for storing sessions in a Remote Cache
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
(cherry picked from commit b8a8c15148
)
* use feature flag for session cache
* ensure ttl is minimum 1 second
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* ensure 2 ttl window to prevent caching of tokens near rotation
Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
* fix description of toggle
Co-authored-by: gamab <gabi.mabs@gmail.com>
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
(cherry picked from commit 2919588a82
)
* fix broken quota test
2022-12-07 10:55:48 +01:00
Ivana Huckova
13acddd605
Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation ( #59713 )
...
* Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation
* Update snapshot tests
* Fix linting
2022-12-07 09:47:31 +01:00
Conor Evans
dce7f50d59
CloudWatch: Fix - make sure dimensions are propagated to alert query editor ( #58281 )
...
* fix(unified-alerting/cloudwatch): propagate dimensions to alert
Signed-off-by: Conor Evans <coevans@tcd.ie>
* add unit test
Signed-off-by: Conor Evans <coevans@tcd.ie>
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2022-12-07 09:42:04 +01:00
Dimitris Sotirakis
0801fce23c
CI: Move verify-storybook
command from grabpl ( #59928 )
...
* Move verify-storybook from grabpl
* Remove zerolog
2022-12-07 09:56:15 +02:00
Dan Cech
440d8a3d88
Build: Drone starlark file cleanup ( #59919 )
...
* format drone starlark files with black
* clean up unused params
* more simplification
* more cleanup
* more cleanup
2022-12-07 09:13:57 +02:00
Sven Grossmann
d0eeff2fa0
Loki: Add tracking of executed queries ( #59887 )
...
* add query tracking
* add app
* add comment
* use `reportInteraction` not `console.log`
* add test to `queryUtils`
* organize imports
* add datasource tests
* change `metrics` to `metric`
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* change `parseToArray` to `parseToNodeNamesArray`
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-12-06 15:54:20 -05:00
Serge Zaitsev
43f40e6c7c
Chore: Replace yaml.v2 with yaml.v3 ( #59897 )
...
* replace yaml.v2 with yaml.v3
* fix a few tests due to the yaml.v3 api changes
* and another goconvey mistake in tests
2022-12-06 21:17:17 +01:00
Ivana Huckova
fdc3adb2c9
Loki: Add tracking for on dashboard load ( #59914 )
...
Loki: Add on dashboard load tracking
2022-12-06 21:15:55 +01:00
Artur Wierzbicki
9e349bf9b0
EntityStore: support filtering by labels ( #59905 )
...
* label filtering
* filtering in sql
* filtering in sql group by
* label is unique - no need for distinct
* capitalize
* fix capitalization
2022-12-06 23:21:12 +04:00
George Robinson
3c249e1b99
Fix incorrect start time for DatasourceError alerts ( #59903 )
2022-12-06 18:44:06 +00:00
Matias Chomicki
7e339decfe
JavaScript Unit Tests: Enable shouldFailOnLog only for CI environments ( #59901 )
...
Tests: enable shouldFailOnLog only for CI environments
2022-12-06 19:38:55 +01:00
Yuri Tseretyan
abb49d96b5
Alerting: update state manager to return StateTransition instead of State ( #58867 )
...
* improve test for stale states
* update state manager return StateTransition
* update scheduler to accept state transitions
2022-12-06 13:07:39 -05:00
Yuri Tseretyan
a85adeed96
Alerting: Update state history service to filter states transitions ( #58863 )
...
* rename the method to better reflect its behavior
* make historian filter transition on itself
* call historian with all changes
2022-12-06 12:33:15 -05:00
Torkel Ödegaard
18d09cd3fe
PanelEdit: Fixes broken panel edit splitter logic ( #59859 )
...
* Alt panel edit fix
* fix fix
2022-12-06 18:21:03 +01:00
Dimitris Sotirakis
bc5badbcd8
CI: Add enterprise2
flag to unblock enterprise2 image deployments ( #59904 )
...
Add hacky flag to unblock enterprise2
2022-12-06 18:42:11 +02:00
Dan Cech
1dbc22d18b
Build: don't remove grafana-server and grafana-cli binaries from deb and rpm packages ( #59890 )
...
* don't remove grafana-server and grafana-cli binaries from /usr/share/grafana/bin in deb and rpm packages
* don't add config overrides in /usr/sbin/grafana-server
2022-12-06 10:36:43 -05:00
Serge Zaitsev
f1fb202284
Chore: Add encryption codec to the remote cache ( #59871 )
...
* add encryption codec to the remote cache
* change config files too
* fix test constructor
* pass codec into the test cache
2022-12-06 15:12:27 +01:00
Hamas Shafiq
2ff6ae65df
Chore: Refactor the packages/jaeger-ui-components/src/TracePageHeader
folder to TS ( #59722 )
2022-12-06 13:13:15 +00:00