CN112463783A - Index data monitoring method and device, computer equipment and storage medium - Google Patents
Index data monitoring method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112463783A CN112463783A CN202011412923.XA CN202011412923A CN112463783A CN 112463783 A CN112463783 A CN 112463783A CN 202011412923 A CN202011412923 A CN 202011412923A CN 112463783 A CN112463783 A CN 112463783A
- Authority
- CN
- China
- Prior art keywords
- index
- data
- index data
- monitored
- service
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 153
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000002159 abnormal effect Effects 0.000 claims abstract description 135
- 238000004590 computer program Methods 0.000 claims description 26
- 238000012806 monitoring device Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 7
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2272—Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/80—Database-specific techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to an index data monitoring method, an index data monitoring device, computer equipment and a storage medium. The method comprises the following steps: acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored; acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data; determining abnormal index data according to the index data to be monitored and the historical service data; and monitoring the abnormal index data according to a target preset monitoring mode. By adopting the method, index data does not need to be monitored manually, and the monitoring accuracy of the index data is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for monitoring index data, a computer device, and a storage medium.
Background
At present, with the rapid development of computers, data needs to be monitored, the data monitoring usually monitors current data manually to verify whether the current data is abnormal data, however, the manual monitoring mode is easily affected by subjective consciousness and experience of monitoring personnel, resulting in low data monitoring accuracy.
Disclosure of Invention
Therefore, it is necessary to provide an index data monitoring method, an index data monitoring device, a computer device, and a storage medium, which can improve the monitoring accuracy of index data without manually monitoring the index data.
An index data monitoring method, the method comprising:
acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored;
acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data;
determining abnormal index data according to the index data to be monitored and the historical service data;
and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data includes: acquiring historical index data; acquiring a candidate service index identification set corresponding to historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, and the candidate service index identification comprises corresponding candidate historical service data; determining a target candidate service index identification corresponding to the service index identification to be monitored from the candidate service index identification set; and determining candidate historical service data corresponding to the target candidate service index identifier as historical service data corresponding to the service index identifier to be monitored.
In one embodiment, determining abnormal index data according to the index data to be monitored and historical service data includes: comparing whether the index data to be monitored is the same as the historical service data; and when the index data to be monitored is different from the historical service data, determining the index data to be monitored as abnormal index data.
In one embodiment, the index data monitoring method further includes: acquiring a preset abnormal data threshold; when the abnormal index data exceeds a preset abnormal data threshold value, entering a step of monitoring the abnormal index data according to a target preset monitoring mode; and when the abnormal index data does not exceed the preset abnormal data threshold value, the abnormal index data is not monitored.
In one embodiment, the monitoring the abnormal index data according to a target preset monitoring mode includes: acquiring a candidate preset monitoring mode set; determining a target preset monitoring mode from the candidate preset monitoring mode set; and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, the step of constructing the index data to be monitored includes: acquiring preset null index data; acquiring service data corresponding to a service index identifier to be monitored; and writing the service data into preset null index data to obtain index data to be monitored.
An index data monitoring apparatus, the apparatus comprising:
the index data to be monitored acquisition module is used for acquiring index data to be monitored, and the index data to be monitored comprises a service index identifier to be monitored;
the historical index data acquisition module is used for acquiring historical index data and acquiring historical service data corresponding to the service index identifier to be monitored from the historical index data;
the abnormal index data determining module is used for determining abnormal index data according to the index data to be monitored and the historical service data;
and the abnormal index data monitoring module is used for monitoring the abnormal index data according to a target preset monitoring mode.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored;
acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data;
determining abnormal index data according to the index data to be monitored and the historical service data;
and monitoring the abnormal index data according to a target preset monitoring mode.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored;
acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data;
determining abnormal index data according to the index data to be monitored and the historical service data;
and monitoring the abnormal index data according to a target preset monitoring mode.
According to the index data monitoring method, the index data monitoring device, the computer equipment and the storage medium, index data to be monitored is obtained, and the index data to be monitored comprises a service index identifier to be monitored; acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data; determining abnormal index data according to the index data to be monitored and the historical service data; and monitoring the abnormal index data according to a target preset monitoring mode. Therefore, whether the index data to be monitored is abnormal data or not can be determined by comparing the index data to be monitored with the historical index data, manual monitoring is not needed, subjective consciousness and experience influence caused by manual work are avoided, and therefore the monitoring accuracy of the index data is improved.
Drawings
FIG. 1 is a diagram of an exemplary environment in which a method for index data monitoring may be implemented;
FIG. 2 is a flow diagram illustrating a method for index data monitoring in one embodiment;
FIG. 3 is a block diagram of an index data monitoring apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The index data monitoring method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Specifically, the terminal 102 sends the index data to be monitored to the server 104, the index data to be monitored includes the service index identifier to be monitored, the server 104 obtains the historical index data after receiving the index data to be monitored, obtains the historical service data corresponding to the service index identifier to be monitored from the historical index data, determines the abnormal index data according to the index data to be monitored and the historical service data, and monitors the abnormal index data according to the target preset monitoring mode.
In another embodiment, the terminal 102 obtains index data to be monitored, where the index data to be monitored includes a service index identifier to be monitored, obtains historical index data, obtains historical service data corresponding to the service index identifier to be monitored from the historical index data, determines abnormal index data according to the index data to be monitored and the historical service data, and monitors the abnormal index data according to a target preset monitoring mode.
In one embodiment, as shown in fig. 2, an index data monitoring method is provided, which is described by taking the method as an example applied to the terminal or the server in fig. 1, and includes the following steps:
The index data to be monitored is index data currently being monitored, the index data is an index in a full-text search engine Elastic Search (ES), the ES stores the data in one or more indexes, and the indexes are collections of documents with similar characteristics. In analogy to the traditional relational database domain, an index corresponds to a database in Structured Query Language (SQL), or a data storage schema (schema). And the index is identified by its name (which must be a full lower case character) and the creation, search, update, and deletion of the document are accomplished by referring to this name. Any number of indices may be created in an ES cluster as desired.
The index data to be monitored comprises a service index identifier to be monitored, the service index identifier to be monitored is used for identifying the service monitored at this time, and different services correspond to different service indexes.
In one embodiment, the step of constructing the index data to be monitored comprises: and acquiring preset null index data, acquiring service data corresponding to the service index identifier to be monitored, and writing the service data into the preset null index data to obtain the index data to be monitored.
The step of constructing the index data to be monitored may specifically be to acquire preset empty index data, where the preset empty index data may determine to generate an empty index data in advance according to a service requirement, an actual application scenario, or a product requirement, then search for matched service data according to a service index identifier to be monitored, where the service data may include pre-sale service data, a database, and the like, and finally write the service data into the preset empty index data, thereby obtaining the index data to be monitored.
And 204, acquiring historical index data, and acquiring historical service data corresponding to the service index identifier to be monitored from the historical index data.
The historical index data is index data stored before the execution main body, and the execution main body may store corresponding index data in advance, or may determine monitored index data as historical index data and store the historical index data. Specifically, the historical index data is obtained according to actual service requirements, product requirements or actual application scenarios, and then the historical service data corresponding to the service index identifier to be monitored is searched from the historical index data.
In one embodiment, obtaining historical index data, and obtaining historical service data corresponding to a service index identifier to be monitored from the historical index data includes: the method comprises the steps of obtaining historical index data, obtaining a candidate service index identification set corresponding to the historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, the candidate service index identification comprises corresponding candidate historical service data, determining a target candidate service index identification corresponding to a service index identification to be monitored from the candidate service index identification set, and determining the candidate historical service data corresponding to the target candidate service index identification as the historical service data corresponding to the service index identification to be monitored.
The method comprises the steps of obtaining historical index data, obtaining historical service data corresponding to a service index identifier to be monitored from the historical index data, specifically obtaining the historical index data according to service requirements, actual application scenes or product requirements, and then obtaining a candidate service index identifier set corresponding to the historical index data, wherein the candidate service index identifier set comprises at least one candidate service index identifier, different candidate service indexes correspond to different candidate service index identifiers, each candidate service index identifier comprises corresponding candidate historical service data, and the corresponding relation between the candidate service index identifier and the corresponding candidate historical service data can be determined in advance according to the service requirements, the actual application scenes or the product requirements.
Further, a matched target candidate service index identifier may be determined from the candidate service index identifier set according to the service index identifier to be monitored, and then, according to a relationship between the candidate service index identifier and the candidate service data, the candidate historical service data corresponding to the target candidate service index identifier may be used as the historical service data corresponding to the service index identifier to be monitored.
And step 206, determining abnormal index data according to the index data to be monitored and the historical service data.
Specifically, after the index data to be monitored and the historical service data are obtained, the abnormal index data may be determined according to the index data to be monitored and the historical service data, specifically, whether the index data to be monitored and the historical service data are the same or not may be compared, if the index data to be monitored and the historical service data are different, it is indicated that the index data to be monitored and the historical service data are not matched, and it may be determined that the index data to be monitored is the abnormal index data. If the index data to be monitored is the same as the historical service data, the index data to be monitored can be determined to be normal index data.
If the field value of the same field corresponding to the index data to be monitored is the same as the field value corresponding to the historical service data, the index data to be monitored can be determined to be the same as the historical service data, and the index data to be monitored is determined to be normal index data. On the contrary, if the field value of the same field corresponding to the index to be monitored is different from the field value corresponding to the historical service data, it may be determined that the index data to be monitored is different from the historical service data, and it may be determined that the index data to be monitored is abnormal index data.
In one embodiment, determining abnormal index data according to the index data to be monitored and historical service data includes: and comparing whether the index data to be monitored is the same as the historical service data, and determining that the index data to be monitored is abnormal index data when the index data to be monitored is different from the historical service data.
The abnormal index data is determined according to the index data to be monitored and the historical service data, specifically, whether the index data to be monitored is the same as the historical service data or not is compared, whether field values corresponding to the same fields are the same or not can be compared, if the field values corresponding to the index data to be monitored in the same fields are the same as the field values corresponding to the historical service data, the index data to be monitored can be determined to be the same as the historical service data, and the index data to be monitored is determined to be normal index data. On the contrary, if the field value of the same field corresponding to the index to be monitored is different from the field value corresponding to the historical service data, it may be determined that the index data to be monitored is different from the historical service data, and it may be determined that the index data to be monitored is abnormal index data.
And step 210, when the abnormal index data does not exceed the preset abnormal data threshold, not monitoring the abnormal index data.
Before monitoring, judgment and detection can be carried out on abnormal index data again, misjudgment is avoided, and monitoring accuracy of the index data is improved. Specifically, a preset abnormal data threshold is obtained, and the preset abnormal data threshold can be obtained in advance according to business requirements, product requirements or actual application scenarios. Further, whether the abnormal index data exceeds a preset abnormal data threshold is compared, and if the abnormal index data exceeds the preset abnormal data threshold, it indicates that the abnormal index data is abnormal, and the step 212 may be entered for monitoring. On the contrary, if the abnormal index data does not exceed the abnormal data threshold, it indicates that the abnormal index data is not abnormal, or the abnormal index data does not reach the condition that needs to be monitored, so the abnormal index data does not need to be monitored.
And 212, monitoring the abnormal index data according to a target preset monitoring mode.
The method includes the steps of determining a preset monitoring mode set in advance according to business requirements, product requirements or actual application scenes, wherein the preset monitoring mode can be but is not limited to short message notification, mail notification and the like, obtaining the preset monitoring mode set, determining a target preset monitoring mode from the preset monitoring mode set, wherein the determination mode of the target preset monitoring mode can be customized, the customization can be that a candidate preset monitoring mode is determined from the preset monitoring mode set as the target preset monitoring mode at will, and the target preset monitoring mode can be determined from the preset monitoring mode set according to the business requirements, the actual application scenes or the product requirements. And further, monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, monitoring the abnormal index data according to a target preset monitoring mode includes: and acquiring a candidate preset monitoring mode set, determining a target preset monitoring mode from the candidate preset monitoring mode set, and monitoring abnormal index data according to the target preset monitoring mode.
The method includes the steps of determining a preset monitoring mode set in advance according to business requirements, product requirements or actual application scenes, wherein the preset monitoring mode can be but is not limited to short message notification, mail notification and the like, obtaining the preset monitoring mode set, determining a target preset monitoring mode from the preset monitoring mode set, wherein the determination mode of the target preset monitoring mode can be customized, the customization can be that a candidate preset monitoring mode is determined from the preset monitoring mode set as the target preset monitoring mode at will, and the target preset monitoring mode can be determined from the preset monitoring mode set according to the business requirements, the actual application scenes or the product requirements. The determination method of the target preset monitoring mode may also be that a monitoring priority corresponding to each candidate preset monitoring mode is obtained, the candidate preset monitoring mode with a high monitoring priority is determined as the target preset monitoring mode, and then the abnormal index data is monitored through the target preset monitoring mode.
In the index data monitoring method, index data to be monitored is obtained, wherein the index data to be monitored comprises a service index identifier to be monitored; acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data; determining abnormal index data according to the index data to be monitored and the historical service data; and monitoring the abnormal index data according to a target preset monitoring mode. Therefore, whether the index data to be monitored is abnormal data or not can be determined by comparing the index data to be monitored with the historical index data, manual monitoring is not needed, subjective consciousness and experience influence caused by manual work are avoided, and therefore the monitoring accuracy of the index data is improved.
In a specific embodiment, a method for monitoring index data is provided, which specifically includes the following steps:
1. and acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored.
And 1-1, acquiring preset null index data.
And 1-2, acquiring service data corresponding to the service index identifier to be monitored.
And 1-3, writing the service data into preset null index data to obtain index data to be monitored.
2. And acquiring historical index data, and acquiring historical service data corresponding to the service index identifier to be monitored from the historical index data.
And 2-1, acquiring historical index data.
And 2-2, acquiring a candidate service index identification set corresponding to the historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, and the candidate service index identification comprises corresponding candidate historical service data.
And 2-3, determining a target candidate service index identifier corresponding to the service index identifier to be monitored from the candidate service index identifier set.
And 2-4, determining candidate historical service data corresponding to the target candidate service index identifier as historical service data corresponding to the service index identifier to be monitored.
3. And determining abnormal index data according to the index data to be monitored and the historical service data.
And 3-1, comparing whether the index data to be monitored is the same as the historical service data.
And 3-2, when the index data to be monitored is different from the historical service data, determining the index data to be monitored as abnormal index data.
4. And acquiring a preset abnormal data threshold value.
5. And when the abnormal index data exceeds the preset abnormal data threshold value, the step 7 is carried out.
6. And when the abnormal index data does not exceed the preset abnormal data threshold value, the abnormal index data is not monitored.
7. And monitoring the abnormal index data according to a target preset monitoring mode.
And 7-1, acquiring a candidate preset monitoring mode set.
7-2, determining a target preset monitoring mode from the candidate preset monitoring mode set.
And 7-3, monitoring the abnormal index data according to a target preset monitoring mode. It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 3, there is provided an index data monitoring apparatus 300, comprising: a to-be-monitored index data acquisition module 302, a historical index data acquisition module 304, an abnormal index data determination module 306, and an abnormal index data monitoring module 308, wherein:
the module 302 for acquiring index data to be monitored is configured to acquire index data to be monitored, where the index data to be monitored includes a service index identifier to be monitored.
A historical index data obtaining module 304, configured to obtain historical index data, and obtain historical service data corresponding to the service index identifier to be monitored from the historical index data.
And an abnormal index data determining module 306, configured to determine abnormal index data according to the index data to be monitored and the historical service data.
And the abnormal index data monitoring module 308 is configured to monitor the abnormal index data according to a target preset monitoring mode.
In an embodiment, the historical index data obtaining module 304 is further configured to obtain historical index data, obtain a candidate service index identifier set corresponding to the historical index data, where the candidate service index identifier set includes at least one candidate service index identifier that includes corresponding candidate historical service data, determine a target candidate service index identifier corresponding to a service index identifier to be monitored from the candidate service index identifier set, and determine the candidate historical service data corresponding to the target candidate service index identifier as the historical service data corresponding to the service index identifier to be monitored.
In an embodiment, the abnormal index data determining module 306 is further configured to compare whether the index data to be monitored is the same as the historical service data, and determine that the index data to be monitored is the abnormal index data when the index data to be monitored is different from the historical service data.
In an embodiment, the index data monitoring apparatus 300 is further configured to obtain a preset abnormal data threshold, enter the abnormal index data monitoring module 308 to monitor the abnormal index data according to the target preset monitoring mode when the abnormal index data exceeds the preset abnormal data threshold, and not monitor the abnormal index data when the abnormal index data does not exceed the preset abnormal data threshold.
In an embodiment, the abnormal index data monitoring module 308 is further configured to obtain a candidate preset monitoring mode set, determine a target preset monitoring mode from the candidate preset monitoring mode set, and monitor the abnormal index data according to the target preset monitoring mode.
In an embodiment, the to-be-monitored index data obtaining module 302 is further configured to obtain preset empty index data, obtain service data corresponding to the to-be-monitored service index identifier, and write the service data into the preset empty index data to obtain the to-be-monitored index data.
For specific limitations of the index data monitoring device, reference may be made to the above limitations of the index data monitoring method, which are not described herein again. The modules in the index data monitoring device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing anomaly index data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an index data monitoring method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an index data monitoring method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 4 or 5 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored, acquiring historical index data, acquiring historical service data corresponding to the service index identifier to be monitored from the historical index data, determining abnormal index data according to the index data to be monitored and the historical service data, and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring historical index data; acquiring a candidate service index identification set corresponding to historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, and the candidate service index identification comprises corresponding candidate historical service data; determining a target candidate service index identification corresponding to the service index identification to be monitored from the candidate service index identification set; and determining candidate historical service data corresponding to the target candidate service index identifier as historical service data corresponding to the service index identifier to be monitored.
In one embodiment, the processor, when executing the computer program, further performs the steps of: comparing whether the index data to be monitored is the same as the historical service data; and when the index data to be monitored is different from the historical service data, determining the index data to be monitored as abnormal index data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a preset abnormal data threshold; when the abnormal index data exceeds a preset abnormal data threshold value, entering a step of monitoring the abnormal index data according to a target preset monitoring mode; and when the abnormal index data does not exceed the preset abnormal data threshold value, the abnormal index data is not monitored.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a candidate preset monitoring mode set; determining a target preset monitoring mode from the candidate preset monitoring mode set; and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring preset null index data; acquiring service data corresponding to a service index identifier to be monitored; and writing the service data into preset null index data to obtain index data to be monitored.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored; acquiring historical index data, and acquiring historical service data corresponding to a service index identifier to be monitored from the historical index data; determining abnormal index data according to the index data to be monitored and the historical service data; and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring historical index data; acquiring a candidate service index identification set corresponding to historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, and the candidate service index identification comprises corresponding candidate historical service data; determining a target candidate service index identification corresponding to the service index identification to be monitored from the candidate service index identification set; and determining candidate historical service data corresponding to the target candidate service index identifier as historical service data corresponding to the service index identifier to be monitored.
In one embodiment, the processor, when executing the computer program, further performs the steps of: comparing whether the index data to be monitored is the same as the historical service data; and when the index data to be monitored is different from the historical service data, determining the index data to be monitored as abnormal index data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a preset abnormal data threshold; when the abnormal index data exceeds a preset abnormal data threshold value, entering a step of monitoring the abnormal index data according to a target preset monitoring mode; and when the abnormal index data does not exceed the preset abnormal data threshold value, the abnormal index data is not monitored.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a candidate preset monitoring mode set; determining a target preset monitoring mode from the candidate preset monitoring mode set; and monitoring the abnormal index data according to a target preset monitoring mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring preset null index data; acquiring service data corresponding to a service index identifier to be monitored; and writing the service data into preset null index data to obtain index data to be monitored.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. An index data monitoring method, the method comprising:
acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored;
acquiring historical index data, and acquiring historical service data corresponding to the service index identifier to be monitored from the historical index data;
determining abnormal index data according to the index data to be monitored and the historical service data;
and monitoring the abnormal index data according to a target preset monitoring mode.
2. The method according to claim 1, wherein the obtaining historical index data, and obtaining historical service data corresponding to the service index identifier to be monitored from the historical index data, comprises:
acquiring historical index data;
acquiring a candidate service index identification set corresponding to the historical index data, wherein the candidate service index identification set comprises at least one candidate service index identification, and the candidate service index identification comprises corresponding candidate historical service data;
determining a target candidate service index identifier corresponding to the service index identifier to be monitored from the candidate service index identifier set;
and determining candidate historical service data corresponding to the target candidate service index identifier as historical service data corresponding to the service index identifier to be monitored.
3. The method according to claim 1, wherein the determining abnormal index data according to the index data to be monitored and the historical service data comprises:
comparing whether the index data to be monitored is the same as the historical service data;
and when the index data to be monitored is different from the historical service data, determining that the index data to be monitored is abnormal index data.
4. The method of claim 3, further comprising:
acquiring a preset abnormal data threshold;
when the abnormal index data exceeds the preset abnormal data threshold value, entering a step of monitoring the abnormal index data according to a target preset monitoring mode;
and when the abnormal index data does not exceed the preset abnormal data threshold value, the abnormal index data is not monitored.
5. The method according to claim 1, wherein the monitoring the abnormal index data according to a target preset monitoring mode comprises:
acquiring a candidate preset monitoring mode set;
determining a target preset monitoring mode from the candidate preset monitoring mode set;
and monitoring the abnormal index data according to the target preset monitoring mode.
6. The method according to claim 1, wherein the step of constructing the index data to be monitored comprises:
acquiring preset null index data;
acquiring service data corresponding to the service index identifier to be monitored;
and writing the service data into the preset empty index data to obtain the index data to be monitored.
7. An index data monitoring apparatus, the apparatus comprising:
the index data acquisition module to be monitored is used for acquiring index data to be monitored, wherein the index data to be monitored comprises a service index identifier to be monitored;
a historical index data acquisition module, configured to acquire historical index data, and acquire historical service data corresponding to the service index identifier to be monitored from the historical index data;
the abnormal index data determining module is used for determining abnormal index data according to the index data to be monitored and the historical service data;
and the abnormal index data monitoring module is used for monitoring the abnormal index data according to a target preset monitoring mode.
8. The apparatus according to claim 7, wherein the historical index data obtaining module is further configured to obtain historical index data, obtain a candidate service index identifier set corresponding to the historical index data, where the candidate service index identifier set includes at least one candidate service index identifier that includes corresponding candidate historical service data, determine a target candidate service index identifier corresponding to the service index identifier to be monitored from the candidate service index identifier set, and determine the candidate historical service data corresponding to the target candidate service index identifier as the historical service data corresponding to the service index identifier to be monitored.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011412923.XA CN112463783A (en) | 2020-12-04 | 2020-12-04 | Index data monitoring method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011412923.XA CN112463783A (en) | 2020-12-04 | 2020-12-04 | Index data monitoring method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112463783A true CN112463783A (en) | 2021-03-09 |
Family
ID=74800101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011412923.XA Pending CN112463783A (en) | 2020-12-04 | 2020-12-04 | Index data monitoring method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112463783A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113934592A (en) * | 2021-09-28 | 2022-01-14 | 青岛海尔科技有限公司 | Data processing method and device and storage medium |
CN117520410A (en) * | 2023-11-03 | 2024-02-06 | 华青融天(北京)软件股份有限公司 | Service data processing method, device, electronic equipment and computer readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107705149A (en) * | 2017-09-22 | 2018-02-16 | 平安科技(深圳)有限公司 | Data method for real-time monitoring, device, terminal device and storage medium |
CN110399367A (en) * | 2018-04-12 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Business data processing method, device, computer equipment and storage medium |
CN111159524A (en) * | 2019-12-30 | 2020-05-15 | 北京同邦卓益科技有限公司 | Monitoring method and system, and storage medium |
CN111400130A (en) * | 2020-03-06 | 2020-07-10 | 平安科技(深圳)有限公司 | Task monitoring method and device, electronic equipment and storage medium |
CN111767193A (en) * | 2020-07-01 | 2020-10-13 | 中国银行股份有限公司 | Server data anomaly detection method and device, storage medium and equipment |
-
2020
- 2020-12-04 CN CN202011412923.XA patent/CN112463783A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107705149A (en) * | 2017-09-22 | 2018-02-16 | 平安科技(深圳)有限公司 | Data method for real-time monitoring, device, terminal device and storage medium |
CN110399367A (en) * | 2018-04-12 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Business data processing method, device, computer equipment and storage medium |
CN111159524A (en) * | 2019-12-30 | 2020-05-15 | 北京同邦卓益科技有限公司 | Monitoring method and system, and storage medium |
CN111400130A (en) * | 2020-03-06 | 2020-07-10 | 平安科技(深圳)有限公司 | Task monitoring method and device, electronic equipment and storage medium |
CN111767193A (en) * | 2020-07-01 | 2020-10-13 | 中国银行股份有限公司 | Server data anomaly detection method and device, storage medium and equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113934592A (en) * | 2021-09-28 | 2022-01-14 | 青岛海尔科技有限公司 | Data processing method and device and storage medium |
CN117520410A (en) * | 2023-11-03 | 2024-02-06 | 华青融天(北京)软件股份有限公司 | Service data processing method, device, electronic equipment and computer readable medium |
CN117520410B (en) * | 2023-11-03 | 2024-08-16 | 华青融天(北京)软件股份有限公司 | Service data processing method, device, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445842B (en) | Rule generation method, device, computer equipment and storage medium | |
CN109672741B (en) | Micro-service monitoring method and device, computer equipment and storage medium | |
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN110008118B (en) | Page data testing method and device, computer equipment and storage medium | |
WO2020186786A1 (en) | File processing method and apparatus, computer device and storage medium | |
CN108848142B (en) | Message pushing method and device, computer equipment and storage medium | |
CN111078507A (en) | Data monitoring method, system, computer equipment and storage medium | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN112181569A (en) | Page personalized display method and device, computer equipment and storage medium | |
CN110659297A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN109542764B (en) | Webpage automatic testing method and device, computer equipment and storage medium | |
CN112463783A (en) | Index data monitoring method and device, computer equipment and storage medium | |
CN110659298A (en) | Financial data processing method and device, computer equipment and storage medium | |
CN111078559A (en) | Method, device, medium and computer equipment for extracting function call in java code | |
CN111400578B (en) | Cargo data query method, cargo data query device, computer equipment and storage medium | |
CN115544007A (en) | Label preprocessing method and device, computer equipment and storage medium | |
US12089143B2 (en) | Network search method and apparatus, device and storage medium | |
CN111324375A (en) | Code management method and device, computer equipment and storage medium | |
CN112783866B (en) | Data reading method, device, computer equipment and storage medium | |
CN114003432A (en) | Parameter checking method and device, computer equipment and storage medium | |
CN110569167B (en) | Webpage alarm monitoring method, script error reporting method, device and computer equipment | |
CN110598124B (en) | Numerical attribute mining method, device, computer equipment and storage medium | |
CN111221853A (en) | Medicine list abnormity detection method and device, computer equipment and storage medium | |
CN112579571B (en) | Monitoring data configuration, data monitoring method, device, equipment and storage medium | |
CN115687350A (en) | Index construction method and device, computer equipment and storage medium |
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 |