Skip to content

monitoring: add graphql endpoint to trigger alert, show owners

Warren Gifford requested to merge monitoring/trigger-alert into master

Created by: bobheadxi

Adds a GraphQL endpoint that can be used to trigger a warning or critical alert, to help with validating observability.alerts configurations. Also updates the bug report alerts query to show alert owners.

mutation {
  triggerObservabilityTestAlert(
    level: "critical"
  ) {
    alwaysNil
  }
}
image image

Closes https://github.com/sourcegraph/sourcegraph/issues/12423.

TODOs

  • This test alerts panels are currently in the prometheus dashboard, even though the metric is defined in the frontend... not sure if this is the best place to put it 🤔 => moved to frontend
  • Documentation

Merge request reports

Loading