×
Community Blog Lark/Feishu and CloudMonitor Integration

Lark/Feishu and CloudMonitor Integration

Alibaba Cloud CloudMonitor is a service that monitors Alibaba Cloud resources and Internet applications; CloudMonitor offers seamless integration, dat.

by Hankai, Head of Solution Architect Alibaba Cloud

Introduction

Alibaba Cloud CloudMonitor is a service that monitors Alibaba Cloud resources and Internet applications; CloudMonitor offers seamless integration, data visualization, data processing, and flexible alerting.

Lark is an all-in-one collaboration suite by ByteDance. With features like Chat, Calendar, Meetings, Docs, Mail, and Workplace all in one collective app. Feishu is the China domestic version of Lark.

This article describes how to send CloudMonitor alerts to a Lark/Feishu group or direct messaging via webhook.

1. Get Webhook URL from Lark/Feishu

You can get a Webhook URL from either Step 1A or Step 1B or Step 1C

Step 1A: Create a Lark/Feishu Group Chat and Add a Bot

  • Click Group "Setting", "Bots", "Add bot" and "Custom Bot"

image

image

  • don't configure any security settings on this page

image

Copy the Webhook URL from this step.

Step 1B: Create a Lark Flow

  • In the Lark Desktop, click "Workplace", "Lark Flow and "Create"

image

  • "Select a Trigger", and followed by "webhook"

image

  • followed by "Trigger", and "Catch hook"

image

  • Copy the Webhook URL from this step and you may leave the parameters as "{}"

image

  • Click "Select An Action", followed by "Message"

image

  • "Action", followed by "Send me a message via Feishu Flow bot"

image

  • Enter "Event" details and click "Confirm"

image

  • Click "Create"

image

Step 1C: Create a Feishu Bot Command

image

  • "Select a trigger" and "Webhook Trigger"

image

  • Copy the Webhook URL from this step and you may leave the parameters empty

image

  • "Select an action", you may choose "Send message via BotBuilder"

image

  • Fill in the information under Action and choose "Webhook Trigger (Complete JSON string)" as the message.

image

  • Click "Done"
  • Add a flow name and "Enable" that.

image

2. CloudMonitor Configuration

Step 2.1: Create Alert Contact

  • log into Alibaba Cloud and navigate to "CloudMonitor" console
  • In the left navigation bar, select "Alerts", followed by "Alert Contacts"
  • In "Alert Contacts" tab, click "Create Alert Contact"
  • In "Webhook or DingTalk Robot", enter the Lark/URL webhook URL from the previous section

image

  • Activate the Alert Contact via the mail

image

Step 2.2: Create Alert Contact Group

  • Navigate to the "Alert Contact Group" tab,
  • In the "Alert Contact Group" tab, click "Create Alert Contact Group"
  • Enter a group name, select the previous alert contact and save.

image

3. Integration Testing

Step 3.1 Create a new Monitor

Create a new monitor, e.g. Site Monitor, and include the newly created alert group as the contact group. and save it.

image

Step 3.2 Testing Result

3.2.1 Lark Group Testing Result

image

3.2.2 Feishu Group Testing Result

image

3.2.3 Lark Flow Testing Result

image

3.2.4 Feishu Bot Command Testing Result

image

Conclusion

Alibaba Cloud CloudMonitor can be integrated with any communication tools with webhook capability (e.g Lark/Feishu) for effective notification and alerting.

0 2 0
Share on

Alibaba Cloud Indonesia

88 posts | 11 followers

You may also like

Comments