grafana/public/app/plugins/datasource/azuremonitor
Ashley Harrison 1261345b81
Chore: Upgrade to react 18 (#64428)
* update react 18 related deps

* fix some types

* make sure we're on react-router-dom >= 5.3.3

* Use new root API

* Remove StrictMode for now - react 18 double rendering causes issues

* fix + ignore some @grafana/ui types

* fix some more types

* use renderHook from @testing-library/react in almost all cases

* fix storybook types

* rewrite useDashboardSave to not use useEffect

* make props optional

* only render if props are provided

* add correct type for useCallback

* make resourcepicker tests more robust

* fix ModalManager rendering

* fix some more unit tests

* store the click coordinates in a ref as setState is NOT synchronous

* fix remaining e2e tests

* rewrite dashboardpage tests to avoid act warnings

* undo lint ignores

* fix ExpanderCell types

* set SymbolCell type correctly

* fix QueryAndExpressionsStep

* looks like the types were actually wrong instead :D

* undo this for now...

* remove spinner waits

* more robust tests

* rewrite errorboundary test to not explicitly count the number of renders

* make urlParam expect async

* increase timeout in waitFor

* revert ExplorePage test changes

* Update public/app/features/dashboard/containers/DashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* skip fakeTimer test, ignore table types for now + other review comments

* update package peerDeps

* small tweak to resourcepicker test

* update lockfile...

* increase timeout in sharepublicdashboard tests

* ensure ExplorePaneContainer passes correct queries to initializeExplore

* fix LokiContextUI test

* fix unit tests

* make importDashboard flow more consistent

* wait for dashboard name before continuing

* more test fixes

* readd dashboard name to variable e2e tests

* wait for switches to be enabled before clicking

* fix modal rendering

* don't use @testing-library/dom directly

* quick fix for rendering of panels in firefox

* make PromQueryField test more robust

* don't wait for chartData - in react 18 this can happen before the wait code even gets executed

---------

Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2023-04-11 10:51:54 +01:00
..
__mocks__ Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
azure_log_analytics AzureMonitor: Fix Log Analytics portal links (#65482) 2023-03-29 19:01:18 +03:00
azure_monitor Chore: more ts test fixes (#63438) 2023-02-23 10:07:44 +00:00
azure_resource_graph Chore: more ts test fixes (#63438) 2023-02-23 10:07:44 +00:00
azureMetadata Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
components Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
dashboards adds link for credit on ARG dashboard (#63352) 2023-03-03 11:07:30 +00:00
e2e Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
img Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
log_analytics Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
resourcePicker Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
types Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
utils Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
credentials.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
dataquery.cue Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
dataquery.gen.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
datasource.test.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
datasource.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
grafanaTemplateVariableFns.ts FeatureToggles: remove open type declaration (#64645) 2023-03-14 19:47:32 +02:00
grafanaTemplateVariables.test.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
module.test.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
module.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
plugin.json Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
query_help.md Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
README.md Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
time_grain_converter.test.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
time_grain_converter.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
tracking.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00
variables.test.ts Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
variables.ts Schema: Initial Azure Monitor query schema (#62018) 2023-02-03 16:06:54 +00:00

Azure Monitor data source - native plugin

Grafana ships with built in support for Azure Monitor. You just have to add it as a data source and you will be ready to build dashboards for your Azure Monitor metrics.

Read more about it here:

https://grafana.com/docs/grafana/latest/datasources/azuremonitor/