CN109240876A - Example monitoring method, computer readable storage medium and terminal device - Google Patents
Example monitoring method, computer readable storage medium and terminal device Download PDFInfo
- Publication number
- CN109240876A CN109240876A CN201810788598.3A CN201810788598A CN109240876A CN 109240876 A CN109240876 A CN 109240876A CN 201810788598 A CN201810788598 A CN 201810788598A CN 109240876 A CN109240876 A CN 109240876A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- newly created
- warning strategies
- alarm
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
Abstract
The invention belongs to monitoring technology field more particularly to a kind of example monitoring methods, computer readable storage medium and terminal device.The described method includes: obtaining newly created example, the newly created exemplary configuration has corresponding monitoring type;According to the corresponding monitoring type of the newly created example, the default warning strategies of the monitoring type stored in the newly created example and monitoring system are associated, the default warning strategies include alarm conditions;After association, according to the warning strategies of the newly created example, judge whether the newly created example meets the alarm conditions in the warning strategies in the process of running;If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data, the alarm data includes the monitoring type and monitoring data of the newly created example.
Description
Technical field
The present invention relates to monitoring technology field more particularly to a kind of example monitoring method, computer readable storage medium and
Terminal device.
Background technique
In existing monitoring system, since the example of monitoring is without type attribute, monitoring system is monitoring a reality
When example, in this case it is not apparent that this is what kind of example, can not also know that the warning strategies of the default of such example can be with
How to configure, automation alarm configuration will be carried out to the example of monitoring and brings limitations much more very, improve the O&M of user at
This.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of example monitoring method, computer readable storage medium and terminals
Equipment can monitor example with monitoring type, realize automation alarm configuration, reduce the O&M cost of user.
The embodiment of the present invention in a first aspect, provide a kind of example monitoring method, may include:
Newly created example is obtained, the newly created exemplary configuration has corresponding monitoring type;
It, will be in the newly created example and monitoring system according to the corresponding monitoring type of the newly created example
The default warning strategies of the monitoring type of storage are associated, and the default warning strategies include alarm conditions;
After association, according to the warning strategies of the newly created example, judge the newly created example in operational process
In whether meet alarm conditions in the warning strategies;
If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data,
The alarm data includes the monitoring type and monitoring data of the newly created example.
The second aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit
Storage media is stored with computer program, and the computer program realizes following steps when being executed by processor:
Newly created example is obtained, the newly created exemplary configuration has corresponding monitoring type;
It, will be in the newly created example and monitoring system according to the corresponding monitoring type of the newly created example
The default warning strategies of the monitoring type of storage are associated, and the default warning strategies include alarm conditions;
After association, according to the warning strategies of the newly created example, judge the newly created example in operational process
In whether meet alarm conditions in the warning strategies;
If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data,
The alarm data includes the monitoring type and monitoring data of the newly created example.
The third aspect of the embodiment of the present invention, provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
Realize following steps:
Newly created example is obtained, the newly created exemplary configuration has corresponding monitoring type;
It, will be in the newly created example and monitoring system according to the corresponding monitoring type of the newly created example
The default warning strategies of the monitoring type of storage are associated, and the default warning strategies include alarm conditions;
After association, according to the warning strategies of the newly created example, judge the newly created example in operational process
In whether meet alarm conditions in the warning strategies;
If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data,
The alarm data includes the monitoring type and monitoring data of the newly created example.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention obtains new creation first
Example, the newly created exemplary configuration has corresponding monitoring type, then according to the corresponding institute of the newly created example
Monitoring type is stated, the default warning strategies of the monitoring type stored in the newly created example and monitoring system are carried out
Association, the default warning strategies include alarm conditions, automation alarm configuration are realized, after association, according to described newly created
The warning strategies of example, judge whether the newly created example meets the announcement in the warning strategies in the process of running
Alert condition triggers auto-alarming function, and obtain alarm data if meeting the alarm conditions in the warning strategies,
The alarm data includes the monitoring type and monitoring data of the newly created example, is realized to the automatic of newly created example
Change monitoring.Compared with prior art, by obtaining the monitoring type of newly created example in present invention implementation, further according to monitoring class
The newly created example is associated by type with corresponding default warning strategies, realizes automation alarm configuration, can be allowed every
All in the state in monitoring after one example creation, the O&M cost of user is significantly reduced.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of example monitoring method in the embodiment of the present invention;
Fig. 2 is the embodiment of the present invention by the pre- of the monitoring type stored in the newly created example and monitoring system
If the schematic flow diagram that warning strategies are associated;
Fig. 3 is the embodiment of the present invention according to the attribute-bit, carries out the predefined alarm to the monitoring attributes and matches
The schematic flow diagram set;
Fig. 4 is a kind of one embodiment structure chart of example monitoring device in the embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of terminal device in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of example monitoring method may include: in the embodiment of the present invention
Step S101, obtains newly created example, and the newly created exemplary configuration has corresponding monitoring type.
The monitoring type may include at least one of following: host class, physical machine class, the even weighing apparatus class of load, database
Class etc., each example are equipped with the corresponding monitoring type when being created, can be with by obtaining newly created example
Obtain the corresponding monitoring type of newly created example.
In the present embodiment, each newly created example can be registered in monitoring system, each newly created example
Need to register example information in registration, the example information may include ID (identity number), instance name, example class
Type, the title readable using the tenant ID of newly created example, the area information of newly created example, addition, here example
Type is the monitoring type, by obtaining the example information of newly created example, obtains the monitoring class of newly created example
Type.
It preferably, in the present embodiment, may include: to obtain before obtaining newly created example in the step S102
The monitoring type for taking the existing example of the monitoring system monitoring, carries out predefined alarm configuration to the monitoring type;
Wherein, the predefined alarm configuration includes at least one of following: the default monitored item that can be reported, the reality that can be reported
Example name, preset warning strategies;The default monitored item that can be reported includes at least one of following: CPU, memory, disk space.
In the present embodiment, the existing example and newly created example may include at least one of following: cloud host, physics
Machine, the even weighing apparatus of load, database, the corresponding predefined alarm configuration of monitoring type may include: cloud host alarm configuration, physics
Machine alarm configuration, the even weighing apparatus alarm configuration of load, database alarm configuration etc., different monitoring type may correspond to different
The default monitored item that can be reported.For example, in the monitoring of cloud host the corresponding default monitored item that can be reported may include: CPU, it is interior
It deposits, disk space, (index node comprising the time, shelves name, makes disk inode for storing the essential information of archives and catalogue
User and group etc.) etc.;The multiple examples of monitoring can be corresponded in each monitoring type, the different examples of monitoring, which correspond to, not to be had to
Instance Name, but create example Instance Name be globally unique and system in uniquely by monitoring system
All monitoring type carry out predefined alarm configuration, and the monitoring type of newly created example is good with predefined alarm configuration
Corresponding monitoring type matched so that newly created example belt type in monitoring system is monitored, automatic configuration
Warning strategies.
Step S102, according to the corresponding monitoring type of the newly created example, by the newly created example with
The default warning strategies of the monitoring type stored in monitoring system are associated, and the default warning strategies include alarm bar
Part.
In the present embodiment, when creating new example on the web portal, the entrance of operation be it is different, according to it is described enter
Mouthful, the available newly created example belongs to any monitoring type, the system prison so that the newly created example is monitored
Monitoring type is carried when control.After creating new example, the initialization interface of monitoring system is called, if the newly created example
Monitoring type is host monitor, then calls host monitor interface, for initializing host warning strategies, if the newly created reality
The monitoring type of example is physics machine monitoring, the even weighing apparatus of load monitors, one in database monitoring, then calls and connect using monitoring
Mouthful, it, will be predefined in monitoring system by calling the initialization interface for initializing the example warning strategies for applying class
The file of alarm configuration copies in the newly created example, the institute that will be stored in the newly created example and monitoring system
The default warning strategies for stating monitoring type are associated.
Preferably, in step S102 by the monitoring type stored in the newly created example and monitoring system
Default warning strategies are associated, and may include step as shown in Figure 2:
Step S201, according to the corresponding monitoring type of the newly created example, search in the monitoring system
The corresponding monitoring type;
Step S202 obtains the predefined alarm configuration corresponding with the monitoring type according to default mapping table
File;
Step S203 obtains the default warning strategies from the file of the predefined alarm configuration, and will be described pre-
If warning strategies copy in the newly created example.
Specifically, the newly created example carries the monitoring type, and the monitoring type carries identifier, root
According to the identifier, the consistent monitoring class of the monitoring type carried with the newly created example is searched from monitoring system
Type.Wherein, in monitoring system, each monitoring type is stored with the file of the corresponding predefined alarm configuration
The default mapping table, according to the monitoring type, by corresponding default mapping table, the available and monitoring type pair
The file for the predefined alarm configuration answered.
For example, being supervised if the corresponding monitoring type of host is host monitor when newly created example is host for host
Control, finds the consistent host monitor of monitoring type corresponding with host by the identifier of host monitor from monitoring system,
According to default mapping table, the file of the corresponding predefined alarm configuration of host monitor is obtained, wherein the default mapping table
It can be character map, key is monitoring type identifier in the character map, is worth for the predefined alarm configuration
The address of file.The default warning strategies of the host monitor are obtained from the file of the predefined alarm configuration, and
The default warning strategies are copied in the newly created example, realizes and is deposited in the newly created example and monitoring system
The association of the default warning strategies of the monitoring type of storage.May include at least one of following in the default warning strategies:
The index of monitored item, the adeditive attribute of index, maximum warning number, alert priority, statistical function, comparison operator, alarm
Come into force time started, warning strategies of threshold value, alarm remark information, warning strategies come into force the mark of end time and monitoring type
Symbol.
Step S103 after association, according to the warning strategies of the newly created example, judges that the newly created example exists
Whether the alarm conditions in the warning strategies are met in operational process.
In the present embodiment, after association, the warning strategies of the newly created example can be the newly created example
The corresponding default warning strategies of monitoring type or the modified default warning strategies, the alarm plan of the newly created example
It can slightly be modified by the tenant of the newly created example, specifically: it sends to the tenant of the newly created example to described
The modification signal of the predefined alarm configuration in newly created example receives the modified described pre- of tenant's transmission
Alarm configuration is defined, the warning strategies of the newly created example are obtained from the modified predefined alarm configuration.
Wherein, in the monitoring system, each example can be shared by multiple tenants, but each tenant is scheduled
An adopted NameSpace, when inquiring data, tenant can only inquire the configuration data of this tenant, and the configuration data is described new
The configuration data of the example of creation may include: ID, tenant ID, Instance Name, the monitoring type, example region information of APP
(address that example is created), readable title (Instance Name that can be changed) and the corresponding monitoring data, the prison
Control data may include the monitoring data of the default monitored item that can be reported or the data of the default warning strategies, alternatively, described
Monitoring data may include the monitoring data or the modified default alarm plan of the modified default monitored item that can be reported
Data slightly.Therefore, each example corresponds to a tenant, and the tenant can only modify the configuration data of this corresponding tenant.Root
According to the warning strategies of the newly created example, judge whether the newly created example meets the alarm in the process of running
The alarm conditions in strategy, for example, the alarm conditions of monitoring host computer class are continuous 3 times of cpu utilization rate >=it 80% just accuses
It is alert, wherein maximum alarm number is 3 times, severity level 3, then when to monitor newly created example be host, judges the host
Whether meet the alarm conditions in the process of running.
Step S104 triggers auto-alarming function, and obtain if meeting the alarm conditions in the warning strategies
Alarm data, the alarm data include the monitoring type and monitoring data of the newly created example.
Preferably, the newly created example is also configured with corresponding Instance Name;After obtaining the alarm data, from institute
It states and filters out the monitoring data corresponding with the monitoring type in alarm data, and will be sieved according to the corresponding Instance Name
The monitoring data after choosing reports to the tenant of the corresponding newly created example;Wherein, the monitoring data includes described
The monitoring data of the default monitored item that can be reported and the data of the default warning strategies, the default monitored item that can be reported
Monitoring data includes at least one of following: CPU usage, memory usage, disk space utilization rate, the default warning strategies
Data include maximum warning number and severity level.
In the present embodiment, if meeting the alarm conditions in the warning strategies, the automatic alarm signal that sends is to institute
Monitoring system is stated, and obtains alarm data, wherein different monitoring type corresponds to the different default monitored item that can be reported.
For example, corresponding monitoring type is host class in the monitoring of host, then the default monitored item that can be reported corresponded to can wrap
CPU usage is included, then filters out the monitoring data corresponding with the host from the alarm data, the host is corresponding
The monitoring data may include the corresponding default monitored item that can be reported of the host monitoring data (CPU usage) and
The data (maximum warning number and severity level) of default warning strategies.If monitor CPU usage continuous 3 times>=80% and<
When 85%, then alarm function is triggered, and maximum alarm number is 1 time, severity level 1;If monitoring CPU usage continuous 3
Secondary>=85% and when<90%, then alarm function is triggered, and maximum alarm number is 2 times, severity level 2;If monitoring CPU
Continuous 3 times of utilization rate >=90% when, then trigger alarm function, and maximum alarm number is 3 times, severity level 3, for example, institute
The alarm data for stating host includes that the monitoring type of the host can report for host class, corresponding preset of the host
The monitoring data of monitored item be continuous 3 times of CPU usage >=90%, and maximum alarm number is 3 times, and severity level 3 will
The corresponding monitoring data of the newly created example (host) filtered out reports to the tenant of the corresponding host, so that
The tenant is handled according to the monitoring data reported, and the tenant can be user.
Preferably, the example monitoring method can also include: to be classified simultaneously to the monitoring type of the existing example
Configuration attribute mark, the attribute-bit include host class monitoring mark and application class monitoring mark, and the attribute-bit is corresponding
Monitoring attributes include host class monitoring and application class monitor;According to the attribute-bit, to described in monitoring attributes progress
Predefined alarm configuration.
In the present embodiment, the monitoring type of the existing example classify and configuration attribute identifies, the attribute mark
Knowing corresponding monitoring attributes can be mainly divided into the monitoring of host class and application class monitoring, wherein the host class monitoring can wrap
Host class is included, the application class monitoring may include following at least a kind of monitoring type: physical machine class, the even weighing apparatus class of load, number
According to library class.According to the corresponding attribute-bit of monitoring type, host class is monitored respectively and application class monitoring carries out described predefine
Alarm configuration, if the newly created example when being associated with the default warning strategies in predefined alarm configuration, can be with
Monitoring attributes corresponding with the newly created example are directly searched, by the corresponding default warning strategies duplication of the monitoring attributes
Into the newly created example, association is completed.
Preferably, referring to, according to the attribute-bit, carrying out the predefined alarm to the monitoring attributes shown in Fig. 3
Configuration, may include steps of:
Step S301 gets the newly created example, according to the attribute-bit that the newly created example carries, looks into
It looks in the monitoring system and carries the consistent attribute-bit with the presence or absence of with the newly created example;
Step S302 carries consistent attribute-bit with the newly created example if it exists, then obtains and the new wound
The example built carries the file of the corresponding predefined alarm configuration of consistent attribute-bit, and the predefined alarm is matched
Default warning strategies in the file set copy in the newly created example;
Step S303 carries consistent attribute-bit with the newly created example if it does not exist, then is in the monitoring
New monitoring type and monitoring attributes are created in system, and one is carried with the newly created example to the new monitoring type configuration
The attribute-bit of cause, and according to the newly created example predefined alarm configuration new to the new monitoring attributes configuration
File.
In the present embodiment, gets and carry the newly created example of attribute-bit and sentenced according to the attribute-bit
The consistent attribute-bit is carried with the presence or absence of with the newly created example in the monitoring system of breaking, for example, new creation
Example be host when, then corresponding monitoring type be host class, corresponding monitoring attributes be host class monitor, according to carrying host
The attribute-bit of band is compared with all attribute-bits in the monitoring system, if it exists with the carrying host band one
The attribute-bit of cause then obtains corresponding with the consistent attribute-bit of carrying host band described predetermined in the monitoring system
The file of adopted alarm configuration, and the default warning strategies in the file of the predefined alarm configuration are copied into the host
In;If it does not exist with the consistent attribute-bit of carrying host band, then created in the monitoring system new monitoring type and
Monitoring attributes, the i.e. corresponding monitoring type (host class) of creation host and monitoring attributes (monitoring of host class), and by the host
Class configuration and the consistent attribute-bit of carrying host band, according to the host predefined alarm new to host class monitoring configuration
The file of configuration.
In conclusion the embodiment of the present invention obtains newly created example first, the newly created exemplary configuration has correspondence
Monitoring type, then according to the corresponding monitoring type of the newly created example, by the newly created example and prison
The default warning strategies of the monitoring type stored in control system are associated, and the default warning strategies include alarm bar
Part is realized automation alarm configuration, after association, according to the warning strategies of the newly created example, is judged described newly created
Whether example meets the alarm conditions in the warning strategies in the process of running, if meeting the institute in the warning strategies
Alarm conditions are stated, then trigger auto-alarming function, and obtain alarm data, the alarm data includes the newly created example
Monitoring type and monitoring data, realize to the automatically-monitored of newly created example.Compared with prior art, the present invention is implemented
In by obtaining the monitoring type of newly created example, further according to monitoring type, by the newly created example with it is corresponding pre-
If warning strategies are associated, automation alarm configuration is realized, all in monitoring after each example can be allowed to create
State significantly reduces the O&M cost of user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to a kind of example monitoring method described in foregoing embodiments, Fig. 4 shows provided in an embodiment of the present invention one
One embodiment structure chart of kind example monitoring device.
In the present embodiment, a kind of example monitoring device may include:
Case-based system module 401, for obtaining newly created example, the newly created exemplary configuration has corresponding monitoring
Type;
Relating module 402 will be described newly created for according to the corresponding monitoring type of the newly created example
The default warning strategies of the monitoring type stored in example and monitoring system are associated, and the default warning strategies include
Alarm conditions;
Judgment module 403, according to the warning strategies of the newly created example, judges the new creation after being associated with
Example whether meet the alarm conditions in the warning strategies in the process of running;
Alarm module 404, for triggering auto-alarming function when meeting the alarm conditions in the warning strategies
Can, and alarm data is obtained, the alarm data includes the monitoring type and monitoring data of the newly created example.
Further, the example monitoring device can also include: the first alarm configuration module, be used for: in the acquisition
Before newly created example, the monitoring type of the existing example of the monitoring system monitoring is obtained, the monitoring type is carried out
Predefined alarm configuration;Wherein, the predefined alarm configuration includes at least one of following: the default monitored item that can be reported, can
The Instance Name that reports, preset warning strategies;The default monitored item that can be reported includes at least one of following: CPU, memory,
Disk space.
Preferably, the relating module 402 may include:
Searching unit, for according to the corresponding monitoring type of the newly created example, searching and monitoring system
The corresponding monitoring type in system;
Acquiring unit is matched for according to mapping table is preset, obtaining the predefined alarm corresponding with the monitoring type
The file set;
Associative cell obtains the default warning strategies from the file of the predefined alarm configuration, and will be described pre-
If warning strategies copy in the newly created example.
Preferably, the example monitoring device can also include:
Attribute configuration module, classify for the monitoring type to the existing example and configuration attribute identifies, described
Attribute-bit includes host class monitoring mark and application class monitoring mark, and the corresponding monitoring attributes of the attribute-bit include host
Class monitoring and application class monitor;
Second alarm configuration module, for carrying out the predefined announcement to the monitoring attributes according to the attribute-bit
Alert configuration.
Preferably, the second alarm configuration module may include:
Attribute-bit searching unit is carried for getting the newly created example according to the newly created example
Attribute-bit, search whether there is and the newly created example carries the consistent attribute mark in the monitoring system
Know;
Alarm configuration unit, for exist carry consistent attribute-bit with the newly created example when, obtain with
The newly created example carries the file of the corresponding predefined alarm configuration of consistent attribute-bit, and will be described predetermined
Default warning strategies in the file of adopted alarm configuration copy in the newly created example;
Creating unit is used for when there is no consistent attribute-bit is carried with the newly created example, in the prison
New monitoring type and monitoring attributes are created in control system, and the new monitoring type is configured and is taken with the newly created example
Match with consistent attribute-bit, and according to the newly created example predefined alarm new to the new monitoring attributes configuration
The file set.
The schematic block diagram that Fig. 5 shows a kind of terminal device provided in an embodiment of the present invention is only shown for ease of description
Part related to the embodiment of the present invention.
In the present embodiment, the terminal device 5 includes: processor 50, memory 51 and is stored in the memory
In 51 and the computer program 52 that can run on the processor 50, such as execute the meter of the monitoring method of above-mentioned database
Calculation machine program.The processor 50 realizes the monitoring method embodiment of above-mentioned each database when executing the computer program 52
In step, such as step S101 to S104 shown in FIG. 1.Alternatively, when the processor 50 executes the computer program 52
Realize the function of each module/unit in above-mentioned each Installation practice, such as the function of module 401 to 404 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5
The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of example monitoring method characterized by comprising
Newly created example is obtained, the newly created exemplary configuration has corresponding monitoring type;
According to the corresponding monitoring type of the newly created example, will be stored in the newly created example and monitoring system
The default warning strategies of the monitoring type be associated, the default warning strategies include alarm conditions;
After association, according to the warning strategies of the newly created example, judge that the newly created example is in the process of running
The no alarm conditions met in the warning strategies;
If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data, it is described
Alarm data includes the monitoring type and monitoring data of the newly created example.
2. example monitoring method according to claim 1, which is characterized in that before the newly created example of acquisition,
Include:
The monitoring type for obtaining the existing example of the monitoring system monitoring carries out predefined alarm to the monitoring type and matches
It sets;
Wherein, the predefined alarm configuration includes at least one of following: the default monitored item that can be reported, the example that can be reported
Name, preset warning strategies;The default monitored item that can be reported includes at least one of following: CPU, memory, disk space.
3. example monitoring method according to claim 2, which is characterized in that according to the corresponding institute of the newly created example
Monitoring type is stated, the default warning strategies of the monitoring type stored in the newly created example and monitoring system are carried out
Association, comprising:
According to the corresponding monitoring type of the newly created example, search and the monitoring corresponding in the monitoring system
Type;
According to default mapping table, the file of the predefined alarm configuration corresponding with the monitoring type is obtained;
The default warning strategies are obtained from the file of the predefined alarm configuration, and the default warning strategies are replicated
Into the newly created example.
4. example monitoring method according to claim 3, which is characterized in that the newly created example is also configured with correspondence
Instance Name;
After obtaining the alarm data, the prison corresponding with the newly created example is filtered out from the alarm data
Data are controlled, and the monitoring data after screening is reported to by the corresponding newly created example according to the corresponding Instance Name
Tenant;
Wherein, the monitoring data includes the monitoring data and the default warning strategies of the default monitored item that can be reported
The monitoring data of data, the default monitored item that can be reported includes at least one of following: CPU usage, memory usage, magnetic
Disk space utilization rate, the data of the default warning strategies include maximum warning number and severity level.
5. example monitoring method according to claim 4, which is characterized in that further include:
The monitoring type of the existing example classify and configuration attribute mark, the attribute-bit include the monitoring of host class
Mark and application class monitoring mark, the corresponding monitoring attributes of the attribute-bit include that the monitoring of host class and application class monitor;
According to the attribute-bit, the predefined alarm configuration is carried out to the monitoring attributes.
6. example monitoring method according to claim 5, which is characterized in that according to the attribute-bit, to the monitoring
Attribute carries out the predefined alarm configuration, comprising:
The newly created example is got, according to the attribute-bit that the newly created example carries, searches the monitoring system
The consistent attribute-bit is carried with the presence or absence of with the newly created example in system;
Consistent attribute-bit is carried with the newly created example if it exists, then obtains and carries one with the newly created example
The file of the corresponding predefined alarm configuration of the attribute-bit of cause, and will be pre- in the file of the predefined alarm configuration
If warning strategies copy in the newly created example;
Consistent attribute-bit is carried with the newly created example if it does not exist, then creates new prison in the monitoring system
Type and monitoring attributes are controlled, consistent attribute-bit is carried with the newly created example to the new monitoring type configuration,
And according to the file of the newly created example predefined alarm configuration new to the new monitoring attributes configuration.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of realization example monitoring method as described in any one of claims 1 to 6 when the computer program is executed by processor
Suddenly.
8. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes following steps when executing the computer program:
Newly created example is obtained, the newly created exemplary configuration has corresponding monitoring type;
According to the corresponding monitoring type of the newly created example, will be stored in the newly created example and monitoring system
The default warning strategies of the monitoring type be associated, the default warning strategies include alarm conditions;
After association, according to the warning strategies of the newly created example, judge that the newly created example is in the process of running
The no alarm conditions met in the warning strategies;
If meeting the alarm conditions in the warning strategies, auto-alarming function is triggered, and obtain alarm data, it is described
Alarm data includes the monitoring type and monitoring data of the newly created example.
9. terminal device according to claim 8, which is characterized in that before the newly created example of acquisition, comprising:
The monitoring type for obtaining the existing example of the monitoring system monitoring carries out predefined alarm to the monitoring type and matches
It sets;
Wherein, the predefined alarm configuration includes at least one of following: the default monitored item that can be reported, the example that can be reported
Name, preset warning strategies;The default monitored item that can be reported includes at least one of following: CPU, memory, disk space.
10. terminal device according to claim 9, which is characterized in that corresponding described according to the newly created example
Monitoring type closes the default warning strategies of the monitoring type stored in the newly created example and monitoring system
Connection, comprising:
According to the corresponding monitoring type of the newly created example, search and the monitoring corresponding in the monitoring system
Type;
According to default mapping table, the file of the predefined alarm configuration corresponding with the monitoring type is obtained;
The default warning strategies are obtained from the file of the predefined alarm configuration, and the default warning strategies are replicated
Into the newly created example.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810788598.3A CN109240876B (en) | 2018-07-18 | 2018-07-18 | Instance monitoring method, computer-readable storage medium, and terminal device |
PCT/CN2018/105056 WO2020015092A1 (en) | 2018-07-18 | 2018-09-11 | Instance monitoring method and apparatus, terminal device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810788598.3A CN109240876B (en) | 2018-07-18 | 2018-07-18 | Instance monitoring method, computer-readable storage medium, and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109240876A true CN109240876A (en) | 2019-01-18 |
CN109240876B CN109240876B (en) | 2022-05-27 |
Family
ID=65072045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810788598.3A Active CN109240876B (en) | 2018-07-18 | 2018-07-18 | Instance monitoring method, computer-readable storage medium, and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109240876B (en) |
WO (1) | WO2020015092A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708197A (en) * | 2019-09-27 | 2020-01-17 | 招商局金融科技有限公司 | Monitoring device, method for setting monitoring policy of monitoring device, and storage medium |
CN111193609A (en) * | 2019-11-20 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Application abnormity feedback method and device and application abnormity monitoring system |
CN112532404A (en) * | 2019-09-17 | 2021-03-19 | 中国移动通信集团广东有限公司 | Data monitoring method and device and electronic equipment |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019386B (en) * | 2020-08-28 | 2022-12-06 | 北京浪潮数据技术有限公司 | Distributed cluster alarm method, device and equipment based on cloud platform |
CN113064800B (en) * | 2021-04-19 | 2023-03-24 | 上海安畅网络科技股份有限公司 | Early warning method and device, electronic equipment and readable storage medium |
CN114067524A (en) * | 2021-11-23 | 2022-02-18 | 安徽富煌科技股份有限公司 | Electronic stop board safety protection system of strategy recovery scheme |
CN117155772B (en) * | 2023-10-27 | 2024-01-30 | 广州嘉为科技有限公司 | Alarm information enrichment method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681882A (en) * | 2015-11-06 | 2017-05-17 | 上海瑞致软件有限公司 | IT-service concentrated monitoring and managing system based on Apriori algorithm |
CN107562599A (en) * | 2017-08-04 | 2018-01-09 | 无锡天脉聚源传媒科技有限公司 | A kind of parameter detection method and device |
CN108011880A (en) * | 2017-12-04 | 2018-05-08 | 郑州云海信息技术有限公司 | The management method and computer-readable recording medium monitored in cloud data system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9027025B2 (en) * | 2007-04-17 | 2015-05-05 | Oracle International Corporation | Real-time database exception monitoring tool using instance eviction data |
CN104252485B (en) * | 2013-06-29 | 2017-08-04 | 北京新媒传信科技有限公司 | A kind of database management platform |
CN104065510A (en) * | 2014-06-27 | 2014-09-24 | 北京思特奇信息技术股份有限公司 | PetriNet-based system operation and maintenance monitoring method and PetriNet-based system operation and maintenance monitoring system |
CN104408059B (en) * | 2014-10-29 | 2019-03-01 | 中国建设银行股份有限公司 | A kind of method and device of troubleshooting |
CN106936620B (en) * | 2015-12-31 | 2020-09-01 | 北京神州泰岳软件股份有限公司 | Alarm event processing method and processing device |
CN108259193B (en) * | 2016-12-28 | 2021-06-01 | 华为技术有限公司 | Network management method, network management system and network element management system |
CN108270726B (en) * | 2016-12-30 | 2021-05-11 | 华为技术有限公司 | Application instance deployment method and device |
-
2018
- 2018-07-18 CN CN201810788598.3A patent/CN109240876B/en active Active
- 2018-09-11 WO PCT/CN2018/105056 patent/WO2020015092A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681882A (en) * | 2015-11-06 | 2017-05-17 | 上海瑞致软件有限公司 | IT-service concentrated monitoring and managing system based on Apriori algorithm |
CN107562599A (en) * | 2017-08-04 | 2018-01-09 | 无锡天脉聚源传媒科技有限公司 | A kind of parameter detection method and device |
CN108011880A (en) * | 2017-12-04 | 2018-05-08 | 郑州云海信息技术有限公司 | The management method and computer-readable recording medium monitored in cloud data system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532404A (en) * | 2019-09-17 | 2021-03-19 | 中国移动通信集团广东有限公司 | Data monitoring method and device and electronic equipment |
CN112532404B (en) * | 2019-09-17 | 2023-09-22 | 中国移动通信集团广东有限公司 | Data monitoring method and device and electronic equipment |
CN110708197A (en) * | 2019-09-27 | 2020-01-17 | 招商局金融科技有限公司 | Monitoring device, method for setting monitoring policy of monitoring device, and storage medium |
CN111193609A (en) * | 2019-11-20 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Application abnormity feedback method and device and application abnormity monitoring system |
Also Published As
Publication number | Publication date |
---|---|
CN109240876B (en) | 2022-05-27 |
WO2020015092A1 (en) | 2020-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109240876A (en) | Example monitoring method, computer readable storage medium and terminal device | |
CN101651576B (en) | Alarm information processing method and system | |
CN106778253A (en) | Threat context aware information security Initiative Defense model based on big data | |
CN102291247A (en) | Alarm association diagram generation method and device and association alarm determination method and device | |
CN110543512B (en) | Information synchronization method, device and system | |
US8938443B2 (en) | Runtime optimization of spatiotemporal events processing | |
CN104618304A (en) | Data processing method and data processing system | |
CN105631019A (en) | Metadata extension method and device | |
CN114244683A (en) | Event classification method and device | |
WO2020015116A1 (en) | Database monitoring method and terminal device | |
CN111258798A (en) | Fault positioning method and device for monitoring data, computer equipment and storage medium | |
CN109684393A (en) | Collecting method, computer readable storage medium and terminal device | |
CN106446289B (en) | Information query method and device based on Pinpoint | |
CN104536785B (en) | Real-time system update method and device | |
CN114157679A (en) | Cloud-native-based distributed application monitoring method, device, equipment and medium | |
CN105426544A (en) | Method and device for monitoring state of database | |
CN112199200A (en) | Resource scheduling method and device, computer equipment and storage medium | |
CN104536784B (en) | Real-time system update method and device | |
CN101794150A (en) | Data management method and system of fieldbus instrument management system | |
CN109299613A (en) | The setting method and terminal device of partitions of database permission | |
CN112148513B (en) | Method, device and storage medium for dumping single-point service data | |
CN108959468A (en) | A kind of monitoring method of data base directory, storage medium and server | |
CN108805462A (en) | The method and device of distribution Risk-warning, storage medium, processor | |
CN109271531B (en) | Data management center based on operation and maintenance knowledge graph | |
CN112784025A (en) | Method and device for determining target event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |