CN110221950A - Processing method, medium, device and the calculating equipment of monitoring data - Google Patents

Processing method, medium, device and the calculating equipment of monitoring data Download PDF

Info

Publication number
CN110221950A
CN110221950A CN201910529110.XA CN201910529110A CN110221950A CN 110221950 A CN110221950 A CN 110221950A CN 201910529110 A CN201910529110 A CN 201910529110A CN 110221950 A CN110221950 A CN 110221950A
Authority
CN
China
Prior art keywords
value
monitored item
monitoring data
data
monitored
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
CN201910529110.XA
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.)
Hangzhou Langhe Technology Co Ltd
Original Assignee
Hangzhou Langhe Technology 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 Hangzhou Langhe Technology Co Ltd filed Critical Hangzhou Langhe Technology Co Ltd
Priority to CN201910529110.XA priority Critical patent/CN110221950A/en
Publication of CN110221950A publication Critical patent/CN110221950A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring 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
    • G06F11/3082Monitoring 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 the data filtering being achieved by aggregating or compressing the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiments of the present invention provide a kind of processing method of monitoring data, it include: the multiple monitoring datas for obtaining multiple monitored devices, each of the multiple monitoring data includes: monitored item title, bookmark name, label value and monitored item value;Determine the first monitored item title, the first bookmark name and the first label value of the first expectation output data;And when the monitored item title of the monitoring data and the first monitored item title are identical, bookmark name is identical as the first label value comprising the label value for corresponding to first bookmark name in first bookmark name and label value, the monitored item value of the monitoring data is subjected to polymerization processing, obtains the monitored item value of the first expectation output data.Embodiments of the present invention additionally provide processing unit, medium and the calculating equipment of a kind of monitoring data.

Description

