Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 38,034
    • Issues 38,034
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,346
    • Merge requests 1,346
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #4925

Closed
Open
Created Feb 13, 2018 by Joshua Lambert@joshlambertMaintainer

Open issues based on Prometheus alerts

Many organizations use Issues for tracking incidents, like GitLab. Currently users have to manually create an issue, label it in some way as an incident, mention the proper folks, and then communicate that issue out to other channels.

This is very inconvenient, and we should automate this process.

Proposal

We can automate these tasks relatively simply, by automatically opening an issue when an alert is received from Prometheus.

The configuration can start off being very simple, with simply a checkbox to enable this functionality, which should default to on.

  • New settings section Operations -> Incidents, this should be the top section in Operations
  • Short text blurb describing what this does
  • Checkbox to enable automatic issue creation
  • Checkbox to enable email messages sent to developers (current default)

The contents of the issue can then be:

For GitLab alerts: labels/gitlab_alert_id

  • title - Metric title
  • metric_query - Configured metric query
  • environment_name - associated deployment environment

For external alerts:

  • title - annotations/title or annotations/summary
    • If it does not exist, build title out of <receiver>: <startsAt> just to have something that works out of the box
  • description - annotations/descriptions
    • Also include any other annotations included as well, for example severity, runbook, etc. We can do special things with these later

Design

Operations_Settings_Collapsed Operations_Settings

WIP screenshot

Screen_Shot_2019-02-22_at_9.59.28_am

Documentation

There are a few places we should add documentation:

  • We should create a new section in Settings -> Operations, which includes instructions for how to create issues from alerts
    • We should include instructions for how to set this up for managed Prometheus instances, which is essentially no further action
    • We should also document how to set this up for external Prometheus instances, as well as example configuration
  • We should crosslink here from the Prometheus integration section
Edited Mar 28, 2019 by SV
Assignee
Assign to
11.10
Milestone
11.10 (Past due)
Assign milestone
Time tracking