CN108964987A - Data monitoring method, device, computer equipment and storage medium - Google Patents

Data monitoring method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108964987A
CN108964987A CN201810622692.1A CN201810622692A CN108964987A CN 108964987 A CN108964987 A CN 108964987A CN 201810622692 A CN201810622692 A CN 201810622692A CN 108964987 A CN108964987 A CN 108964987A
Authority
CN
China
Prior art keywords
monitoring data
management component
data
monitoring
attribute value
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.)
Pending
Application number
CN201810622692.1A
Other languages
Chinese (zh)
Inventor
刘帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810622692.1A priority Critical patent/CN108964987A/en
Priority to PCT/CN2018/109443 priority patent/WO2019237592A1/en
Publication of CN108964987A publication Critical patent/CN108964987A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a kind of data monitoring method, device, computer equipment and storage mediums.This method comprises: establishing the connection with management component server by JMX frame;Obtain the attribute value of management component in the management component server;According to the attribute value generation monitoring data of the management component, and show the monitoring data;Judge whether the monitoring data meets preset alarm condition;If the monitoring data meets preset alarm condition, warning message is sent.Implement the embodiment of the present invention, the problems such as monitored item that can solve data monitoring is single, monitoring management is inconvenient, is conducive to obtain and management and monitoring data, reduces O&M risk.

Description