Processing method, medium, device and the calculating equipment of monitoring data
Technical field
Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to monitoring Processing method, medium, device and the calculating equipment of data.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
With the continuous development of computer technology and Internet technology, for more device distribution formulas work side of same business Formula graduallys mature.In this working method, since number of devices is more, and service provided by distinct device is different, wherein Operation using different, cause the data dimension for being monitored obtained monitoring data for these equipment very high.For convenient for Monitoring data is analyzed and is counted, needs to carry out polymerization processing to the monitoring data of high data dimension, to obtain lower number According to the monitoring data of dimension.
In the prior art, during carrying out polymerization processing to monitoring data, data dimension and polymerization range can not be moved State selection, flexibility ratio is lower, is unsatisfactory for general data aggregate demand.
Summary of the invention
In the present context, embodiments of the present invention are intended to provide a kind for the treatment of method and apparatus of monitoring data.
In the first aspect of embodiment of the present invention, the processing method for providing a kind of monitoring data includes: that acquisition is more Multiple monitoring datas of a monitored device, each of the multiple monitoring data include: monitored item title, bookmark name, Label value and monitored item value;Determine the first monitored item title of the first expectation output data, the first bookmark name, And the first label value;And when the monitored item title of the monitoring data is identical as the first monitored item title, label Title includes to correspond to the label value and described the of first bookmark name in first bookmark name and label value When one label value is identical, the monitored item value of the monitoring data is subjected to polymerization processing, obtains first desired output The monitored item value of data.
In one embodiment of the invention, the above method further include: determine the second monitoring of the second expectation output data Item title, the second bookmark name and the second label value.It is above-mentioned to carry out the monitored item value of the monitoring data at polymerization Reason includes: the label when the second monitored item title monitoring data identical, described as the monitored item title of the monitoring data Title includes first bookmark name, the monitoring data comprising second bookmark name, second bookmark name Label value in label value corresponding to second bookmark name is identical as the second label value and described second marks When label value in label value corresponding to first bookmark name is identical as the first label value, to the monitoring number According to monitored item value polymerize, obtain it is described second expectation output data monitored item value;And to the second phase It hopes that the monitored item value of output data is polymerize, obtains the monitored item value of the first expectation output data.
In another embodiment of the invention, the above-mentioned monitored item value to the monitoring data polymerize, and obtains institute The monitored item value for stating the second expectation output data includes: to determine the first record sheet when getting any monitoring data In whether there is other described monitoring datas identical with the bookmark name of any monitoring data and label value;Such as Fruit is to replace other described described monitoring datas using any monitoring data;If not, in first record sheet It is middle to increase any monitoring data;And the monitored item value to the monitoring data in first record sheet In correspond to any monitored item title monitored item value sum, obtain it is described second expectation output data monitored item take Correspond to the monitored item value of any monitored item title in value.
In another embodiment of the present invention, the above-mentioned monitored item value to the second expectation output data is gathered It closes, the monitored item value for obtaining the first expectation output data includes: to work as to obtain the monitoring of any second expectation output data When item value, determines in the second record sheet and is taken with the presence or absence of the bookmark name and label with any second expectation output data It is worth other identical the second expectation output datas;If so, using any second expectation output data replace it is described other The monitored item value of second expectation output data;If not, it is defeated to increase any second expectation in second record sheet Data out;And it is any to corresponding in the monitored item value of the second expectation output data in second record sheet The monitored item value of monitored item title is summed, and obtains corresponding to institute in the monitored item value of the first expectation output data State the monitored item value of any monitored item title.
In one more embodiment of the present invention, multiple monitoring datas of the above-mentioned multiple monitored devices of acquisition include: receiving The monitoring data that any Service Instance of multiple monitored devices in micro services framework reports.Above-mentioned monitored item title includes: Monitored object and at least one monitor control index.Above-mentioned monitored item value includes: the value and the monitoring pair of the monitor control index The first quantity of elephant.The above method further include: after obtaining the first expectation output data, utilize taking for the monitor control index Value is divided by with first quantity, obtains average value of the monitor control index about the monitored object.
In one more embodiment of the present invention, the above method further include: record the first expectation output data and exist respectively The monitored item value at the first moment and the second moment, second moment are greater than first moment;And when to described second It carves the monitored item value in the monitored item value with first moment corresponding to any monitored item title and asks poor, obtain described appoint One monitored item title is from first moment to the variation at second moment.
In one more embodiment of the present invention, the above method further include: be spaced at predetermined time intervals, to the obtained first phase Hope that output data is sampled and exported.
In the second aspect of embodiment of the present invention, a kind of processing unit of monitoring data is provided, comprising: obtain mould Block, the first determining module and first processing module.Obtain multiple monitoring numbers that module is used to obtain multiple monitored devices According to each of the multiple monitoring data includes: monitored item title, bookmark name, label value and monitored item value. First determining module is used to determine the first monitored item title, the first bookmark name and first of the first expectation output data Label value.And first processing module is used for the monitored item title and the first monitored item title when the monitoring data Identical, bookmark name includes that the label in first bookmark name and label value corresponding to first bookmark name takes When being worth identical as the first label value, the monitored item value of the monitoring data is subjected to polymerization processing, obtains described the The monitored item value of one desired output data.
In one embodiment of the invention, above-mentioned apparatus further includes the second determining module, for determining that the second expectation is defeated Second monitored item title of data, the second bookmark name and the second label value out.First processing module includes: first poly- Zygote module and the second polymerization submodule.First polymerization submodule is used for when the second monitored item title and the monitoring data Identical, the described monitoring data of monitored item title bookmark name include second bookmark name, second bookmark name Comprising first bookmark name, the monitoring data label value in correspond to second bookmark name label value In the second label value identical and described with the second label value corresponding to first bookmark name label value with When the first label value is identical, the monitored item value of the monitoring data is polymerize, it is defeated to obtain second expectation The monitored item value of data out.And second polymerization submodule be used for it is described second expectation output data monitored item value It is polymerize, obtains the monitored item value of the first expectation output data.
In another embodiment of the invention, the first polymerization submodule includes: that the first judging unit is used to take office when acquisition When one monitoring data, determine in the first record sheet with the presence or absence of the bookmark name and mark with any monitoring data Sign other identical described monitoring datas of value.First replacement unit is used for when there are other described described monitoring datas, benefit Other described described monitoring datas are replaced with any monitoring data.First adding unit be used for when there is no it is described its When his monitoring data, increase any monitoring data in first record sheet.And first summation unit For corresponding to the monitoring of any monitored item title in the monitored item value to the monitoring data in first record sheet Item value is summed, and obtains corresponding to any monitored item title in the monitored item value of the second expectation output data Monitored item value.
In another embodiment of the present invention, the second polymerization submodule includes: second judgment unit for any when obtaining When the monitored item value of the second expectation output data, determining in the second record sheet whether there is and any second desired output Other identical the second expectation output datas of the bookmark name and label value of data.Second replacement unit is used for described when existing When other the second expectation output datas, other described the second desired output numbers are replaced using any second expectation output data According to monitored item value.Second adding unit is used for when there is no other described the second expectation output datas, described second Increase any second expectation output data in record sheet.And second summation unit be used for in second record sheet It is described second expectation output data monitored item value in correspond to any monitored item title monitored item value sum, Obtain the monitored item value for corresponding to any monitored item title in the monitored item value of the first expectation output data.
In one more embodiment of the present invention, obtains multiple be monitored that module is specifically used for receiving in micro services framework and set The monitoring data that standby any Service Instance reports.The monitored item title includes: monitored object and at least one monitor control index. The monitored item value includes: the value of the monitor control index and the first quantity of the monitored object.Above-mentioned apparatus further include: Second processing module, for utilizing the value of the monitor control index and described the after obtaining the first expectation output data One quantity is divided by, and average value of the monitor control index about the monitored object is obtained.
In one more embodiment of the present invention, above-mentioned apparatus further include: snapshot module and third processing module.Snapshot module For recording the first expectation output data respectively at the monitored item value at the first moment and the second moment, second moment Greater than first moment.And third processing module is for taking the monitored item at second moment and first moment Monitored item value in value corresponding to any monitored item title asks poor, obtains any monitored item title from first moment To the variation at second moment.
In one more embodiment of the present invention, above-mentioned apparatus further includes output module, right for being spaced at predetermined time intervals The first obtained expectation output data is sampled and is exported.
In the third aspect of embodiment of the present invention, a kind of medium is provided, computer executable instructions are stored with, is referred to It enables when being executed by processor for realizing the processing method of monitoring data described in any one of above-described embodiment.
In the fourth aspect of embodiment of the present invention, provide a kind of calculating equipment, comprising: memory, processor and Store the executable instruction that can be run on a memory and on a processor, realization when processor executes instruction: above-described embodiment Any one of described in monitoring data processing method.
The unity of form of monitoring data is arranged the treating method and apparatus of the monitoring data of embodiment according to the present invention Being includes monitored item title, bookmark name, label value and monitored item value, since different bookmark names can characterize difference Data dimension, can be tieed up from a variety of different data according to the bookmark name and label value of acquired monitoring data Degree carries out polymerization processing to monitoring data, obtain being able to reflect the various operating statuses of monitored device, performance state first Desired output data can satisfy the monitoring demand in various situations, so that operation maintenance personnel carries out multi-angle of view to monitored device Observation, maintenance and management, very flexibly and easily.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows the application of the processing method of the monitoring data of embodiment and its device according to the present invention Scene;
Fig. 2 schematically shows the flow charts of the processing method of monitoring data according to an embodiment of the invention;
Fig. 3 A~3E, which is schematically shown, according to an embodiment of the invention carries out polymerization processing to monitoring data Schematic diagram;
Fig. 4 schematically shows the block diagrams of the processing unit of monitoring data according to an embodiment of the invention;
Fig. 5 schematically shows the block diagram of the processing unit of monitoring data in accordance with another embodiment of the present invention;
Fig. 6 schematically shows the schematic diagram of the computer readable storage medium product of embodiment according to the present invention;
Fig. 7 schematically shows the block diagram of the calculating equipment of embodiment according to the present invention.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention, processing method, medium, device and the calculating for proposing a kind of monitoring data are set It is standby.
Herein, it is to be understood that related term include: monitoring data, monitored item title, bookmark name, Label value, monitored item value, polymerization processing etc..Wherein, monitoring data refers to for specified monitored object, specified monitor control index Be monitored the related data of the accessed performance for describing monitored object, for be supplied to exploitation, operation maintenance personnel into Row reference.Monitored item title can be one or more, and bookmark name can be one or more, monitored item title and monitored item Value corresponds, and bookmark name and label value correspond.Polymerization, which is handled, to be referred to without duplicate summation process, such as will be high The monitoring data of dimension is grouped, is added, to obtain the monitoring data of low dimensional.In addition, any first prime number in attached drawing Amount is used to example rather than limitation and any name are only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
During realizing disclosure design, inventors have found that the prior art is carrying out polymerization processing to monitoring data During, data dimension and polymerization range can not dynamic select, flexibility ratio is lower, is unsatisfactory for general data aggregate demand.
For this purpose, the embodiment of the invention provides a kind for the treatment of method and apparatus of monitoring data, this method comprises: obtaining more Multiple monitoring datas of a monitored device, each of the multiple monitoring data include: monitored item title, bookmark name, Label value and monitored item value;Determine the first monitored item title of the first expectation output data, the first bookmark name, And the first label value;And when the monitored item title of the monitoring data is identical as the first monitored item title, label Title includes to correspond to the label value and described the of first bookmark name in first bookmark name and label value When one label value is identical, the monitored item value of the monitoring data is subjected to polymerization processing, obtains first desired output The monitored item value of data.This programme can be from a variety of different data dimensions to monitoring data according to bookmark name and label value Polymerization processing is carried out, obtains the first expectation output data for meeting demand, very flexibly and easily.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Application scenarios overview
The processing method of the monitoring data of the embodiment of the present invention and its applied field of device are elaborated referring initially to Fig. 1 Scape.
Fig. 1 schematically shows the application of the processing method of the monitoring data of embodiment and its device according to the present invention Scene.It may include terminal device 101,102,103 in application scenarios shown in Fig. 1, network 112, level-one server-side 104, 105 and secondary service end 106~111, different secondary server-sides can provide different business relevant data.
Network 112 between terminal device 101,102,103 and server-side 104,105 to provide Jie of communication link Matter.
Network 112 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..One Grade server-side 104 can be communicated by various wired or wireless communication links with secondary service end 106,107,108, level-one service End 105 can be communicated by various wired or wireless communication links with secondary service end 109,110,111.
Terminal device 101,102,103 can be various electronic equipments, including but not limited to smart phone, individual calculus Machine, tablet computer, smartwatch etc., herein with no restrictions.
Client application (hereinafter referred to as " client with various functions can be installed in terminal device 101,102,103 End ").The function of any client in terminal device 101,102,103 can be supported to decompose discrete multilayer server-side In, for example, customer end A needs to obtain business datum 1~6 when executing function, customer end A can pass through network 112 and level-one Server-side 104,105 is communicated.Level-one server-side 104 can be by accessing secondary service end 106,107,108 respectively to obtain Corresponding business datum 1~3 is obtained, customer end A is then returned to.Level-one server-side 105 can be by accessing secondary service respectively End 109,110,111 is then returned to customer end A to obtain corresponding business datum 4~6.
The framework of said one or multiple client and multiple-stage and split end composition can be referred to as " micro services framework ", it is intended to One large-scale service is split as multiple support micro services, distributed management can be carried out, there is Error Tolerance.According to this The monitoring method and device of open embodiment can be used for supervising the operation conditions of the server-sides at different levels in micro services framework Control, to ensure the normal operation of micro services framework.
It should be understood that the number and server-side of terminal device, network, level-one server-side and secondary service end in Fig. 1 Series it is only schematical.According to actual needs, it can be set to arbitrary number.
Illustrative methods
Below with reference to the application scenarios of Fig. 1, the prison of illustrative embodiments according to the present invention is described with reference to Fig. 2~Fig. 3 E Control the processing method of data.It should be noted that above-mentioned application scenarios are merely for convenience of understanding spirit and principles of the present invention And show, embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be applied to fit Any scene.
Fig. 2 schematically shows the flow charts of the processing method of monitoring data according to an embodiment of the invention.
As shown in Fig. 2, this method includes following operation S201~S203:
S201 is operated, multiple monitoring datas of multiple monitored devices are obtained.
Wherein, each monitoring data in above-mentioned multiple monitoring datas includes: monitored item title, bookmark name, label take Value and monitored item value, monitored item title can be one or more, and bookmark name can be one or more, monitored item Title and monitored item value correspond, and bookmark name and label value can correspond.The monitored item of one monitoring data Title for example can be CPU usage, method call number etc., then corresponding monitored item value indicates and the monitored item title pair The value answered.The bookmark name of one monitoring data indicates one or more data dimensions of the monitoring data, then corresponding mark Signing value indicates value corresponding with the bookmark name.For example, monitored item is entitled " CPU usage " in a monitoring data, Bookmark name includes " cluster " and " server ", and label value includes " A1 " and " a1 ", and monitored item value is " 0.8 ", then the prison Controlling data indicates: the CPU usage of the server a1 in cluster Al is 0.8.
S202 is operated, determines the first monitored item title, the first bookmark name and first of the first expectation output data Label value.
Wherein, the first expectation output data can be configured according to actual needs, indicate the aggregated data for wishing to obtain. First monitored item title indicates that monitored item title of interest, the first bookmark name and the first label value correspond, first Bookmark name indicates data dimension of interest, and corresponding first label value is to indicate that the first bookmark name is corresponding takes with this Value.For example, the first monitored item is entitled " CPU usage " in one first expectation output data, the first bookmark name is " collection Group ", the first label value are " A1 ", then the monitoring content for wishing concern are able to reflect out by the first expected data are as follows: cluster The CPU usage of A1.It indicates only to consider " cluster=A1 " this data dimension when the meaning of monitoring data is " CPU usage " Degree, does not consider further that other data dimensions.
S203 is operated, when the monitored item title of the monitoring data is identical as the first monitored item title, bookmark name Label value and described first comprising corresponding to first bookmark name in first bookmark name and label value are marked When label value is identical, the monitored item value of the monitoring data is subjected to polymerization processing, obtains the first expectation output data Monitored item value.
Wherein, when the monitored item title of a monitoring data is identical as the first monitored item title, bookmark name includes first When label value in bookmark name and label value corresponding to the first bookmark name is identical as the first label value, illustrate this The monitored item title of monitoring data is of interest by the first expectation output data, and includes first in the data dimension of the monitoring data The monitoring data can be known as the dependence monitoring number of the first expectation output data by desired output data data dimension of interest According to.Multiple dependence monitoring datas of first expectation output data are subjected to polymerization processing, the available first desired output number According to monitored item value.For example, the first monitored item entitled " method call number " of the first expectation output data X, the first mark Signature is known as " cluster " and the first label value is " A1 ".In monitoring data 1, the entitled " method call of monitored item Number ", bookmark name include " cluster " and " server ", and label value includes " A1 " and " a1 ", and monitored item value is " 8 ".It is supervising It controls in data 2, monitored item is entitled " method call number ", and bookmark name includes " cluster " and " server ", label value packet " A1 " and " a2 " are included, monitored item value is " 7 ".As can be seen that monitoring data 1 and monitoring data 2 are the first desired output number According to the dependence monitoring data of X, then polymerization output is carried out to monitoring data 1 and monitoring data 2, obtains the first expectation output data X Are as follows: the first monitored item title=" method call number ", the first bookmark name=" cluster ", the first label value=" A1 ", prison Control item value=15.
As it can be seen that method shown in Fig. 2 by the unity of form of monitoring data be set as include monitored item title, bookmark name, Label value and monitored item value, when carrying out polymerization processing to monitoring data, according to monitored item title, bookmark name and mark Label value carries out polymerization processing to monitored item value, can carry out polymerization processing to monitoring data from a variety of different data dimensions, The the first expectation output data for meeting demand is obtained, very flexibly and easily.
In embodiment of the disclosure, monitoring service is applied to according to the processing method of the monitoring data of the embodiment of the present disclosure Device, using micro services framework as monitored object, using each equipment of composition micro services framework as monitored device, by being deployed in Service in each equipment obtains monitoring data and reports to monitoring server.The monitoring server can be micro services framework In an equipment, be also possible to independently of the third party device except micro services framework, herein with no restrictions.Specifically, on It states and obtains multiple monitoring datas of multiple monitored devices and include: receiving any of multiple monitored devices in micro services framework The monitoring data that Service Instance reports.
The above-mentioned process that polymerization processing is carried out for monitoring data is exemplified below.
For example, if a monitoring data 1 indicates that the CPU usage of the machine m1 in computer room idc1 is 0.8, the monitoring Data 1 are represented by following form:
Name:CPU
LableNames:{ idc, machine }
LableValues:{ idc1, m1 }
Value:0.8
Wherein, " name " indicates monitored item title, and " lableNames " indicates that bookmark name, " lableValues " indicate Label value, " value " indicate monitored item value, " CPU " expression " CPU usage ", " idc " expression " computer room ", " machine " It indicates " machine ", " idc1 " expression " computer room idc1 ", " m1 " expression " machine m1 ".
For statistics, the calculating process for being further simplified monitoring data, can will monitored item title and bookmark name it is fixed under Come, referred to as monitor control index metric element (Metric), can be set according to the processing method of the monitoring data of the embodiment of the present disclosure Multiple Metric, a Metric correspond to a kind of monitoring data.For the monitoring data 1 in upper example, corresponding Metric1 Are as follows:
Name:CPU
LableNames:{ idc, machine }
When multiple monitoring datas share the Metricl, each monitoring data except the specified adduction relationship to Metric1 it Outside, since shared information has been stored in Metricl, each monitoring data can only Hold sticker value and monitored item value be It can.According to the present embodiment, the tables of data sample sheet (Sample) of any monitoring data include to the reference of Metric, with it is cited Metric in the one-to-one label value of bookmark name and monitored item value.Then the monitoring data 1 in upper example again can be with table It is shown as:
Metric1
LableValues:{ idc1, m1 }
Value:0.8
In the processing method according to the monitoring data of the embodiment of the present disclosure, the polymerization of monitoring data is handled, essence On can be understood as monitoring data identical for multiple Metric, by its tag name be formed by set in subset carry out Polymerization, please refers to Fig. 3 A.
Fig. 3 A schematically shows the signal according to an embodiment of the invention that polymerization processing is carried out to monitoring data Figure.
As shown in Figure 3A, Metric1 are as follows: name:CPU, lableNames:{ idc, machine }.Metric2 are as follows: Name:CPU, lableNames:{ idc }.Monitoring data 1 corresponding with Metric1, monitoring data 2 and monitoring data 3 are respectively such as Under:
Monitoring data 1:
LableValues={ idc1, m1 }
Value=0.8
Monitoring data 2:
LableValues={ idc1, m2 }
Value=0.7
Monitoring data 3:
LableValues={ idc2, m1 }
Value=0.9
The bookmark name of Metric2 is the subset of the bookmark name of Metric1, can will quote the monitoring number of Metric1 It is the monitoring data of reference Metric2 according to polymerization processing.Specifically, due to the bookmark name of monitoring data 1 and monitoring data 2 " idc " corresponding label value is " idc1 ", carries out polymerization processing to monitoring data 1 and monitoring data 2, is quoted The first expectation output data X:lableValues={ idc1 } of Metric2, value=1.5.Due to the label of monitoring data 3 The corresponding label value of title " idc " is " idc2 ", different from monitoring data 1 and monitoring data 2, then individually to monitoring data 3 carry out polymerization processing, obtain the first expectation output data Y:lableValues={ idc2 } of reference Metric2, value= 0.9.As it can be seen that Metric2 need by monitoring data corresponding with Metric1 polymerization can just obtain, be properly termed as Metric2 according to Rely Metric1.
Therefore, from above-described embodiment it is found that according to the processing method of the monitoring data of the embodiment of the present disclosure by monitoring data It is unified to be indicated by monitored item title, bookmark name, label value and monitored item value, any subset in bookmark name It can be used as a data dimension to be polymerize.As that can be polymerize based on bookmark name " idc " in above-described embodiment, it polymerize Identical label value is not present in the bookmark name " idc " of the monitoring data obtained afterwards, has illustrated the monitoring data of same computer room Polymerization.Similarly the embodiment is also based on bookmark name " machine " and is polymerize, the mark of the monitoring data obtained after polymerization Signature claims " machine " that identical label value is not present, and illustrates that the monitoring data of uniform machinery is polymerize.It is advised according to the polymerization Then, it can realize the polymerization based on various data dimensions to monitoring data according to actual needs, it is defeated to obtain corresponding first expectation Data out, so that operation maintenance personnel is monitored management, adjustment and response from different perspectives, very flexibly and easily.
It in the above example, is that two CPU are occupied by polymerizeing the monitored item value of the obtain first expectation output data X The addition result of rate also needs to unite to the machine number for having reported CPU usage if you need to obtain the average value of CPU usage Meter.For this purpose, Metric3 and Metric4 can be re-defined, Fig. 3 B is please referred to.
Fig. 3 B schematically show it is in accordance with another embodiment of the present invention to monitoring data carry out polymerization processing show It is intended to.
As shown in Figure 3B, Metric3 are as follows: name:hosts, lableNames:{ idc, machine }.Metric4 are as follows: Name:hosts, lableNames:{ idc }.Wherein " hosts " expression " machine quantity ".3B, which is shown, will quote Metric3's The monitoring data that monitoring data polymerization processing is reference Metric4, the process for polymerizeing processing polymerize processing with shown in Fig. 3 A Process logic is identical, and details are not described herein, obtains the first expectation output data X ': lableValues=of reference Metric4 The first expectation output data Y ': lableValues={ idc2 } of { idc1 }, value=2, and reference Metric4, value =1.It is expected that output data X and X ' can be calculated in specified range according to first (is the CPU of designated room idc1) in this example Average occupancy are as follows: 1.5/2=0.75 it is expected that output data Y and Y ' can be calculated in specified range (in this example according to first It is averaged occupancy for the CPU of designated room idc2) are as follows: 0.9/1=0.9.
Under some cases, due to the reporting of monitoring data, polymerization and the acquisition of final result be it is asynchronous, may lead Data dislocation is caused, such as above-mentioned first expectation output data X and Y ' is corresponding, the average result being calculated at this time is mistake 's.To avoid this problem, in one embodiment of the present disclosure, according in the processing method of the monitoring data of the embodiment of the present disclosure The monitored item title of acquired each monitoring data may include: monitored object and at least one monitor control index, correspondingly, prison Controlling item value may include: the value of above-mentioned monitor control index and the first quantity of above-mentioned monitored object.Then implemented according to the disclosure The processing method of the monitoring data of example can also include: to be referred to after obtaining the first expectation output data using the monitoring Target value is divided by with first quantity, obtains average value of the monitor control index about the monitored object.
For example, redefining Metric1 and Metric2 above, Fig. 3 C is please referred to.
Fig. 3 C schematically show it is in accordance with another embodiment of the present invention to monitoring data carry out polymerization processing show It is intended to.
As shown in Figure 3 C, Metric1 are as follows: names:{ CPU, hosts }, lableNames:{ idc, machine }. Metric2 are as follows: names:{ CPU, hosts }, lab1eNames:{ idc }.Monitoring data 1 corresponding with Metricl, monitoring number It is as follows respectively according to 2 and monitoring data 3:
Monitoring data 1:
LableValues={ idc1, m1 }
Value={ 0.8,1 }
Monitoring data 2:
LableValues={ idc1, m2 }
Value={ 0.7,1 }
Monitoring data 3:
LableValues={ idc2, m1 }
Value={ 0.9,1 }
The bookmark name of Metric2 is the subset of the bookmark name of Metric1, can will quote the monitoring number of Metric1 It is the monitoring data of reference Metric2 according to polymerization processing.Specifically, due to the bookmark name of monitoring data 1 and monitoring data 2 " idc " corresponding label value is " idc1 ", carries out polymerization processing to monitoring data 1 and monitoring data 2, is quoted The first expectation output data X:lableValues={ idc1 } of Metric2, value={ 1.5,2 }.Due to monitoring data 3 The corresponding label value of bookmark name " idc " is " idc2 ", different from monitoring data 1 and monitoring data 2, then individually to monitoring Data 3 carry out polymerization processing, obtain the first expectation output data Y:lableValues={ idc2 } of reference Metric2, Value={ 0.9,1 }.
According to the present embodiment, in the course of the polymerization process, it ensure that the atom of monitored item value phase add operation between monitoring data Multiple monitored item values (1.5 and 2 in such as above-mentioned example) are considered as an entirety, ensure that between them by property (Atomic) The binding of meaning (" CPU usage " and " machine quantity " in such as above-mentioned example) avoids data from misplacing and generate abnormal results.
In one embodiment of the present disclosure, the first expectation output data, which can be, is handled by repeatedly polymerization, The second monitoring of the second expectation output data can also be comprised determining that according to the processing method of the monitoring data of the embodiment of the present disclosure Item title, the second bookmark name and the second label value.It is then above-mentioned to polymerize the monitored item value of the monitoring data Processing includes: when the second monitored item title is identical as the monitored item title of a monitoring data, bookmark name of the monitoring data Comprising the second bookmark name, the second bookmark name include the first bookmark name, the monitoring data label value in correspond to institute It states described in corresponding in label value the second label value identical and described with the second label value of the second bookmark name When the label value of first bookmark name is identical as the first label value, determine the first expectation output data dependent on second Desired output data, and the second expectation output data depends on above-mentioned monitoring data.
Therefore, when it is desirable that obtaining the first expectation output data, first the monitored item value of the monitoring data is gathered It closes, obtains the monitored item value of the second expectation output data;Then again to the monitored item of the second expectation output data Value is polymerize, and the monitored item value of the first expectation output data is obtained.In the present embodiment, the first expectation output data There are an interlayers to connect dependence (second expectation output data) between above-mentioned monitoring data, in other embodiments can also be with There are multilayers to indirectly rely on relationship, and it is since relying on source (monitoring data in such as the present embodiment) that polymerization logic is similar Polymerization processing is carried out step by step, finally obtains the first expectation output data.
Above-mentioned multi-step polymerization treatment process is exemplified below, please refers to Fig. 3 D.
Fig. 3 D schematically show it is in accordance with another embodiment of the present invention to monitoring data carry out polymerization processing show It is intended to.
In this example, the monitoring data of acquisition methods grade, the monitoring data of grade needs to obtain example as input in this way The aggregated data of grade, seeervice level, service group grade, dependence is as shown in Figure 3D between them, here the from left to right side of being respectively The Metric of method grade, instance-level, seeervice level and service group grade the monitoring data, wherein " method in monitored item title Summary " indicates " total method quantity ", " agent ", " class ", " epoch ", " group " in bookmark name, " method ", " project ", " service ", " type ", " version " etc. indicate the bookmark name of different data dimension, Respective meaning has no effect on the logic in the technical program, is not unfolded to illustrate herein.
Assuming that the method grade monitoring data of input has 4, the Metric of method grade monitoring data is in the leftmost side side of Fig. 3 D It was shown that showing their own label value and monitored item value example separately below in frame:
Monitoring data A1:
10.180.2.1:8001, UserDao, 13, grp1, getUserList, proj1, user-service, Success, 0.1 }, 6
Monitoring data A2:
10.180.2.1:8001, UserDao, 13, grp1, getUser, proj1, user-service, success, 0.1 }, 5
Monitoring data A3:
10.180.2.1:8001, UserDao, 13, grp1, getUserList, proj1, user-service, fai1, 0.1 }, 1
Monitoring data A4:
10.180.2.1:8011, ProductDao, 13, grp1, getProduct, proj1, prod-service, Success, 0.1 }, 9
Method grade monitoring data as input is the very more and very thin granularity data of quantity, is gathered to them It closes, such as the label value of " agent ", " group ", " project ", " service ", " type " and " version " is identical Monitoring data all put together and carry out the addition of monitored item value, the monitoring data of one group of instance-level can be obtained.Together Reason is identical by the label value of " group ", " project ", " service " and " type " for the monitoring data of instance-level Monitoring data all put together and carry out the addition of monitored item value, the monitoring data of available one group of seeervice level, remaining Similarly.4 method grade monitoring datas above are incited somebody to action, instance-level is first aggregated to, available:
Monitoring data B1:
{ 10.180.2.1:8001, grp1, proj1, user-service, success, 0.1 }, 11
(monitoring data B1 is to be added monitoring data A1 with the monitored item value of monitoring data A2, because of monitoring " agent's ", " group ", " project ", " service ", " type " and " version " of data A1 and monitoring data A2 Label value is all identical)
Monitoring data B2:
{ 10.180.2.1:8001, grp1, proj1, user-service, fai1,0.1 }, 1
Monitoring data B3:
{ 10.180.2.1:8011, grp1, proj1, prod-service, success, 0.1 }, 9
(the monitored item value of monitoring data B2 is equal to the monitored item value of monitoring data A3, the monitored item of monitoring data B3 Value is equal to the monitored item value of monitoring data A4)
On this basis, can further by instance-level monitoring data be polymerized to seeervice level monitoring data (in this example due to Monitoring data is fairly simple, so there is no variations for the monitored item value of monitoring data), it obtains:
Monitoring data C1:
{ grp1, proj1, user-service, success }, 11
Monitoring data C2:
{ grp1, proj1, user-service, fai1 }, 1
Monitoring data C3:
{ grp1, proj1, prod-service, success }, 9
On this basis, it can be further aggregated to service group grade monitoring data, obtained:
Monitoring data D1:
{ grp1, proj1, success }, 20
(the sum of the monitored item value that the monitored item value of monitoring data D1 is equal to monitoring data C1 and monitoring data C3)
Monitoring data D2:
{ grp1, proj1, fai1 }, 1
(the monitored item value that the monitored item value of monitoring data D2 is equal to monitoring data C2)
It can be seen that the meaning of the polymerization process of monitoring data in production environment.In this example, method grade monitors number According to being initial data that Service Instance reports, instance-level monitoring data is used to observe the overall situation of each example, seeervice level prison Control data are that the operating condition (service may include multiple examples) of each service is checked from the angle of service, therefore can be with The case where checking entire service group overall operation by service group grade monitoring data, as this service group produces how many times in total Success, method call of failure etc..In more complicated scene, the monitoring datas at different levels that above-mentioned polymerization obtains are by bookmark name What the label value " success " of " type ", " fai1 ", " timeout " etc. separately obtained, if it is desired to obtain that mark will be corresponded to A metric is then added, such as Fig. 3 E in the instance-level monitoring data that signature claims the different label values of " type " to be fused together It is shown.
Fig. 3 E schematically show it is in accordance with another embodiment of the present invention to monitoring data carry out polymerization processing show It is intended to.
The difference of Fig. 3 E and Fig. 3 D is to increase a Metric ', compared to original instance grade monitoring data " type " is eliminated in the bookmark name of Metric, the Metric '.Corresponding polymerization process and it is above-mentioned similarly, it is no longer superfluous herein It states.From Fig. 3 E as can be seen that from instance-level monitoring data by polymerizeing, the instance-level of available no bookmark name " type " Monitoring data.Therefore, dependence not only can be concatenated linear relationship, and tree-shaped relationship can also be presented.
When polymerization obtains any of the above-described grade of monitoring data, can be polymerize step by step since method grade monitoring data Processing, but such polymerization efficiency is lower.To improve polymerization efficiency, as an optional embodiment, it is desirable that obtaining certain grade When monitoring data, can first search it is that this grade of monitoring data directly or indirectly relies on, apart from nearest its of this grade of monitoring data Monitoring data known to him, is polymerize since the known monitoring data, until obtaining the monitoring data for wishing to obtain.
In the processing method according to the monitoring data of the embodiment of the present disclosure, monitoring data is constantly obtained, can will acquire To monitoring data be constantly put into record sheet, the monitoring data recorded during being put into record sheet according to record sheet can To execute the polymerization process of monitoring data.Specifically, as an optional embodiment, the above-mentioned monitoring to the monitoring data Item value is polymerize, and the monitored item value for obtaining the second expectation output data may include: to work as to get any monitoring When data, determine in the first record sheet with the presence or absence of identical as the bookmark name of any monitoring data and label value Other described monitoring datas.If it is, replacing other described described monitoring datas using any monitoring data. If it is not, then increasing any monitoring data in first record sheet.And in first record sheet It sums in the monitored item value of the monitoring data corresponding to the monitored item value of any monitored item title, obtains described the Correspond to the monitored item value of any monitored item title in the monitored item value of two expectation output datas.
Similarly, since the second expectation output data is similarly monitoring data, the second expectation output data is being got every time When, the second expectation output data that can be will acquire constantly is put into another record sheet, in the process for being put into another record sheet Middle the second expectation output data recorded according to the record sheet can execute the polymerization process of the second expectation output data.Specifically Ground, as another optional embodiment, the above-mentioned monitored item value to the second expectation output data polymerize, and obtains The monitored item value of first expectation output data may include: to work as to obtain the monitored item value of any second expectation output data When, it determines in the second record sheet with the presence or absence of identical as the bookmark name of any second expectation output data and label value Other second expectation output datas.If it is, using any second expectation output data replace it is described other second The monitored item value of desired output data.If it is not, then increasing any second desired output in second record sheet Data.And described second in second record sheet it is expected to correspond to any prison in the monitored item value of output data The monitored item value of control item title is summed, and obtains corresponding in the monitored item value of the first expectation output data described The monitored item value of any monitored item title.
It in embodiment of the disclosure, can also include: every according to the processing method of the monitoring data of the embodiment of the present disclosure Every predetermined time interval, the first obtained expectation output data is sampled and exported.
The example of the CPU usage of machine in above monitoring room is utilized again.Assuming that as the monitoring for relying on source The Metric of data are as follows: name:CPU, lableNames:{ idc, region, machine }.As the first expectation output data Metric are as follows: Name:cpu, labelNames:{ region }.Wherein " region " indicates machine distributed areas, to wish in this example It hopes and checks cpu occupancy situation according to machine distributed areas.In this example, according to the processing method of the monitoring data of the embodiment of the present disclosure Execution side be monitoring center, it is assumed that monitoring center has received a collection of monitoring data, indicates the time from going to from top to bottom below Afterwards, the left side of every a line is the monitoring data 1~4 received, and the right side of every a line is to gather immediately after receiving a monitoring data Close obtained output data 1 '~4 '.
{ idc-a1, regionA, m-1 }, { 0.9,1 } { regionA }, { 0.9,1 }
{ idc-a1, regionA, m-2 }, { 0.8,1 } { regionA }, { 1.7,2 }
{ idc-a2, regionA, m-3 }, { 0.7,1 } { regionA }, { 2.4,3 }
{ idc-a2, regionA, m-3 }, { 0.6,1 } { regionA }, { 2.3,3 }
Wherein, when receiving monitoring data 4, it can be found that the monitoring data 4 and the last monitoring data 3 received Label value is all the same, illustrates monitoring data 3 and monitoring data 4 is then needs in different moments collected identical monitoring data Old monitoring data 3, the output data 4 ' polymerizeing at this time={ 2.4,3 }-are replaced using new monitoring data 4 { 0.7,1 }+{ 0.6,1 }={ 2.3,3 }.
Based on above-mentioned example, the polymerization process of monitoring data can be summarized as following several stages:
1. being grouped according to bookmark name " region " to monitoring data, i.e., the label of bookmark name " region " is taken It is worth identical monitoring data and is divided into one group, in other examples, can be grouped according to other one or more bookmark names, It depends on the needs, herein with no restrictions.
2. every group of monitoring data forms monitoring data stream in acquisition process, for each group of monitoring data stream, Execute following operation:
A) Aggregation Table (such as being named as " SummingDoubleSet ") is safeguarded, for indicating the monitoring number received According to corresponding polymerization result.The monitoring number being relied on is saved in record sheet (map) in the form of key-value pair (key-value) According to latest edition, if key is by bookmark name " idc " in this example, the list of " machine " composition is (since back has been pressed Be grouped according to " region ", without storing bookmark name " region " in key), value is bookmark name " idc ", " machine ", " region " respective label value.
B) (this is poly- for the polymerization result of the monitored item value of all monitoring datas in SummingDoubleSet maintenance map Close the first expectation output data that result is different moments), when being passed to new monitoring data every time, by the prison of the monitoring data It controls item value insertion map or covers the monitored item value of the old identical monitoring data in map.
C) 500ms every to the polymerization result of SummingDoubleSet carries out primary sampling as output, if without update, It is exported without sampling.
Under some cases, need to obtain monitored results within a certain period of time, in one embodiment of the present disclosure, according to The processing method of the monitoring data of the embodiment of the present disclosure can also include: to record the first expectation output data respectively first The monitored item value at moment and the second moment, second moment are greater than first moment;And to second moment and Monitored item value in the monitored item value at first moment corresponding to any monitored item title asks poor, obtains any prison Item title is controlled from first moment to the variation at second moment.
Such as to obtain over 1 hour method call quantity, then it needs the current entitled " method call of monitored item The monitored item value of the monitoring data of quantity " subtract 1 hour before monitored item entitled " method call quantity " monitoring data Monitored item value, obtain the monitored results in this 1 hour.A kind of data maintenance algorithm is needed herein, is guaranteed at any time Monitoring data before taking 1 hour.Such as in the record sheet for the monitoring data that record is got every time, cunning was utilized every 1 minute Dynamic window saves a data snapshot, and sliding window can be dimensioned to 60min in this example, obtains oldest in sliding window Monitoring data, be compared with current newest monitoring data, then demand may be implemented.
Exemplary means
After describing the method for exemplary embodiment of the invention, next, showing with reference to Fig. 4~Fig. 5 the present invention The processing unit of the monitoring data of example property embodiment is described in detail.
Fig. 4 schematically shows the block diagrams of the processing unit of monitoring data according to an embodiment of the invention.
As shown in figure 4, the processing unit 400 of the monitoring data include: obtain module 410, the first determining module 420, with And first processing module 430.
Obtain multiple monitoring datas that module 410 is used to obtain multiple monitored devices.In the multiple monitoring data It include: each monitored item title, bookmark name, label value and monitored item value.
First determining module 420 is used to determine the first monitored item title, the first tag name of the first expectation output data Title and the first label value.
First processing module 430 is used for monitored item title and the first monitored item title phase when the monitoring data Same, bookmark name includes the label value for corresponding to first bookmark name in first bookmark name and label value When identical as the first label value, the monitored item value of the monitoring data is subjected to polymerization processing, obtains described first The monitored item value of desired output data.
Fig. 5 schematically shows the block diagram of the processing unit of monitoring data in accordance with another embodiment of the present invention.
As shown in figure 5, the processing unit 500 of the monitoring data include: obtain module 510, the first determining module 520, with And first processing module 530.Wherein, module 510, the first determining module 520 and first processing module 530 is obtained to have respectively There are identical function corresponding with acquisition module 410, the first determining module 420 and first processing module 430, duplicate part It repeats no more.
In one embodiment of the invention, the processing unit 500 of monitoring data further includes the second determining module 540, is used In the second monitored item title, the second bookmark name and the second label value that determine the second expectation output data.
First processing module 530 includes: the first polymerization submodule 531 and the second polymerization submodule 532.First polymerization submodule Block 531 is used for the mark when the second monitored item title monitoring data identical, described as the monitored item title of the monitoring data Signature claims comprising second bookmark name, second bookmark name to include first bookmark name, the monitoring data Label value in correspond to second bookmark name label value it is identical as the second label value and described second When label value in label value corresponding to first bookmark name is identical as the first label value, to the monitoring The monitored item value of data is polymerize, and the monitored item value of the second expectation output data is obtained.And second polymerization son Module 532 is used to polymerize the monitored item value of the second expectation output data, obtains the first desired output number According to monitored item value.
In another embodiment of the invention, the first polymerization submodule 531 includes: the first judging unit, the first replacement list Member, the first adding unit and the first summation unit.Wherein, the first judging unit, which is used to work as, gets any monitoring number According to when, determine in the first record sheet with the presence or absence of identical with the bookmark name of any monitoring data and label value Other described monitoring datas.First replacement unit is used to utilize any institute when there are other described described monitoring datas It states monitoring data and replaces other described described monitoring datas.First adding unit is used for when there is no other described described monitoring numbers According to when, increase any monitoring data in first record sheet.And first summation unit be used for described the Monitored item value in the monitored item value of the monitoring data in one record sheet corresponding to any monitored item title is asked With, obtain it is described second expectation output data monitored item value in correspond to any monitored item title monitored item take Value.
In another embodiment of the present invention, the second polymerization submodule 532 includes: second judgment unit, the second replacement list Member, the second adding unit and the second summation unit.Wherein, second judgment unit, which is used to work as, obtains any second desired output When the monitored item value of data, determine in the second record sheet with the presence or absence of the tag name with any second expectation output data Claim other the second expectation output datas identical with label value.Second replacement unit is used for when in the presence of other described second expectations When output data, taken using the monitored item that any second expectation output data replaces other the second expectation output datas Value.Second adding unit is used to increase in second record sheet when there is no other described the second expectation output datas Any second expectation output data.And second summation unit be used for the second phase in second record sheet It hopes in the monitored item value of output data the monitored item value for corresponding to any monitored item title sum, obtains described first Correspond to the monitored item value of any monitored item title in the monitored item value of desired output data.
In one more embodiment of the present invention, obtains module 510 and be specifically used for receiving multiple being supervised in micro services framework The monitoring data that any Service Instance of control equipment reports.The monitored item title includes: monitored object and at least one monitoring Index.The monitored item value includes: the value of the monitor control index and the first quantity of the monitored object.Monitoring data Processing unit 500 further include: Second processing module 550, for utilizing the prison after obtaining the first expectation output data The value of control index is divided by with first quantity, obtains average value of the monitor control index about the monitored object.
In one more embodiment of the present invention, the processing unit 500 of monitoring data further include: snapshot module 560 and third Processing module 570.Snapshot module 560 is used to record the first expectation output data respectively at the first moment and the second moment Monitored item value, second moment are greater than first moment.And third processing module 570 be used for described second when It carves the monitored item value in the monitored item value with first moment corresponding to any monitored item title and asks poor, obtain described appoint One monitored item title is from first moment to the variation at second moment.
In one more embodiment of the present invention, the processing unit 500 of monitoring data further includes output module 580, for every Every predetermined time interval, the first obtained expectation output data is sampled and exported.
It should be noted that in device section Example each module/unit/subelement etc. embodiment, the skill of solution Art problem, the function of realization and the technical effect reached respectively with the implementation of corresponding step each in method section Example Mode, the technical issues of solving, the function of realization and the technical effect that reaches are same or like, and details are not described herein.
Exemplary media
After describing the method and apparatus of exemplary embodiment of the invention, next, to the exemplary reality of the present invention Medium that apply mode, processing method for realizing monitoring data is introduced.
The embodiment of the invention provides a kind of media, are stored with computer executable instructions, above-metioned instruction is by processor For realizing the processing method of monitoring data described in any one of above method embodiment when execution.
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product Formula comprising program code, when described program product is run on the computing device, said program code is for making the calculating Equipment executes described in above-mentioned " illustrative methods " part of this specification the prison of various illustrative embodiments according to the present invention Control the operating procedure in the processing method of data.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Fig. 6 schematically shows the schematic diagram of the computer readable storage medium product of embodiment according to the present invention, As shown in fig. 6, the program product 60 of the processing method for realizing monitoring data of embodiment according to the present invention is described, It can be using portable compact disc read only memory (CD-ROM) and including program code, and can calculate equipment, such as It is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language --- and such as Java, C++ etc. further include routine Procedural programming language --- such as " C ", language or similar programming language.Program code can fully exist It executes in user calculating equipment, partly execute on a user device, executing, as an independent software package partially in user Upper side point is calculated to execute or execute in remote computing device or server completely on a remote computing.It is relating to And in the situation of remote computing device, remote computing device can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN) one is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize internet Service provider is connected by internet).
Exemplary computer device
After method, medium and the device for describing exemplary embodiment of the invention, next, introducing according to this hair Bright another exemplary embodiment, processing method for realizing monitoring data calculating equipment.
The embodiment of the invention also provides a kind of calculating equipment, comprising: memory, processor and storage are on a memory simultaneously The executable instruction that can be run on a processor, the processor are realized any in above method embodiment when executing described instruction The processing method of monitoring data described in.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, the calculating of the processing method according to the present invention for realizing monitoring data is set It is standby to include at least at least one processing unit and at least one storage unit.Wherein, the storage unit is stored with journey Sequence code, when said program code is executed by the processing unit, so that the processing unit executes, this specification is above-mentioned " to be shown Operation in the processing method of the monitoring data of various illustrative embodiments according to the present invention described in example property method " part Step.
The processing method for realizing monitoring data of this embodiment according to the present invention is described referring to Fig. 7 Calculating equipment 70.Calculating equipment 70 as shown in Figure 7 is only an example, function to the embodiment of the present invention and should not be made With range band come any restrictions.
It is showed in the form of universal computing device as shown in fig. 7, calculating equipment 70.Calculate equipment 70 component may include But it is not limited to: at least one above-mentioned processing unit 701, at least one above-mentioned storage unit 702, connection different system components (packet Include storage unit 702 and processing unit 701) bus 703.
Bus 703 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 702 may include the readable medium of form of volatile memory, such as random access memory (RAM) 7021 and/or cache memory 7022, it can further include read-only memory (ROM) 7023.
Storage unit 702 can also include program/utility with one group of (at least one) program module 7024 7025, such program module 7024 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Calculating equipment 70 can also be with one or more external equipment 704 (such as keyboard, sensing equipment, bluetooth equipment etc.) Communication can also be enabled a user to communicate with the equipment that calculating equipment 70 interacts with one or more, and/or be set with to calculate The standby 70 any equipment (such as router, modem etc.) that can be communicated with one or more of the other calculating equipment are led to Letter.This communication can be carried out by input/output (I/0) interface 705.Also, calculating equipment 70 can also be suitable by network Orchestration 706 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 706 is communicated by bus 703 with the other modules for calculating equipment 70.It should be understood that Although not shown in the drawings, other hardware and/or software module can be used in conjunction with equipment 70 is calculated, including but not limited to: micro- generation Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited Storage system etc..
It should be noted that although being referred to several units/modules of the processing unit of monitoring data in the above detailed description Or subelement/module, but it is this division be only exemplary it is not enforceable.In fact, implementation according to the present invention The feature and function of mode, two or more above-described units/modules can embody in a units/modules.Instead It, the feature and function of an above-described units/modules can be by multiple units/modules Lai specific with further division Change.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (10)

