Skip to content

Commit

Permalink
Azure Monitor: Return query error for metrics (#62570)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmgot authored Jan 31, 2023
1 parent a46d62c commit 13f8ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tsdb/azuremonitor/metrics/azuremonitor-datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (e *AzureMonitorDatasource) unmarshalResponse(logger log.Logger, res *http.

if res.StatusCode/100 != 2 {
logger.Debug("Request failed", "status", res.Status, "body", string(body))
return types.AzureMonitorResponse{}, fmt.Errorf("request failed, status: %s", res.Status)
return types.AzureMonitorResponse{}, fmt.Errorf("request failed, status: %s, error: %s", res.Status, string(body))
}

var data types.AzureMonitorResponse
Expand Down

0 comments on commit 13f8ea2

Please sign in to comment.