Data monitoring method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer data processing more particularly to a kind of data monitoring method, device, computer equipments And computer readable storage medium.
Background technique
With the continuous development of computer technology, SpringBoot frame is gradually applied to building for all kinds of micro services systems With O&M.In the prior art, the monitoring data of micro services system is usually to pass through the primary Metrics interface of SpringBoot frame It obtains, but single by the monitored item that the primary Metrics interface of SpringBoot frame obtains monitoring data, leads to monitored item not Entirely, it has not been convenient to which centralized management and displaying make operation maintenance personnel be unable to learn in time the health status of micro services system, give maintenance work Bring great risk.
Summary of the invention
The embodiment of the invention provides a kind of data monitoring method, device, computer equipment and storage mediums, it is intended to solve The problems such as monitored item of data monitoring is single, monitoring management is inconvenient.
In a first aspect, the embodiment of the invention provides a kind of data monitoring methods comprising:
The connection with management component server is established by JMX frame;
Obtain the attribute value of management component in the management component server;
According to the attribute value generation monitoring data of the management component, and show the monitoring data;
Judge whether the monitoring data meets preset alarm condition;
If the monitoring data meets preset alarm condition, warning message is sent.
Second aspect, the embodiment of the invention provides a kind of data monitoring devices comprising:
Connection establishment unit, for establishing the connection with management component server by JMX frame;
Attribute acquiring unit, for obtaining the attribute value of management component in the management component server;
Data generating unit for the attribute value generation monitoring data according to the management component, and shows the monitoring Data;
Alarm decision unit, for judging whether the monitoring data meets preset alarm condition;
Alarm transmission unit sends warning message if meeting preset alarm condition for the monitoring data.
The third aspect, the embodiment of the present invention provide a kind of computer equipment again comprising memory, processor and storage On the memory and the computer program that can run on the processor, wherein the processor executes described program The above-mentioned data monitoring method of Shi Shixian.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, wherein the computer can It reads storage medium and is stored with computer program, the computer program includes program instruction, and described program instruction is when by processor The processor is set to execute above-mentioned data monitoring method when execution.
The embodiment of the present invention provides a kind of data monitoring method, device, computer equipment and computer readable storage medium. This method comprises: establishing the connection with management component server by JMX frame;It obtains and is managed in the management component server The attribute value of component;According to the attribute value generation monitoring data of the management component, and show the monitoring data;Described in judgement Whether monitoring data meets preset alarm condition;If the monitoring data meets preset alarm condition, warning message is sent.Implement The problems such as embodiment of the present invention, the monitored item that can solve data monitoring is single, monitoring management is inconvenient, is conducive to obtain and manage Monitoring data is managed, O&M risk is reduced.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for data monitoring method that one embodiment of the invention provides;
Fig. 2 is a kind of application scenarios schematic diagram for data monitoring method that one embodiment of the invention provides;
Fig. 3 is a kind of sub-process schematic diagram for data monitoring method that one embodiment of the invention provides;
Fig. 4 is a kind of sub-process schematic diagram for data monitoring method that one embodiment of the invention provides;
Fig. 5 is a kind of sub-process schematic diagram for data monitoring method that one embodiment of the invention provides;
Fig. 6 is a kind of sub-process schematic diagram for data monitoring method that one embodiment of the invention provides;
Fig. 7 is a kind of schematic block diagram for data monitoring device that one embodiment of the invention provides;
The schematic block diagram of connection establishment unit in a kind of data monitoring device that Fig. 8 provides for one embodiment of the invention;
The schematic block diagram of data generating unit in a kind of data monitoring device that Fig. 9 provides for one embodiment of the invention;
Figure 10 is a kind of the another schematic of the data generating unit for data monitoring device that one embodiment of the invention provides Block diagram;
Figure 11 is a kind of the another schematic of the data generating unit for data monitoring device that one embodiment of the invention provides Block diagram;
Figure 12 is a kind of schematic block diagram for computer equipment that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more other spies are not precluded Sign, entirety, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Fig. 1 and Fig. 2 is please referred to, Fig. 1 is a kind of process signal for data monitoring method that one embodiment of the invention provides Figure;Fig. 2 is a kind of application scenarios schematic diagram for data monitoring method that one embodiment of the invention provides.The data monitoring method can Applied to monitor terminal 10, the monitor terminal 10 can be smart phone, tablet computer, laptop, desktop computer, a Personal digital assistant and wearable device etc. have the electronic equipment of communication function.The monitor terminal 10 can be with management component service Device 30 establishes a connection, to obtain the attribute value of management component 40 by management component server 30, and it is final according to The attribute value generation monitoring data of management component 40.
As shown in Figure 1, the data monitoring method includes but is not limited to following steps S110-S150.
S110 establishes the connection with management component server 30 by JMX frame.
Wherein, JMX (Java Management Extensions, i.e. Java administration extensions) frame is one for using journey The frame of the implantation management function such as sequence, equipment, system.JMX can cross over a series of heterogeneous operating system platforms, system of systems knot Structure and the network transmission protocol neatly develop system, network and the service management application of Seamless integration-.
JMX frame includes: mechanical floor (Instrumentation Level), Agent layer (Agent Level), distribution clothes It is engaged in layer (Distributed Service Level).
Wherein, mechanical floor (Instrumentation Level) defines information model, and various management objects are to manage structure The form of part 40 (Managed Bean, MBean) exists.Wherein management component 40 (Managed Bean, MBean) is an energy The Java object for representing management resource, defers to certain design pattern, also needs to realize the specific interface that the specification defines.
Agent layer (Agent Level) defines various services and traffic model, for managing corresponding resource, and The interface of access is provided for remote subscriber.The core of Agent layer is management component server 30 (MBean Server), manages structure Part server 30 (MBean Server) is the warehouse comprising all registered management components 40 (MBean).
Distribution service layer (Distributed Service Level) defines a series of interfaces for access agent layer And component.
Specifically referring to figure 3., a kind of sub-process schematic diagram of the data monitoring method provided for one embodiment of the invention. It further, include but is not limited to following steps S111-S113 in step S110.
S111 obtains the type of connector server 20 in the JMX frame.
Wherein, JMX framework specification defines the concept of connector (Connectors), and connector (Connectors) is located at Distribution service layer in JMX frame, connector (Connectors) is for establishing management component server 30 and monitor terminal 10 Between connection relationship.Connector (Connectors) resides in the 20 (Connector of connector server of Agent layer by one Server it) is constituted with connector client (Connector Client).Connector server 20 (Connector Server) For connecting the management component server 30, and monitor the request for coming from client (Connector Client).
S112 creates the connector server 20 corresponding connection ground according to the type of the connector server 20 Location.
In specific implementation, connection server includes but is not limited to RMI connector (RMI Connector), JMXMP connector (JMXMP Connector) etc..Wherein, link address includes: standard prefix, transport protocol, connection path and connectivity port. The different types of transport protocol connected in the corresponding link address of server is different.Such as the corresponding transport protocol of RMI connector For RMI protocol;The corresponding transport protocol of JMXMP connector is JMXMP agreement.
Link address is described in detail by taking RMI connector (RMI Connector) as an example below, if the connector The type of server 20 is RMI connector, and the link address created can be with are as follows: service:jmx:rmi: //jndi/ rmi://localhost:1099/jmxrmi.Wherein, " service:jmx: " is the standard prefix of JMX frame link address. " rmi: " is the transport protocol of connector server 20, and link address herein is transmitted using RMI transport protocol."jndi/ Rmi: //localhost:1099/jmxrmi " is the connection path of connector server 20, and " 1099 " are the corresponding company in the path Connect port.
S113 establishes the connection with management component server 30 according to the link address.
Specifically, by corresponding connectivity port in access link address, and the company is connected to by JNDI API It is grounded location, the connection of monitor terminal 10 Yu management component server 30 can be established.
S120 obtains the attribute value of management component 40 in the management component server 30.
Specifically, management component 40 (MBean, Managed Bean) represents the resource being managed in JMX frame Example.The exposure of management component 40 can be got by reflection (Reflection) mechanism and (Introspection) mechanism of examining oneself Attribute and method, and then realize obtain management component 40 attribute value.For example, the attribute value of management component 40 can pass through GetAttribute () method, can return to the attribute value of specified attribute name by getAttribute () method.
S130 according to the attribute value generation monitoring data of the management component 40, and shows the monitoring data.
Specifically, according to the type of the attribute value generation monitoring data of the management component 40 according to the difference of monitored object And it is different.For example, monitored object can be the order processing system of shopping platform, loan application system of financial institution etc.. Wherein, if the monitoring is the order processing system of shopping safety, monitoring data generated includes the occupancy of CPU, is completed Number of request, quantity on order, the Thread Count for being currently at busy condition etc..
Specifically referring to figure 4., a kind of sub-process schematic diagram of the data monitoring method provided for one embodiment of the invention. Further, step S130 includes but is not limited to following steps S131-S133.
S131 obtains the user type of active user.
Wherein, active user namely the currently used person of monitor terminal 10, the user type of active user include but unlimited In administrative staff and operation maintenance personnel.
Specifically referring to figure 5., a kind of sub-process schematic diagram of the data monitoring method provided for one embodiment of the invention. Further, step S131 includes but is not limited to following steps S1311-S1312.
S1311 obtains the unique identifier of active user.
Specifically, the unique identifier of active user includes but is not limited to the work number, identification card number, cell-phone number of active user Deng.The user name that the unique identifier of active user can currently be logged in by reading monitor terminal 10 is obtained, which can Think the work number, identification card number, cell-phone number etc. of the currently used person of monitor terminal.The use currently logged in by reading monitor terminal 10 Name in an account book is the unique identifier that can determine active user.
S1312 determines the current use according to the unique identifier of the active user and preset Type mapping table The user type at family.
Specifically, preset Type mapping table is stored with the unique identifier and user class of one or more active user The mapping relations of type.For example, the unique identifier of active user includes " 8185 ", " 8899 ", " 8386 " etc., preset type is reflected The mapping relations of firing table storage are, for example, that the unique identifier " 8185 " of active user is mapped in " administrative staff ", active user Unique identifier " 8899 " is mapped in " operation maintenance personnel " etc..Assuming that the unique identifier of accessed active user is " 8185 ", it is determined that the user type of the active user is " administrative staff ".
S132 determines the measurement period of the attribute value of the management component 40 according to the user type.
Specifically, the user type and measurement period correspond.For example, the corresponding measurement period of administrative staff is one It, the measurement period of operation maintenance personnel is 30 minutes.If the user type of active user is administrative staff, according to the user type Obtaining corresponding measurement period is one day.If the user type of active user is operation maintenance personnel, obtained according to the user type Taking corresponding measurement period is 30 minutes.Measurement period can specifically be set according to actual needs.
S133 generates monitoring data according to the attribute value of the management component 40 and the measurement period, and shows institute State monitoring data.
For example, corresponding measurement period is one day, then according to if the user type of active user is administrative staff The attribute value of management component 40 and the measurement period generate monitoring data specifically: are with day by the collected attribute value of institute Unit is counted, to generate monitoring data.For example, it is assumed that CPU usage of the attribute value for JVM system, and frequency acquisition Once every minute, according to accessed attribute value, to be counted as unit of day, i.e., by the same day collected 1440 categories Property value summed or averaged calculating, then produce monitoring data.
For example, the corresponding data statistics period is 30 minutes, then root if the user type of active user is operation maintenance personnel Monitoring data is generated according to the attribute value of the management component 40 and the measurement period specifically: by the collected attribute value of institute It is counted as unit of 30 minutes, to generate monitoring data.For example, it is assumed that the attribute value is the CPU usage of JVM system, And frequency acquisition is once every minute, according to accessed attribute value, to be counted as unit of 30 minutes, i.e., it will be in 30 points Interior collected 30 attribute values are summed or are averaged calculating, then produce monitoring data.
Wherein, show that the monitoring data can be showed in the form of statements in the display interface of monitor terminal 10.
Fig. 6 specifically is please referred to, for a kind of sub-process schematic diagram for data monitoring method that one embodiment of the invention provides. In other embodiments, step S130 includes but is not limited to following steps S231-S233.
S231 obtains the corresponding attribute field name of attribute value of the management component 40.
In specific implementation, the corresponding attribute field name of the attribute value includes that cpuJvm (indicates the occupancy of JVM system CPU Rate), maxThreads (indicate maximum thread), requestCount (indicating completed number of request), CurrentThreadsBusy (Thread Count that expression is currently at busy condition), ordercount (indicating quantity on order) etc. Deng.
S232 determines that the type of the monitoring data, the type of the monitoring data include according to the attribute field name Real-time monitoring data and non real-time monitoring data.
Specifically, by classifying in advance to attribute field name, to form attribute field name and monitoring data type Mapping relations.Such as the mapping relations can be mapped in real time monitoring number for cpuJvm (occupancy for indicating JVM system CPU) According to ordercount (indicating quantity on order) is mapped in non real-time monitoring data.Pass through reading attributes field name and monitoring data The mapping relations of type can determine the type of monitoring data.
S233, if the type of the monitoring data is real-time monitoring data, monitoring data described in real-time exhibition.
Specifically, the monitoring data real-time exhibition can specifically include: by ajax long interconnection technique by the prison Control data are showed in the display interface of monitor terminal 10.Wherein, ajax long connection refers to that monitor terminal 10 sends primary request, pipe Inquiry blocks this request, Zhi Daoyou either with or without new data if without new data after reason component application server 30 receives request Until new data or time-out.Monitor terminal 10 receives every time sends out request primary again at once after request returns the result.
If the monitoring data is non real-time monitoring data, the monitoring data is stored in database and the displaying that is delayed. Wherein, described the monitoring data to be stored in database and the displaying that is delayed is specifically as follows: to judge whether to receive for obtaining The request instruction of the monitoring data is taken, if receiving the request instruction, calls the monitoring data being stored in database profession, and Show the monitoring data.
S140, judges whether the monitoring data meets preset alarm condition.
Specifically, different monitoring datas corresponds to different preset alarm conditions.For example, it is assumed that the monitoring data is The occupancy of JVM system CPU, then its corresponding preset alarm condition can be greater than preset account for for the CPU usage of JVM system With rate threshold value, wherein the occupancy threshold can be 60%.Even the CPU usage of JVM system is greater than 60%, it is determined that the prison Control data meet preset alarm condition.
S150 sends warning message if the monitoring data meets preset alarm condition.
Wherein, the warning message can be sent to by forms such as mail, short messages corresponding administrative staff, operation maintenance personnel or Other related personnel of person.
Implement the embodiment of the present invention, the connection with management component server 30 is established by JMX frame;Obtain the management The attribute value of management component 40 in component application server 30;According to the attribute value generation monitoring data of the management component 40, and open up Show the monitoring data;Judge whether the monitoring data meets preset alarm condition;If the monitoring data meets default report Alert condition, sends warning message.Implement the embodiment of the present invention, the monitored item that can solve data monitoring is single, monitoring management not side Just the problems such as, is conducive to acquisition and management and monitoring data, reduces O&M risk.
The embodiment of the invention also provides a kind of data monitoring device 100, the data monitoring device 100 is aforementioned for executing Any embodiment of data monitoring method.
Fig. 7 and Fig. 2 is please referred to, Fig. 7 is a kind of the schematic of data monitoring device 100 that one embodiment of the invention provides Block diagram.Fig. 2 is a kind of application scenarios schematic diagram for data monitoring method that one embodiment of the invention provides.The data monitoring device 100 can be implemented as a kind of form of computer program and be configured on monitor terminal 10 and run, and be carried out with realizing to data Monitoring.The monitor terminal 10 can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and Wearable device etc. has the electronic equipment of communication function.The monitor terminal 10 can establish connection with management component server 30 Relationship, to obtain the attribute value of management component 40 by management component server 30, and finally according to the management component 40 Attribute value generation monitoring data.
As shown in fig. 7, the data monitoring device 100 includes connection establishment unit 110, attribute acquiring unit 120, data life At unit 130, alarm decision unit 140 and alarm transmission unit 150.
Connection establishment unit 110, for establishing the connection with management component server 30 by JMX frame.
Wherein, JMX (Java Management Extensions, i.e. Java administration extensions) frame is one for using journey The frame of the implantation management function such as sequence, equipment, system.JMX can cross over a series of heterogeneous operating system platforms, system of systems knot Structure and the network transmission protocol neatly develop system, network and the service management application of Seamless integration-.
JMX frame includes: mechanical floor (Instrumentation Level), Agent layer (Agent Level), distribution clothes It is engaged in layer (Distributed Service Level).
Wherein, mechanical floor (Instrumentation Level) defines information model, and various management objects are to manage structure The form of part 40 (Managed Bean, MBean) exists.Wherein management component 40 (Managed Bean, MBean) is an energy The Java object for representing management resource, defers to certain design pattern, also needs to realize the specific interface that the specification defines.
Agent layer (Agent Level) defines various services and traffic model, for managing corresponding resource, and The interface of access is provided for remote subscriber.The core of Agent layer is management component server 30 (MBean Server), manages structure Part server 30 (MBean Server) is the warehouse comprising all registered management components 40 (MBean).
Distribution service layer (Distributed Service Level) defines a series of interfaces for access agent layer And component.
Fig. 8 specifically is please referred to, connection is established single in a kind of data monitoring device 100 provided for one embodiment of the invention The schematic block diagram of member 110.Further, the connection establishment unit 110 includes but is not limited to first acquisition unit 111, wound Build unit 112 and first processing units 113.
First acquisition unit 111, for obtaining the type of connector server 20 in the JMX frame.
Wherein, JMX framework specification defines the concept of connector (Connectors), and connector (Connectors) is located at Distribution service layer in JMX frame, connector (Connectors) is for establishing management component server 30 and monitor terminal 10 Between connection relationship.Connector (Connectors) resides in the 20 (Connector of connector server of Agent layer by one Server it) is constituted with connector client (Connector client).Connector server 20 (Connector server) For connecting the management component server 30, and monitor the request for coming from client (Connector client).
Specifically, the type of the connector server 20 include but is not limited to RMI connector (RMI Connector), JMXMP connector (JMXMP Connector) etc..
Creating unit 112 is right for creating the connector server 20 according to the type of the connector server 20 The link address answered.
In specific implementation, connection server includes but is not limited to RMI connector (RMI Connector), JMXMP connector (JMXMP Connector) etc..Wherein, link address includes: standard prefix, transport protocol, connection path and connectivity port. The different types of transport protocol connected in the corresponding link address of server is different.Such as the corresponding transport protocol of RMI connector For RMI protocol;The corresponding transport protocol of JMXMP connector is JMXMP agreement.
Link address is described in detail by taking RMI connector (RMI Connector) as an example below, if the connector The type of server 20 is RMI connector, and the link address created can be with are as follows: service:jmx:rmi: //jndi/ rmi://localhost:1099/jmxrmi.Wherein, " service:jmx: " is the standard prefix of JMX frame link address. " rmi: " is the transport protocol of connector server 20, and link address herein is transmitted using RMI transport protocol."jndi/ Rmi: //localhost:1099/jmxrmi " is the connection path of connector server 20, and " 1099 " are the corresponding company in the path Connect port.
First processing units 113, for establishing the connection with management component server 30 according to the link address.
Specifically, by corresponding connectivity port in access link address, and the company is connected to by JNDI API It is grounded location, the connection with management component server 30 can be established.
Attribute acquiring unit 120, for obtaining the attribute value of management component 40 in the management component server 30.
Specifically, management component 40 (MBean, Managed Bean) represents the resource being managed in JMX frame Example.The exposure of management component 40 can be got by reflection (Reflection) mechanism and (Introspection) mechanism of examining oneself Attribute and method, and then realize obtain management component 40 attribute value.For example, the attribute value of management component 40 can pass through GetAttribute () method, can return to the attribute value of specified attribute name by getAttribute () method.
Data generating unit 130, for the attribute value generation monitoring data according to the management component 40, and described in displaying Monitoring data.
Specifically, according to the type of the attribute value generation monitoring data of the management component 40 according to the difference of monitored object And it is different.For example, monitored object can be the order processing system of shopping platform, loan application system of financial institution etc.. Wherein, if the monitoring is the order processing system of shopping safety, monitoring data generated includes the occupancy of CPU, is completed Number of request, quantity on order, the Thread Count for being currently at busy condition etc..
Fig. 9 specifically is please referred to, data generate single in a kind of data monitoring device 100 provided for one embodiment of the invention The schematic block diagram of member 130.Further, the data generating unit 130 includes but is not limited to second acquisition unit 131, the One determination unit 132 and the second processing unit 133.
Second acquisition unit 131, for obtaining the user type of active user.
Wherein, active user namely the currently used person of monitor terminal 10, the user type of active user include but unlimited In administrative staff and operation maintenance personnel.
Figure 10 specifically is please referred to, data generate in a kind of data monitoring device 100 provided for one embodiment of the invention The schematic block diagram of unit 130.Further, the second acquisition unit 131 includes but is not limited to third acquiring unit 1311 And second determination unit 1312.
Third acquiring unit 1311, for obtaining the unique identifier of active user.
Specifically, the unique identifier of active user includes but is not limited to the work number, identification card number, cell-phone number of active user Deng.The user name that the unique identifier of active user can currently be logged in by reading monitor terminal 10 is obtained, which can Think the work number, identification card number, cell-phone number etc. of the currently used person of monitor terminal.The use currently logged in by reading monitor terminal 10 Name in an account book is the unique identifier that can determine active user.
Second determination unit 1312, for the unique identifier and preset Type mapping according to the active user Table determines the user type of the active user.
Specifically, preset Type mapping table is stored with the unique identifier and user class of one or more active user The mapping relations of type.For example, the unique identifier of active user includes " 8185 ", " 8899 ", " 8386 " etc., preset type is reflected The mapping relations of firing table storage are, for example, that the unique identifier " 8185 " of active user is mapped in " administrative staff ", active user Unique identifier " 8899 " is mapped in " operation maintenance personnel " etc..Assuming that the unique identifier of accessed active user is " 8185 ", it is determined that the user type of the active user is " administrative staff ".
First determination unit 132, the statistics of the attribute value for determining the management component 40 according to the user type Period.
Specifically, the user type and measurement period correspond.For example, the corresponding measurement period of administrative staff is one It, the measurement period of operation maintenance personnel is 30 minutes.If the user type of active user is administrative staff, according to the user type Obtaining corresponding measurement period is one day.If the user type of active user is operation maintenance personnel, obtained according to the user type Taking corresponding measurement period is 30 minutes.Measurement period can specifically be set according to actual needs.
The second processing unit 133, for generating prison according to the attribute value of the management component 40 and the measurement period Data are controlled, and show the monitoring data.
For example, corresponding measurement period is one day, then according to if the user type of active user is administrative staff The attribute value of management component 40 and the measurement period generate monitoring data specifically: are with day by the collected attribute value of institute Unit is counted, to generate monitoring data.For example, it is assumed that CPU usage of the attribute value for JVM system, and frequency acquisition Once every minute, according to accessed attribute value, to be counted as unit of day, i.e., by the same day collected 1440 categories Property value summed or averaged calculating, then produce monitoring data.
For example, the corresponding data statistics period is 30 minutes, then root if the user type of active user is operation maintenance personnel Monitoring data is generated according to the attribute value of the management component 40 and the measurement period specifically: by the collected attribute value of institute It is counted as unit of 30 minutes, to generate monitoring data.For example, it is assumed that the attribute value is the CPU usage of JVM system, And frequency acquisition is once every minute, according to accessed attribute value, to be counted as unit of 30 minutes, i.e., it will be in 30 points Interior collected 30 attribute values are summed or are averaged calculating, then produce monitoring data.
Wherein, show that the monitoring data can be showed in the form of statements in the display interface of monitor terminal 10.
Figure 11 specifically is please referred to, data generate in a kind of data monitoring device 100 provided for one embodiment of the invention The schematic block diagram of unit 130.In other embodiments, the data generating unit 130 includes but is not limited to that the 4th acquisition is single Member 231, third determination unit 232 and third processing unit 233.
4th acquiring unit 231, the corresponding attribute field name of attribute value for obtaining the management component 40.
In specific implementation, the corresponding attribute field name of the attribute value includes that cpuJvm (indicates the occupancy of JVM system CPU Rate), maxThreads (indicate maximum thread), requestCount (indicating completed number of request), CurrentThreadsBusy (Thread Count that expression is currently at busy condition), ordercount (indicating quantity on order) etc. Deng.
Third determination unit 232, for determining the type of the monitoring data, the monitoring according to the attribute field name The type of data includes real-time monitoring data and non real-time monitoring data.
Specifically, by classifying in advance to attribute field name, to form attribute field name and monitoring data type Mapping relations.Such as the mapping relations can be mapped in real time monitoring number for cpuJvm (occupancy for indicating JVM system CPU) According to ordercount (indicating quantity on order) is mapped in non real-time monitoring data.Pass through reading attributes field name and monitoring data The mapping relations of type can determine the type of monitoring data.
Third processing unit 233 is supervised described in real-time exhibition if the type for the monitoring data is real-time monitoring data Control data.
Specifically, the monitoring data real-time exhibition can specifically include: by ajax long interconnection technique by the prison Control data are showed in front end display interface.Wherein, ajax long connection refers to that client sends primary request, and server end, which receives, asks Inquiry blocks this request, until having new data or time-out either with or without new data if without new data after asking.Visitor Family end receives every time sends out request primary again at once after request returns the result.
If the monitoring data is non real-time monitoring data, the monitoring data is stored in database and the displaying that is delayed. Wherein, described the monitoring data to be stored in database and the displaying that is delayed is specifically as follows: to judge whether to receive for obtaining The request instruction of the monitoring data is taken, if receiving the request instruction, calls the monitoring data being stored in database profession, and Show the monitoring data.
Alarm decision unit 140, for judging whether the monitoring data meets preset alarm condition.
Specifically, different monitoring datas corresponds to different preset alarm conditions.For example, it is assumed that the monitoring data is The occupancy of JVM system CPU, then its corresponding preset alarm condition can be greater than preset account for for the CPU usage of JVM system With rate threshold value, wherein the occupancy threshold can be 60%.Even the CPU usage of JVM system is greater than 60%, it is determined that the prison Control data meet preset alarm condition.
Alarm transmission unit 150 sends warning message if meeting preset alarm condition for the monitoring data.
Wherein, the warning message can be sent to by forms such as mail, short messages corresponding administrative staff, operation maintenance personnel or Other related personnel of person.
Implement the embodiment of the present invention, the connection with management component server 30 is established by JMX frame;Obtain the management The attribute value of management component 40 in component application server 30;According to the attribute value generation monitoring data of the management component 40, and open up Show the monitoring data;Judge whether the monitoring data meets preset alarm condition;If the monitoring data meets default report Alert condition, sends warning message.Implement the embodiment of the present invention, the monitored item that can solve data monitoring is single, monitoring management not side Just the problems such as, is conducive to acquisition and management and monitoring data, reduces O&M risk.
Above-mentioned apparatus 100 can be implemented as a kind of form of computer program, and computer program can be as shown in figure 12 Computer equipment on run.
Figure 12 is please referred to, Figure 12 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.The calculating 500 equipment of machine equipment can be terminal, such as monitor terminal.The terminal can be smart phone, tablet computer, notebook electricity Brain, desktop computer, personal digital assistant and wearable device etc. have the electronic equipment of communication function.
The computer equipment 500 includes processor 520, memory and the network interface connected by system bus 510 550, wherein memory may include non-volatile memory medium 530 and built-in storage 540.
The non-volatile memory medium 530 can storage program area 531 and computer program 532.The computer program 532 It is performed, processor 520 may make to execute a kind of data monitoring method.
The processor 520 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 540 provides environment for the operation of the computer program in non-volatile memory medium, the computer When program is executed by processor 520, processor 520 may make to execute a kind of data monitoring method.
The network interface 550 is for carrying out network communication.It will be understood by those skilled in the art that the computer equipment is shown Meaning property block diagram is only the block diagram of part-structure relevant to the present invention program, does not constitute and is applied to it to the present invention program On computer equipment 500 restriction, specific computer equipment 500 may include than more or fewer portions as shown in the figure Part perhaps combines certain components or with different component layouts.
Wherein, the processor 520 is for running program code stored in memory, to implement function such as:
The connection with management component server is established by JMX frame;
Obtain the attribute value of management component in the management component server;
According to the attribute value generation monitoring data of the management component, and show the monitoring data;
Judge whether the monitoring data meets preset alarm condition;
If the monitoring data meets preset alarm condition, warning message is sent.
In one embodiment, processor 520 is executing the connection by JMX frame foundation and management component server Step when, specifically execute following steps:
Obtain the type of connector server in the JMX frame;
The corresponding link address of the connector server is created according to the type of the connector server;
The connection with management component server is established according to the link address.
In one embodiment, processor 520 is executing the attribute value generation monitoring data according to the management component, And when showing the step of the monitoring data, following steps are specifically executed:
Obtain the user type of active user;
The measurement period of the attribute value of the management component is determined according to the user type;
Monitoring data is generated according to the attribute value of the management component and the measurement period, and shows the monitoring number According to.
In one embodiment, processor 520 is specifically held when executing the step of the user type for obtaining active user Row following steps:
Obtain the unique identifier of active user;
According to the unique identifier of the active user and preset Type mapping table, the use of the active user is determined Family type.
In one embodiment, processor 520 is executing the attribute value generation monitoring data according to the management component, And when showing the step of the monitoring data, following steps are specifically executed:
Obtain the corresponding attribute field name of attribute value of the management component;
Determine that the type of the monitoring data, the type of the monitoring data include supervising in real time according to the attribute field name Control data and non real-time monitoring data;
If the type of the monitoring data is real-time monitoring data, monitoring data described in real-time exhibition.
It should be appreciated that in embodiments of the present invention, processor 520 can be central processing unit (Central Processing Unit, CPU), which 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) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
It will be understood by those skilled in the art that the schematic block diagram of the computer equipment 500 is not constituted and is set to computer Standby 500 restriction may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
A kind of computer readable storage medium is provided in another embodiment of the invention, the computer readable storage medium It is stored with computer program, wherein computer program includes program instruction.Described program instruction is realized such as when being executed by processor Lower step:
The connection with management component server is established by JMX frame;
Obtain the attribute value of management component in the management component server;
According to the attribute value generation monitoring data of the management component, and show the monitoring data;
Judge whether the monitoring data meets preset alarm condition;
If the monitoring data meets preset alarm condition, warning message is sent.
In one embodiment, described program instruction is executed by processor to realize described by JMX frame and establish and manage When the step of the connection of component application server, it is implemented as follows step:
Obtain the type of connector server in the JMX frame;
The corresponding link address of the connector server is created according to the type of the connector server;
The connection with management component server is established according to the link address.
In one embodiment, described program instruction is executed by processor to realize the attribute according to the management component When being worth and generate monitoring data, and showing the step of the monitoring data, it is implemented as follows step:
Obtain the user type of active user;
The measurement period of the attribute value of the management component is determined according to the user type;
Monitoring data is generated according to the attribute value of the management component and the measurement period, and shows the monitoring number According to.
In one embodiment, described program instruction is executed by processor to realize the user type for obtaining active user Step when, be implemented as follows step:
Obtain the unique identifier of active user;
According to the unique identifier of the active user and preset Type mapping table, the use of the active user is determined Family type.
In one embodiment, described program instruction is executed by processor to realize the attribute according to the management component When being worth and generate monitoring data, and showing the step of the monitoring data, it is implemented as follows step:
Obtain the corresponding attribute field name of attribute value of the management component;
Determine that the type of the monitoring data, the type of the monitoring data include supervising in real time according to the attribute field name Control data and non real-time monitoring data;
If the type of the monitoring data is real-time monitoring data, monitoring data described in real-time exhibition.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (ROM, Read- OnlyMemory), the various media that can store program code such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.It is apparent to those skilled in the art that for convenience of description and simple Clean, the device of foregoing description and the specific work process of unit can refer to corresponding processes in the foregoing method embodiment, herein It repeats no more.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as more than one unit or assembly can To combine or be desirably integrated into another system, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.
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, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit 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 when sold or used as an independent product, It can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of data monitoring method characterized by comprising
The connection with management component server is established by JMX frame;
Obtain the attribute value of management component in the management component server;
According to the attribute value generation monitoring data of the management component, and show the monitoring data;
Judge whether the monitoring data meets preset alarm condition;
If the monitoring data meets preset alarm condition, warning message is sent.
2. the method as described in claim 1, which is characterized in that described to be established and management component server by JMX frame Connection, comprising:
Obtain the type of connector server in the JMX frame;
The corresponding link address of the connector server is created according to the type of the connector server;
The connection with management component server is established according to the link address.
3. the method as described in claim 1, which is characterized in that described to monitor number according to the attribute value generation of the management component According to, and show the monitoring data, comprising:
Obtain the user type of active user;
The measurement period of the attribute value of the management component is determined according to the user type;
Monitoring data is generated according to the attribute value of the management component and the measurement period, and shows the monitoring data.
4. method as claimed in claim 3, which is characterized in that the user type for obtaining active user, comprising:
Obtain the unique identifier of active user;
According to the unique identifier of the active user and preset Type mapping table, the user class of the active user is determined Type.
5. the method as described in claim 1, which is characterized in that described to monitor number according to the attribute value generation of the management component According to, and show the monitoring data, comprising:
Obtain the corresponding attribute field name of attribute value of the management component;
Determine that the type of the monitoring data, the type of the monitoring data include real time monitoring number according to the attribute field name Accordingly and non real-time monitoring data;
If the type of the monitoring data is real-time monitoring data, monitoring data described in real-time exhibition.
6. a kind of data monitoring device, which is characterized in that described device includes:
Connection establishment unit, for establishing the connection with management component server by JMX frame;
Attribute acquiring unit, for obtaining the attribute value of management component in the management component server;
Data generating unit for the attribute value generation monitoring data according to the management component, and shows the monitoring data;
Alarm decision unit, for judging whether the monitoring data meets preset alarm condition;
Alarm transmission unit sends warning message if meeting preset alarm condition for the monitoring data.
7. device as claimed in claim 6, which is characterized in that the connection establishment unit includes:
First acquisition unit, for obtaining the type of connector server in the JMX frame;
Creating unit, for creating the corresponding connection ground of the connector server according to the type of the connector server Location;
First processing units, for establishing the connection with management component server according to the link address.
8. device as claimed in claim 6, which is characterized in that the data generating unit includes:
Second acquisition unit, for obtaining the user type of active user;
First determination unit, the measurement period of the attribute value for determining the management component according to the user type;
The second processing unit, for generating monitoring data according to the attribute value of the management component and the measurement period, and Show the monitoring data.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1 to 5 The data monitoring method of item.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction executes the processor such as The described in any item data monitoring methods of claim 1-5.
CN201810622692.1A 2018-06-15 2018-06-15 Data monitoring method, device, computer equipment and storage medium Pending CN108964987A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810622692.1A CN108964987A (en) 2018-06-15 2018-06-15 Data monitoring method, device, computer equipment and storage medium
PCT/CN2018/109443 WO2019237592A1 (en) 2018-06-15 2018-10-09 Data monitoring method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810622692.1A CN108964987A (en) 2018-06-15 2018-06-15 Data monitoring method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108964987A true CN108964987A (en) 2018-12-07

