Handle alerts using ChatOps
This topic describes how to handle alerts using ChatOps.
Background information
ChatOps is a collaborative method and culture that integrates chat and automation tools to improve team collaboration, efficiency, and visibility. It allows team members to communicate on a single chat platform and use automation tools to complete tasks, such as automated builds, deployments, and monitoring. The goal of ChatOps is to increase the efficiency and visibility of workflows and promote collaboration and communication among team members.
Pain point in alert handling: data silos
During alert handling, decision-makers often need to check multiple upstream and downstream systems to identify the cause of an alert. They also need to collaborate with team members in different roles to determine a solution. As systems become more complex, so does the information that must be gathered and shared. Without an efficient mechanism for information access and exchange, data silos can form. In this situation, the efficiency of alert handling is highly dependent on the efficiency of collaboration and communication. Therefore, improving alert handling efficiency requires methods that consolidate information from different roles into one system and provide real-time, accurate context.
Use ChatOps to break down data silos
ChatOps can address the data silo problem in alert handling because it integrates all key information and collaboration tools into a single platform. This allows O&M engineers to obtain all information and context through chat. They can also collaborate and communicate in real time with others on the same platform. This approach consolidates information and knowledge from different roles onto a single platform, which prevents data silos. When handling alerts, O&M engineers can easily view history, related documents, resources, and monitoring data. They can also collaborate and communicate in real time to resolve issues faster. Therefore, ChatOps is an effective way to solve the data silo problem in alert handling.
-
Centralized management: ChatOps integrates all tools and systems into a single chat platform for centralized information management. This allows O&M engineers to obtain all information through one channel without switching between different tools and systems.
-
Real-time collaboration: ChatOps allows O&M engineers to collaborate and communicate with others in real time on the same chat platform. This connects different teams, departments, or regions, even if data silos exist between them.
-
Information sharing: ChatOps allows O&M engineers to share information in a public channel, not just within a specific team or department. This allows others to obtain all information promptly for better coordination and cooperation.
-
Automated workflows: ChatOps can automate workflows, such as deployments, tests, and monitoring. This helps avoid data silos and errors that can occur in manual processes, improving efficiency and accuracy.
How the ARMS alert management system helps enterprises handle alerts using ChatOps
The development of instant messaging (IM) technology has led to breakthroughs in Office Automation (OA) systems. New technologies, such as mobile offices and cloud computing, are also being integrated into OA. In the Chinese market, most enterprises and organizations use third-generation OA systems, such as DingTalk, and mobile offices have become a major trend.
In the Chinese mobile office market, DingTalk, WeCom, and Lark account for over 90% of the market share. Supporting alert handling in these systems means supporting the vast majority of users in the Chinese market. It also enables the seamless integration of alert handling with other systems that enterprises have built on these IM platforms.
Multi-terminal integration
Application Real-Time Monitoring Service (ARMS) provides an H5 application that integrates the single sign-on (SSO) process with DingTalk, WeCom, and Lark. This unifies the alert handling workflow within the web containers provided by these different IM applications.
-
The application can run on different operating systems and devices, including PCs, mobile devices, and smart terminals.
-
The H5 application uses unified interfaces and data formats. This ensures consistency and compatibility in data transmission and processing across different devices and platforms.
-
The H5 application supports displaying metric data corresponding to alerts, providing rich alert information with text and graphs. For more information, see Configure metric trend charts in Prometheus alert notifications.
For information about the connection types for different IM systems, see the following documents:
Handler normalization
ARMS uses mobile phone numbers to associate the same handler across different platforms and systems. This prevents new data silos caused by a lack of data flow between systems.
Handlers registered with a mobile phone number in DingTalk, WeCom, or Lark are automatically synchronized to the ARMS alert management system as alert contacts. This avoids the need to create the same contact multiple times.
Group chats
ARMS supports configuring group chat robots for DingTalk, WeCom, and Lark as notification recipients for alerts. Sending alert cards in a unified Markdown format ensures a consistent display of alert information across different platforms.
Group chats provide automatic access control. Users in a group chat automatically receive permission to view and handle the corresponding alerts. Users who are not in the group chat do not have these permissions. This is a What You See Is What You Get (WYSIWYG) approach.
Key information during the alert handling process is automatically sent to the group chat session. This synchronizes the alert handling status in real time. For more information, see Handle alerts in an alert notification group.
Alert handling
When an alert is sent as a card to an IM group chat, you can handle the alert using a set of operations on the card.
|
Operation |
Description |
Usage notes |
|
Claim Alert |
Take ownership of an alert. After you click Claim Alert, the system sends a claim notification to the group chat. |
The broadcasted claim message lets all group members know who is handling the current alert. You can also use an escalation policy to escalate the notification if an alert remains unclaimed for a long time. |
|
Resolve Alert |
Close an alert. After you click Resolve Alert, the system sends a resolution notification to the group chat. The status of the closed alert changes to Recovered. |
The broadcasted resolution message lets all group members know that the alert has been handled and how it was handled. You can also use an escalation policy to escalate the notification if an alert remains unresolved for a long time. |
|
Mute Alert |
Mute alert notifications. No more notifications for this alert will be sent for a period of time. |
Some alerts are triggered by expected behavior and do not affect your business. However, you cannot close these alerts directly. In this case, you can mute the alert to reduce notification noise. |
|
Mute Similar Alerts |
Set a silence rule based on corresponding conditions, which you can edit. Events that match the silence rule will not trigger alert notifications during the silence period. |
An alert may contain multiple events. For example, a pod CPU utilization alert may contain events from pods in both the `prod` and `test` namespaces. However, you do not need notifications for alerts from the `test` namespace. In this case, you can click the Mute Similar Alerts link next to the alert content for the `test` namespace to silence alerts from that namespace. |
|
Add Solution |
Add a solution description to the alert. |
This helps build a knowledge base for alert handling. |
|
Push Alert |
Manually push the alert to a notification integration, such as Jira. |
Push the alert to a ticket system like Jira. For more information, see Integration overview. |
|
Follow Alert |
After you follow an alert, status changes for that alert are pushed to you as text messages. |
After you follow an alert, status changes for that alert are pushed to you as text messages. You can view the alerts you follow on the Followed tab in the H5 application. |
Statistical data reports
Alert handling operations performed on different clients are automatically recorded in the data analytics system through integration with tools such as Prometheus and Grafana. Alert handling reports are automatically generated. You can use these reports as a starting point to improve alert handling efficiency. For more information, see Improve alert handling efficiency with the ARMS alert dashboard.