monitoring: add graphql endpoint to trigger alert, show owners
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
}
}
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