Azure Monitor: Azure routes from Grafana Azure SDK (#82043)

Prometheus: Azure routes from Grafana Azure SDK
This commit is contained in:
Sergey Kostrukov
2024-02-08 10:42:20 +00:00
committed by GitHub
parent 7814c817b9
commit 9bfb7e1f0b
10 changed files with 156 additions and 178 deletions
@@ -6,7 +6,6 @@ import (
"net/http/httptest"
"testing"
"github.com/grafana/grafana-azure-sdk-go/azsettings"
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
"github.com/grafana/grafana/pkg/tsdb/azuremonitor/metrics"
@@ -105,7 +104,7 @@ func Test_handleResourceReq(t *testing.T) {
im: &fakeInstance{
services: map[string]types.DatasourceService{
azureMonitor: {
URL: routes[azsettings.AzurePublic][azureMonitor].URL,
URL: "https://management.azure.com",
HTTPClient: &http.Client{},
Logger: log.DefaultLogger,
},