In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to use cloud monitoring to trigger a url call. The article is rich and analyzed and described from a professional point of view. I hope you can get something after reading this article.
1. The overall process of triggering a url call using JD.com Cloud Monitoring product
JD.com Cloud Monitoring (Monitoring) is a service that monitors and alarms cloud resources under the user's name. Through monitoring, customers can easily understand the resource usage, performance and operation on JD.com Cloud; through alarm, customers can respond in time to ensure the stable operation of the application. There are a variety of alarm methods to choose from: SMS, email, alarm callback. This guide describes in detail the process of using "alarm callback" to trigger a url call. Using this type of alarm can help users implement automated operation and maintenance policies, such as auto scaling, elastic ip expansion, and so on. The overall process of setting alarm callback is as follows:
1. Create an alarm contact as the next step to set the notification object in the alarm rules.
2. Select a resource monitoring item and set the alarm rules.
3. Implement a http server service, respond to Post requests, and implement an automatic operation and maintenance operation according to the contract.
Second, create an alarm contact
1. Select "account Management"-> "contact Management" to enter the contact management page.
2. Click "New contact" and set the relevant parameters in the New contact dialog box.
3. Click OK to complete the creation of the new contact.
Third, select a resource monitoring item and set "alarm rules"
The goal of this guide is to monitor an elastic ip resource with an initial value of 4Mbps, detect the average bandwidth every 5 minutes, and automatically adjust the elastic ip resource to 8Mbps when the average bandwidth exceeds 75% (3Mbps) and lasts for 2 cycles (5-minute cycle, 2 cycles is 10 minutes).
1. Select "Cloud Monitoring"-"Resource Monitoring"-"Public Network ip Monitoring" to enter the public network ip monitoring list.
2. Select one of the flexible ip addresses, click "alarm rules" in the operation section, and click the "add alarm rules" button on the "alarm rules" page.
3. In the first step of "setting alarm rules", click "add alarm rules" and set them according to the following parameters:
Alarm rules: network output rate / 5 minutes / average / > / 3000000bps/ lasts 2 cycles
Alarm level: general
Notification period: 24 hours
4. In the second step of "setting alarm rules", follow the following parameters:
Select Monitoring Administrator in the all contacts list and click the > button to move to the selected contacts list.
Check "URL execute Action" to set custom URL and Post parameters.
Fourth, implement a Http Server service, respond to Post requests, and implement an automated operation and maintenance operation according to the contract
Implement a http server service, respond to Post requests, and then call the OpenAPI/SDK provided by Jingdongyun to achieve the goal of expanding elasticity.
Note: this guide is only used to describe the process of triggering a url call using Jingdong Cloud Monitor implementation. The implementation of http server service is not specified in detail.
This is how the editor shared how to trigger a url call using the cloud monitoring implementation. If you happen to have similar doubts, please refer to the above analysis. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.