Skip to content

WIP: Implement alert mapping parsing from YAML

Peter Leitzen requested to merge pl-spike-alert-payload-builder into master

What does this MR do?

Spike implementation for the backend part of #224632 (closed) and #220402 (closed) as described in #220402 (comment 366803569)

Notes

  • Implement a concise and verbose YAML format stored in .gitlab/alert_mapping/<provider>.yml
  • Implement a controller receiving a alert payload and match against configured alert mappings to create a generic alert
    • route: <project_path>/-/alerts/notify/<provider>.json
  • Expose GraphQL query and mutation for showing/editing mapping from frontend

Caveats

  • Won't be merged since it's a spike; hence WIP:
  • Almost not specs 🤠
  • Contains 🐛

Screenshots

Alert mapping Submit custom payload Alert details Incident Issue
Screenshot_2020-06-24__gitlab_alert_mapping_pseudo_prometheus_yml___master___Administrator_manual_prometheus Screenshot_from_2020-06-24_19-17-41 Screenshot_2020-06-24_Alert_detail___Administrator_manual_prometheus Screenshot_2020-06-24_Oha___83____Issues___Administrator_manual_prometheus

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