1. a kind of processing method of monitoring data, comprising:
Obtain multiple monitoring datas of multiple monitored devices, each of the multiple monitoring data include: monitored item title, Bookmark name, label value and monitored item value;
Determine the first monitored item title, the first bookmark name and the first label value of the first expectation output data;And
When the monitored item title of the monitoring data is identical as the first monitored item title, bookmark name includes first mark When label value in signature title and label value corresponding to first bookmark name is identical as the first label value, The monitored item value of the monitoring data is subjected to polymerization processing, obtains the monitored item value of the first expectation output data.
2. according to the method described in claim 1, further include: determine the second expectation output data the second monitored item title, Two bookmark names and the second label value;
It is described by the monitored item value of the monitoring data carry out polymerization processing include:
When the bookmark name of the second monitored item title monitoring data identical, described as the monitored item title of the monitoring data It include the label of first bookmark name, the monitoring data comprising second bookmark name, second bookmark name Label value the second label identical and described with the second label value in value corresponding to second bookmark name takes When label value in value corresponding to first bookmark name is identical as the first label value, to the monitoring data Monitored item value is polymerize, and the monitored item value of the second expectation output data is obtained;And
The monitored item value of the second expectation output data is polymerize, the monitoring of the first expectation output data is obtained Item value.
3. being obtained according to the method described in claim 2, wherein, the monitored item value to the monitoring data polymerize To it is described second expectation output data monitored item value include:
When getting any monitoring data, determining in the first record sheet whether there is and any monitoring data Bookmark name and other identical described monitoring datas of label value;
If so, replacing other described described monitoring datas using any monitoring data;
If not, increasing any monitoring data in first record sheet;And
Monitoring to any monitored item title is corresponded in the monitored item value of the monitoring data in first record sheet Item value is summed, and obtains corresponding to any monitored item title in the monitored item value of the second expectation output data Monitored item value.
4. according to the method described in claim 2, wherein, the monitored item value to the second expectation output data carries out Polymerization, the monitored item value for obtaining the first expectation output data include:
When obtaining the monitored item value of any second expectation output data, determining in the second record sheet whether there is and described Other identical the second expectation output datas of the bookmark name and label value of one second expectation output data;
If so, being taken using the monitored item that any second expectation output data replaces other the second expectation output datas Value;
If not, increasing any second expectation output data in second record sheet;And
Described second in second record sheet it is expected to correspond to any monitoring key name in the monitored item value of output data The monitored item value of title is summed, and obtains corresponding to any prison in the monitored item value of the first expectation output data Control the monitored item value of item title.
5. according to the method described in claim 1, wherein:
The multiple monitoring datas for obtaining multiple monitored devices include: receiving multiple monitored devices in micro services framework The monitoring data that reports of any Service Instance;
The monitored item title includes: monitored object and at least one monitor control index;
The monitored item value includes: the value of the monitor control index and the first quantity of the monitored object;
The method also includes: obtain it is described first expectation output data after, using the monitor control index value with it is described First quantity is divided by, and average value of the monitor control index about the monitored object is obtained.
6. according to the method described in claim 1, further include:
The first expectation output data is recorded respectively at the monitored item value at the first moment and the second moment, second moment Greater than first moment;And
The monitored item for corresponding to any monitored item title in the monitored item value at second moment and first moment is taken Value asks poor, obtains any monitored item title from first moment to the variation at second moment.
7. according to the method described in claim 1, further include: it is spaced at predetermined time intervals, to the first obtained desired output number According to being sampled and exported.
8. a kind of processing unit of monitoring data, comprising:
Obtain module, each packet for obtaining multiple monitoring datas of multiple monitored devices, in the multiple monitoring data It includes: monitored item title, bookmark name, label value and monitored item value;
First determining module, for determine the first monitored item title of the first expectation output data, the first bookmark name and First label value;And
First processing module, the label identical as the first monitored item title for the monitored item title when the monitoring data Title includes to correspond to the label value and described the of first bookmark name in first bookmark name and label value When one label value is identical, the monitored item value of the monitoring data is subjected to polymerization processing, obtains first desired output The monitored item value of data.
9. a kind of medium, be stored with computer executable instructions, described instruction when being executed by processor for realizing:
The processing method of monitoring data as described in any one of claims 1 to 7.
10. a kind of calculating equipment, comprising: memory, processor and storage on a memory and can run on a processor can It executes instruction, the processor is realized when executing described instruction:
The processing method of monitoring data as described in any one of claims 1 to 7.
CN201910529110.XA 2019-06-18 2019-06-18 Processing method, medium, device and the calculating equipment of monitoring data Pending CN110221950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910529110.XA CN110221950A (en) 2019-06-18 2019-06-18 Processing method, medium, device and the calculating equipment of monitoring data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910529110.XA CN110221950A (en) 2019-06-18 2019-06-18 Processing method, medium, device and the calculating equipment of monitoring data

