Skip to content

Return 503 error when metrics dashboard has no connectivity

Kirstie Cook requested to merge fix-prometheus-network-connectivity-error into master

What does this MR do?

Currently if Prometheus network is unreachable the requests fail with a 500 error. Instead we should silence that error and return a 503 that indicates the Prometheus server is not found.

Closes #39162 (closed)

Screenshots

Before:

image

After: Screen_Shot_2019-12-20_at_11.23.33_AM

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading