mirror of
https://github.com/grafana/grafana.git
synced 2025-01-10 08:03:58 -06:00
Azure Monitor: Return query error for metrics (#62570)
This commit is contained in:
parent
a46d62cf48
commit
13f8ea2656
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user