Family

ID=64489115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810622692.1A Pending CN108964987A (en) 2018-06-15 2018-06-15 Data monitoring method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108964987A (en)
WO (1) WO2019237592A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445636A (en) * 2019-07-03 2019-11-12 平安科技(深圳)有限公司 Micro services method for early warning, device and computer equipment based on management platform
CN110471742A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 Java object monitoring management system and method under distributed environment
CN112328443A (en) * 2020-09-18 2021-02-05 长城计算机软件与系统有限公司 System service monitoring method, monitoring system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN102325180A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Component management method and system
CN102393635A (en) * 2011-07-07 2012-03-28 浙江大学 Multidomain complex product system layer behavior modeling method based on SysML
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN102393635A (en) * 2011-07-07 2012-03-28 浙江大学 Multidomain complex product system layer behavior modeling method based on SysML
CN102325180A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Component management method and system
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘绚: "信息共享互连互通平台监控管理系统的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
吴夫丹: "基于云平台的服务器监控系统设计", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
晏雪松: "基于JMX的监控系统研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445636A (en) * 2019-07-03 2019-11-12 平安科技(深圳)有限公司 Micro services method for early warning, device and computer equipment based on management platform
CN110445636B (en) * 2019-07-03 2022-03-18 平安科技(深圳)有限公司 Management platform-based micro-service early warning method and device and computer equipment
CN110471742A (en) * 2019-08-15 2019-11-19 中国银行股份有限公司 Java object monitoring management system and method under distributed environment
CN110471742B (en) * 2019-08-15 2022-03-29 中国银行股份有限公司 Java object monitoring management system and method under distributed environment
CN112328443A (en) * 2020-09-18 2021-02-05 长城计算机软件与系统有限公司 System service monitoring method, monitoring system and electronic equipment

