Blog: Blog Garden personal
I did before RDS monitor , because RDS More examples , Manual addition is not efficient , So it's changed to LLD(Low-level discovery) Way to monitor .
What is? LLD
LLD(Low-level discovery), That is, low-level discovery , It provides a way to automatically create monitoring items for different entities on the computer , Trigger and graphic methods . for example ,Zabbix You can start monitoring the file system or network interface automatically on your machine , Instead of manually creating monitoring items for each file system or network interface . Besides , You can configure the Zabbix According to the actual results after regular implementation of the discovery , To remove unwanted monitoring .
Users can define their own discovery types , As long as they follow specific JSON agreement .
Collect data script
Call alicloud Api, collection RDS related data , For relevant configurations, please refer to Previous post , Collection script omitted .
Need to put Api Processing of returned data , Change the field to {#MACRO}
Formal LLD macro , The last generation json Formatted data :
for example :
[{
"{#DBINSTANCEID}": "rr-XXX",
"{#DBNAME}": "XXX"
}, {
"{#DBINSTANCEID}": "rm-XXX",
"{#DBNAME}": "XXX"
}, {
"{#DBINSTANCEID}": "rm-XXX",
"{#DBNAME}": "XXX"
}]
explain :
{#DBINSTANCEID}
:RDS example ID{#DBNAME}
:RDS Instance name
Tips:LLD Macros must be capitalized , Otherwise, an error will be reported .
The configuration template
New template , Create autodiscover rules :
explain :
Parameters | explain |
---|---|
name | Rule name |
type | Types of inspections found |
Key value | It can be a built-in key value , It can also be customized |
Update interval | Time interval between discovery execution |
Custom time interval | Non essential election , flexible : Allows you to redefine the default update interval , Dispatch : It can make the monitored item effective at a specific time or time series |
Insufficient resource cycle | Resource expiration time , If the resource fails, delete , If set to “0”, The entity will be deleted immediately . Not recommended “0” |
Create a monitoring prototype :
Create trigger prototype :
Create graphic prototypes :
And so on , Add all the items that need to be monitored .
See the effect :
summary
LLD The way , It greatly reduces the burden of artificially adding monitoring ,RDS There is no need to add, delete and monitor the changes of instances , Truly achieve automatic monitoring .
But it also brings some problems , For example, performance problems , The more examples , The more prototypes you monitor , The more monitoring and collection script processes executed at the same time , The greater the load pressure on the server , And frequently call Alibaba cloud Api It will also bring some costs .
therefore , This monitoring scheme is limited to Alibaba cloud RDS Scenarios with a small number of instances . If there are many instances , Consider increasing the cache , Read data once , Store data in cache , Then monitor the client to read data from the cache , Reduce the frequency of invoking collection scripts .
Zabbix 5.0: adopt LLD Way to automatically monitor Alibaba cloud RDS More articles about
- Zabbix Monitoring alicloud RDS
brief introduction Zabbix Monitoring alicloud RDS database . It is mainly provided by Alibaba cloud API To monitor . You need to get it from alicloud “ user AccessKey” Appoint ID, Conduct RDS monitor . Environmental Science service :Zabbix 3.0.28.zab ...
- zabbix Custom monitoring alicloud RDS service
zabbix Custom monitoring rds zabbix Through Alibaba cloud api Auto discovery . Monitoring alicloud RDS-Mysql database matters needing attention Scripts collect RDS Alias , Do not default alias Do not use Chinese aliases (zabbix Don't recognize ) ...
- Zabbix 5.0: Monitoring alicloud RDS
Blog: Blog Garden personal Due to the recent pressure measurement , You need to log in to alicloud frequently to view RDS monitor , Each login to view the monitoring steps is cumbersome , Therefore, the monitoring is connected to zabbix. summary Because Alibaba cloud has done RDS Monitoring of , We just need to go through Alibaba cloud SDK Put these ...
- Here comes the open source relational database for greater power ! Alibaba cloud RDS for MySQL 8.0 The official launch !
2019 year 5 month 29 Japan 15 when , Alibaba cloud RDS for MySQL 8.0 The official launch , This makes Alibaba cloud keep pace with the community , Release MySQL The latest version of cloud vendors .RDS for MySQL 8.0 The product is launched by Alibaba cloud MyS ...
- zabbix adopt SDK and API Get alicloud RDS Monitoring data
Ali cloud, RDS The data obtained by the built-in monitoring system is not very intuitive , Want to API Get data through zabbix Show , Because of the lack of online information and other reasons , obtain API Signing is difficult , But using Alibaba cloud SDK It can perfectly avoid the steps of obtaining signatures . Ali ...
- adopt SDK and API Get alicloud RDS Monitoring data
Ali cloud, RDS The data obtained by the built-in monitoring system is not very intuitive , Want to API Get data through zabbix Show , Because of the lack of online information and other reasons , obtain API Signing is difficult , But using Alibaba cloud SDK It can perfectly avoid the steps of obtaining signatures . Ali ...
- shell The script monitors the network status of Alibaba cloud leased line , If it doesn't work, trigger Alibaba cloud's process monitoring alarm
#!/bin/bash while [ 1 ] do rtt=`ping -c 3 15.0.160.18 |grep rtt |awk '{print $4}' |awk -F'/' '{print ...
- CRMEB Applet mall v4.0 Secondary development and integration of alicloud SMS
author : Liao Fei - CRMEB Small program mall R & D project leader Preface cremb Applet mall v4.0 Version support SMS platform for cloud letter , But some users need to connect with alicloud SMS , This article will give a detailed description of how the alicloud SMS platform connects with the client and the docking process . ...
- Container monitoring — Alibaba cloud & Container internal service monitoring
at present Docker The use of is increasingly inseparable from the monitoring of containers , Alibaba cloud recently launched Container Services , It not only provides the core container and host monitoring capabilities , And support integration Cloud Insight monitor , Next, we will introduce how to integrate . Let's first introduce Alibaba cloud ...
- zabbix use LLD Fully automated monitoring Oracle
Article reprinted from :http://mp.weixin.qq.com/s?__biz=MzA3MzYwNjQ3NA==&mid=2651296856&idx=1&sn=2bdf78071 ...
Random recommendation
- BZOJ 4008 【HNOI2015】 King Arthur
Topic link : King Arthur This is a wonderful question TAT-- Sure enough, my dp It's still too weak -- At first, I thought about it for a long time dp Expect , In the end WA I don't know what to say -- Finally, I turned to the problem solution , Then we find that we calculate the probability first , Hope again -- New posture \(get\). I ...
- Tomcat Shell Script ( start-up | close | restart | state )
#!/bin/bash # # chkconfig: - # description: Tomcat start/stop/status script #Location of JAVA_HOME ( ...
- NGUI Round head mask
NGUI Round head mask list , For help http://tieba.baidu.com/p/3961444508
- LR adopt snmp monitor linux Under the mysql
LR adopt snmp monitor linux Under the mysql stay linux Install the configuration below snmp: 1. Use the system disk to install rpm package ( This is the best way ) 2. stay www.net-snmp.org Download net-snmp install ( After installation, there are ...
- 1105. Spiral Matrix (25)
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasi ...
- Wifi Hot tools - green grassland WiFi
Sometimes it's just wired , But mobile phones need internet access , At this time, we need to use the notebook as a wireless hotspot . green grassland WiFi, This tool is very convenient to use ,http://www.22zy.net/.
- according to block Take out space_id
/*********************************************************************//** Gets the space id of a bl ...
- Asp.net Medium to front output JS Some calls to
Recently, I suddenly wrote ASP.NET project , Use the front output JS Script , But in the past MVC In, it is called asynchronously or some methods , however ASP.net Very little is used . Find one on the Internet HELPER.CS. Save it , Use it later . using ...
- see oracle The size and space usage of the database
see oracle The size and space usage of the database (2012-06-19 14:44:30) Reprint ▼ label : gossip classification : oracle 1. Check the usage of the table space SELECT upper(f.tables ...
- MVC3 Razor @RenderSection
Mvc3 Of Razor The view engine also provides @RenderSection @RenderSection Take a place in the master page , Then let the sub pages using this master page present their own Section. On the master page _Layout.csh ...