Publications (1)

Publication Number Publication Date
CN110221950A true CN110221950A (en) 2019-09-10

Family

ID=67817766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910529110.XA Pending CN110221950A (en) 2019-06-18 2019-06-18 Processing method, medium, device and the calculating equipment of monitoring data

Country Status (1)

Country Link
CN (1) CN110221950A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008109A (en) * 2019-12-06 2020-04-14 北京奇艺世纪科技有限公司 Monitoring data processing method and device, electronic equipment and storage medium
CN112799905A (en) * 2021-01-05 2021-05-14 杭州涂鸦信息技术有限公司 Software operation monitoring method, system and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878064A (en) * 2017-01-16 2017-06-20 腾讯科技(深圳)有限公司 Data monitoring method and device
CN107896175A (en) * 2017-11-30 2018-04-10 北京小度信息科技有限公司 Collecting method and device
CN108063699A (en) * 2017-12-28 2018-05-22 携程旅游信息技术(上海)有限公司 Network performance monitoring method, apparatus, electronic equipment, storage medium
CN109062699A (en) * 2018-08-15 2018-12-21 郑州云海信息技术有限公司 A kind of resource monitoring method, device, server and storage medium
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878064A (en) * 2017-01-16 2017-06-20 腾讯科技(深圳)有限公司 Data monitoring method and device
CN107896175A (en) * 2017-11-30 2018-04-10 北京小度信息科技有限公司 Collecting method and device
CN108063699A (en) * 2017-12-28 2018-05-22 携程旅游信息技术(上海)有限公司 Network performance monitoring method, apparatus, electronic equipment, storage medium
CN109062699A (en) * 2018-08-15 2018-12-21 郑州云海信息技术有限公司 A kind of resource monitoring method, device, server and storage medium
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008109A (en) * 2019-12-06 2020-04-14 北京奇艺世纪科技有限公司 Monitoring data processing method and device, electronic equipment and storage medium
CN111008109B (en) * 2019-12-06 2023-09-05 北京奇艺世纪科技有限公司 Monitoring data processing method and device, electronic equipment and storage medium
CN112799905A (en) * 2021-01-05 2021-05-14 杭州涂鸦信息技术有限公司 Software operation monitoring method, system and related device

