Skip to content

Add support for alert-based metric embeds in GFM

Sarah Yasonik requested to merge sy-alert-embeds into master

What does this MR do?

Adds functionality to the GFM pipeline to expose !23484 (merged) for usage on the FE. This will allow us to drop a url for a particular gitlab-defined firing alert into GFM & have a chart for the corresponding metric appear as an embed.

Embeddable path is currently of the format: /*namespace_id/:project_id/prometheus/alerts/:id/metrics_dashboard?environment_id=:env_id

This is a major chunk of the functionality for #119016 (closed).

Screenshots

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 Yorick Peterse

Merge request reports

Loading