mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Revert "Prometheus: Add error source to differentiate errors for api server work" (#96043)
Revert "Prometheus: Add error source to differentiate errors for api server w…"
This reverts commit b9b5445090
.
This commit is contained in:
parent
4cc204affe
commit
6638dd9a83
@ -237,7 +237,6 @@ func (s *QueryData) rangeQuery(ctx context.Context, c *client.Client, q *models.
|
|||||||
return backend.DataResponse{
|
return backend.DataResponse{
|
||||||
Error: err,
|
Error: err,
|
||||||
Status: backend.StatusBadGateway,
|
Status: backend.StatusBadGateway,
|
||||||
ErrorSource: backend.ErrorSourceDownstream,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,7 +256,6 @@ func (s *QueryData) instantQuery(ctx context.Context, c *client.Client, q *model
|
|||||||
return backend.DataResponse{
|
return backend.DataResponse{
|
||||||
Error: err,
|
Error: err,
|
||||||
Status: backend.StatusBadGateway,
|
Status: backend.StatusBadGateway,
|
||||||
ErrorSource: backend.ErrorSourceDownstream,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,7 +263,6 @@ func (s *QueryData) instantQuery(ctx context.Context, c *client.Client, q *model
|
|||||||
if res.StatusCode != 200 && q.RefId == "__healthcheck__" {
|
if res.StatusCode != 200 && q.RefId == "__healthcheck__" {
|
||||||
return backend.DataResponse{
|
return backend.DataResponse{
|
||||||
Error: errors.New(res.Status),
|
Error: errors.New(res.Status),
|
||||||
ErrorSource: backend.ErrorSourceDownstream,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +281,6 @@ func (s *QueryData) exemplarQuery(ctx context.Context, c *client.Client, q *mode
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return backend.DataResponse{
|
return backend.DataResponse{
|
||||||
Error: err,
|
Error: err,
|
||||||
ErrorSource: backend.ErrorSourceDownstream,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user