DKP Insights Alert Notifications With Alertmanager
DKP Insights supports the configuration of Kube Prometheus Stack’s Alertmanager to send alert notifications to environment administrators and users through Slack®, and Microsoft Teams®.
You can configure DKP Insights to send notifications to other communication platforms like PagerDuty or e-mail. However, we have only included examples for Slack® and Microsoft Teams®.
Why Should I Send Notifications for DKP Insights Alerts?
By activating this feature, you eliminate the need for users to manually check your cluster’s health. DKP Insights, in combination with Alertmanager, can automatically warn users about any critical issues. They can then take measures to keep your environment healthy, and avoid possible downtime.
How Do DKP Insights and Alertmanager Work Together?
Alertmanager acts as a central component for managing and routing alerts. It is available by default in your DKP installation, and automatically monitors a number of DKP-defined alerts.
By enabling DKP Insights to route alerts to Alertmanager, you add another source of alerting. In the examples provided in this section, you use an AlertmanagerConfig
YAML file to enable Alertmanager to group and filter DKP Insights alerts according to rules, and send notifications to a communication platform.
By applying the AlertmanagerConfig
example files referenced in this section, you add new configurations. Existing default or custom Alertmanager configurations remain unaffected.
What Type of Configuration Options Are Possible?
In the AlertmanagerConfig
object, you can define the following parameters:
Routes: Routes define which alert types generate notifications and which do not. In the provided examples, we configure Alertmanager to send notifications for all Critical and Warning Insights, based on Severity.
Receivers: Receivers define the communication platform where you want to receive the notifications. The provided examples show how to configure notifications for Slack® and Microsoft Teams®.
Message content and format: The receiver configuration also defines the display format for the alert message. The examples provide message formatting designed for Slack® and Microsoft Teams®. The provided notification examples displays all the informational fields that you can find when looking at an alert in the DKP UI.
You can customize the AlertmanagerConfig
YAML file to include other routes, receivers, or a different message formatting. However, this requires advanced knowledge of AlertmanagerConfig
specifications, along with Helm and Golang templating rules.
How Do I Enable and Configure Alertmanager?
See Slack®: Send DKP Insights Alert Notifications to a Channel or Microsoft Teams®: Send DKP Insights Alert Notifications to a Channel for configuration templates.
Slack® is a trademark and service mark of Slack Technologies, Inc., registered in the U.S. and in other countries.