Fix Metric tab not showing up on operations page

Merged Alexander Turinske requested to merge 322198-fix-metrics-tab into master

What does this MR do?

Fix Metric tab not showing up on operations page

  • fix broken test
  • add additional test

Screenshots (strongly suggested)

Page Before After
Operations image image
Threat Monitoring image 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

Related to #322198 (closed)

Edited by Alexander Turinske