OpsgenieΒΆ
Robusta can report issues and events in your Kubernetes cluster to the OpsGenie alerts API.
To configure OpsGenie, We need an OpsGenie API key. It can be configured using the OpsGenie team integration.
Customizing Opsgenie Extra DetailsΒΆ
We can add Prometheus alert labels into Opsgenie alert extra details by setting extra_details_labels to true in the sinksConfig section.
Configuring the OpsGenie sinkΒΆ
Add this to your generated_values.yaml
sinksConfig:
- opsgenie_sink:
name: ops_genie_sink
api_key: OpsGenie integration API key # configured from OpsGenie team integration
teams:
- "noc"
- "sre"
tags:
- "prod a"
extra_details_labels: false # optional, default is false
Save the file and run
helm upgrade robusta robusta/robusta --values=generated_values.yaml
Example Output:
Typically you'll send alerts from Robusta to OpsGenie and not deployment changes. We're showing a non-typical example with deployment changes because it helps compare the format with other sinks.
Action to connect Slack to OpsGenieΒΆ
The opsgenie_slack_enricher action enriches Slack alerts with OpsGenie integration. It performs the following:
Adds a button in Slack to acknowledge the OpsGenie alert directly.
Includes a link in Slack messages that redirects to the alert in OpsGenie for easy access.
To use this action, ensure it is included in your playbook configuration.
Example Configuration:
customPlaybooks:
- actions:
- opsgenie_slack_enricher:
url_base: team-name.app.eu.opsgenie.com
triggers:
- on_prometheus_alert: {}
With this integration, teams can efficiently manage OpsGenie alerts directly from Slack.