Also Published As

Publication number Publication date
WO2019237592A1 (en) 2019-12-19

Similar Documents

Publication Publication Date Title
US7886295B2 (en) Connection manager, method, system and program product for centrally managing computer applications
CN108880943A (en) A kind of monitoring system of isomery cloud platform
CN108964987A (en) Data monitoring method, device, computer equipment and storage medium
CN109376050A (en) A kind of APP monitoring method, computer readable storage medium and terminal device
CN114500521A (en) Computing power scheduling method, device, scheduling equipment, system and storage medium
CN108847958A (en) Monitoring of tools management method, device, computer equipment and storage medium
CN109218102A (en) A kind of alarm monitoring method and system
CN112346931A (en) Raspberry pie-based private network service cluster monitoring alarm system, method and medium
CN113537268A (en) Fault detection method and device, computer equipment and storage medium
CN107330771A (en) Task management method and device
CN109617750A (en) A kind of service method for early warning and gateway
CN109584115A (en) Release method, device and the storage medium of associated client
CN114978860A (en) Fault monitoring method and device, electronic equipment and storage medium
CN110428596A (en) Medical electronic apparatus and cloud alarm management system
CN111628903B (en) Monitoring method and monitoring system for transaction system running state
CN117370053A (en) Information system service operation-oriented panoramic monitoring method and system
JP2019139573A (en) Dialog processing system and dialog processing method
CN107368350A (en) Cluster management method, system, storage medium and the electronic equipment of virtual payment machine
CN111145907A (en) Physical examination data processing method, physical examination data processing device, physical examination data processing medium and electronic equipment
CN109981338A (en) Alarm method, device and the storage medium that code pulls
CN110151147A (en) Using health and safety monitoring data as the commerce services platform of entrance
CN109167958A (en) A kind of monitor video call method
CN109144838A (en) Method for monitoring application program and device, computer installation and computer storage medium
CN115630818A (en) Emergency management method and device, electronic equipment and storage medium
CN104363111B (en) A kind of control method and equipment of third party system access

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207