grafana/pkg/tsdb/azuremonitor/metrics
Andreas Christou ecaa1dcbfd
AzureMonitor: Migrate to backend checkHealth API (#50448)
* Add check health functions for each datasource and generic checkHealth function

* Log backend errors

* Update testDatasource function

- Remove unused testDatasource functions from pseudo datasources

* Switch datasource to extend DataSourceWithBackend

* Improve errors and responses from health endpoint

* Fix backend lint issues

* Remove unneeded frontend tests

* Remove unused/unnecessary datasource methods

* Update types

* Improve message construction

* Stubbing out checkHealth tests

* Update tests

- Remove comments
- Simplify structure

* Update log analytics health check to query data rather than retrieve workspace metadata

* Fix lint issue

* Fix frontend lint issues

* Update pkg/tsdb/azuremonitor/azuremonitor.go

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>

* Updates based on PR comments

- Don't use deprecated default workspace field
- Handle situation if no workspace is found by notifying user
- Correctly handle health responses

* Remove debug line

* Make use of defined api versions

* Remove field validation functions

* Expose errors in frontend

* Update errors and tests

* Remove instanceSettings

* Update error handling

* Improve error handling and presentation

* Update tests and correctly check error type

* Refactor AzureHealthCheckError and update tests

* Fix lint errors

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
2022-06-20 11:33:13 +01:00
..
azuremonitor-datasource_test.go AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650) 2022-05-10 15:05:48 +01:00
azuremonitor-datasource.go AzureMonitor: Migrate to backend checkHealth API (#50448) 2022-06-20 11:33:13 +01:00
migrations_test.go AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650) 2022-05-10 15:05:48 +01:00
migrations.go AzureMonitor: Add support for selecting multiple options when using the equals and not equals dimension filters (#48650) 2022-05-10 15:05:48 +01:00
url-builder_test.go AzureMonitor: Use Resource Picker in Metrics Query Editor (#47164) 2022-04-08 08:49:46 -07:00
url-builder.go AzureMonitor: build azure portal deep link with resource uri (#47947) 2022-04-26 04:30:28 +02:00