Similar Documents

Publication Publication Date Title
CN109347663B (en) Resource visualization arranging method in OpenStack cloud platform
CN110445665B (en) Electric power communication network alarm association mining method based on improved GSP
US20090313367A1 (en) Methods and systems for predictive change management for access paths in networks
CN106533804A (en) Network operation support system
CN105005274A (en) Managing big data in process control systems
CN107704387B (en) Method, device, electronic equipment and computer readable medium for system early warning
US20210112145A1 (en) System and method for use of virtual or augmented reality with data center operations or cloud infrastructure
KR100865015B1 (en) Realtime unification management information data conversion and monitoring apparatus and method for thereof
CN110221950A (en) Processing method, medium, device and the calculating equipment of monitoring data
CN103581339A (en) Storage resource allocation monitoring and processing method based on cloud computing
CN102112940A (en) Method and apparatus for monitoring performance of power delivery control system
CN106557399A (en) Method and apparatus for the state of storage cluster is presented
WO2021111235A1 (en) Microservices change management and analytics
CN115812298A (en) Block chain management of supply failure
JP2015022396A (en) Operation management device, operation management method and program
CN108667660A (en) The method and apparatus and route system of routing management and business routing
CN109710447A (en) For the method, apparatus of data access, medium and calculate equipment
CN109709839A (en) A kind of biomass electric power plant multistage method for real-time monitoring
CN103281202B (en) The system and its front end rendering method of a kind of browser/server framework
CN114066181A (en) Intelligent state evaluation system for thermal equipment
US11301352B2 (en) Selecting metrics for system monitoring
Gopisetty et al. Evolution of storage management: Transforming raw data into information
CN113468472A (en) Power distribution network fault positioning method and system
US10447769B2 (en) Enhanced time-series data streams for transmission to mobile devices
US10748646B2 (en) Chunk-wise transmission of time-series data to mobile devices

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
CB02 Change of applicant information

Address after: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou NetEase Shuzhifan Technology Co.,Ltd.

Address before: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU LANGHE TECHNOLOGY Ltd.

CB02 Change of applicant information