CN110806960A - Information processing method and device and terminal equipment - Google Patents

Information processing method and device and terminal equipment Download PDF

Info

Publication number
CN110806960A
CN110806960A CN201911060584.0A CN201911060584A CN110806960A CN 110806960 A CN110806960 A CN 110806960A CN 201911060584 A CN201911060584 A CN 201911060584A CN 110806960 A CN110806960 A CN 110806960A
Authority
CN
China
Prior art keywords
monitoring
index
service
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911060584.0A
Other languages
Chinese (zh)
Other versions
CN110806960B (en
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911060584.0A priority Critical patent/CN110806960B/en
Publication of CN110806960A publication Critical patent/CN110806960A/en
Application granted granted Critical
Publication of CN110806960B publication Critical patent/CN110806960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3068Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data format conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides an information processing method, an information processing device and terminal equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index, obtaining an index type of the service monitoring index, carrying out storage format unification processing on the monitoring data corresponding to the service monitoring index according to the index type of the service monitoring index to obtain target monitoring information, pushing the target monitoring information to a middleware of a second terminal, so that the second terminal obtains a client subscribing the target monitoring information, and sending the target monitoring information to the client.

Description

Information processing method and device and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an information processing method, an information processing device and terminal equipment.
Background
With the development of computer technology, more and more types of services are provided by enterprises or platforms in order to facilitate the lives of people.
In the prior art, in order to ensure that a service can normally operate, a service monitoring index needs to be configured for the service, the service monitoring index is monitored to obtain corresponding monitoring data, and the monitoring data is sent to a terminal needing the monitoring data, so that related personnel can determine whether the service monitoring index is abnormal according to the monitoring data stored in the terminal, that is, whether the service is abnormal is judged, and thus, the abnormality can be timely handled.
However, the inventors found that at least the following problems exist in the prior art: because the monitoring data has more types and complex formats, the obtained monitoring data can be stored only after being directly sent to the terminal and processed by the terminal, and the data storage efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an information processing method, an information processing device and terminal equipment, and aims to solve the problem of low data storage efficiency in the prior art.
In a first aspect, an embodiment of the present invention provides an information processing method, including:
acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index;
acquiring the index type of the service monitoring index;
according to the index type of the service monitoring index, performing storage format unification processing on the monitoring data corresponding to the service monitoring index to obtain target monitoring information;
and pushing the target monitoring information to a middleware of the second terminal so that the second terminal acquires a client subscribing the target monitoring information and sends the target monitoring information to the client.
In a possible design, the performing storage format unification processing on the monitoring data corresponding to the service monitoring index according to the index type of the service monitoring index to obtain target monitoring information includes:
classifying the service monitoring indexes to obtain a plurality of index sets, wherein the index sets comprise the service monitoring indexes with the same index types;
and acquiring a standard storage format corresponding to each index set aiming at each index set, and performing storage format unification processing on the monitoring data corresponding to each business monitoring index in the index set according to the standard storage format, wherein the storage format unification processing comprises at least one of unit unification processing, file occupation space unification processing and precision unification processing.
In one possible design, the pushing the target monitoring information to the middleware of the second terminal includes:
packaging the monitoring data in the target monitoring information according to a preset JSON message format to obtain a plurality of JSON messages;
and pushing the JSON message to the middleware.
In one possible design, after the pushing the data packet to the middleware, the method further includes:
acquiring a data transmission log, and acquiring a JSON node from the data transmission log;
acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete or not;
and if the message format of the node message is not complete, retransmitting the monitoring data corresponding to the node message.
In a possible design, after the obtaining the monitoring information corresponding to the service to be monitored, the method further includes:
acquiring a numerical value interval corresponding to the service monitoring index;
and obtaining a monitoring result of the service monitoring index according to the monitoring data and the numerical interval corresponding to the service monitoring index, wherein the monitoring result comprises normal index and abnormal index.
In one possible design, the middleware includes a message queue and a message partition.
In one possible design, the pushing the target monitoring information to the middleware of the second terminal includes:
acquiring target monitoring information corresponding to a preset core service, and taking the target monitoring information corresponding to the core service as the core monitoring information.
And pushing the core monitoring information to a target message queue of a second terminal, wherein the target message queue is a message queue corresponding to the preset core service.
In a second aspect, an embodiment of the present invention provides an information processing apparatus, including:
the information acquisition module is used for acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index;
the type acquisition module is used for acquiring the index type of the service monitoring index;
the information processing module is used for carrying out storage format unification processing on the monitoring data corresponding to the business monitoring index according to the index type of the business monitoring index to obtain target monitoring information;
and the information pushing module is used for pushing the target monitoring information to a middleware of the second terminal so that the second terminal acquires a client subscribing the target monitoring information and sends the target monitoring information to the client.
In one possible design, the information processing module is specifically configured to:
classifying the service monitoring indexes to obtain a plurality of index sets, wherein the index sets comprise the service monitoring indexes with the same index types;
and acquiring a standard storage format corresponding to each index set aiming at each index set, and performing storage format unification processing on the monitoring data corresponding to each business monitoring index in the index set according to the standard storage format, wherein the storage format unification processing comprises at least one of unit unification processing, file occupation space unification processing and precision unification processing.
In one possible design, the information pushing module is specifically configured to:
packaging the monitoring data in the target monitoring information according to a preset JSON message format to obtain a plurality of JSON messages;
and pushing the JSON message to the middleware.
In one possible design, the information pushing module is further configured to: after the data message is pushed to the middleware, acquiring a data transmission log, and acquiring a JSON node from the data transmission log;
acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete or not;
and if the message format of the node message is not complete, retransmitting the monitoring data corresponding to the node message.
In one possible design, the information obtaining module is further configured to: after the monitoring information corresponding to the service to be monitored is obtained, obtaining a numerical value interval corresponding to the service monitoring index;
and obtaining a monitoring result of the service monitoring index according to the monitoring data and the numerical interval corresponding to the service monitoring index, wherein the monitoring result comprises normal index and abnormal index.
In one possible design, the middleware includes a message queue and a message partition.
In one possible design, the information pushing module is specifically configured to:
acquiring target monitoring information corresponding to a preset core service, and taking the target monitoring information corresponding to the core service as the core monitoring information;
and pushing the core monitoring information to a target message queue of a second terminal, wherein the target message queue is a message queue corresponding to the preset core service.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the information processing method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the information processing method according to any one of the first aspect is implemented.
The embodiment of the invention provides an information processing method, an information processing device and terminal equipment, wherein the method performs storage format unification processing on monitoring data corresponding to a service monitoring index according to the index type corresponding to the service monitoring index so as to unify the storage formats of the monitoring data, and pushes target monitoring information subjected to the storage format unification processing to a middleware of a second terminal so that the middleware can send the target monitoring information to a client needing monitoring data in time, so that the data transmission speed is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of an information handling system according to an embodiment of the present invention;
fig. 2 is a first flowchart of an information processing method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of an information processing method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, in order to ensure that a service can normally operate, a corresponding service monitoring index needs to be configured, the service monitoring index is monitored to obtain corresponding monitoring data, and the monitoring data is sent to a terminal needing the monitoring data, so that relevant personnel can determine whether the service monitoring index is abnormal according to the monitoring data stored in the terminal, namely, whether the service is abnormal is judged, and therefore, the abnormality can be timely processed.
Aiming at the problems in the prior art, the application provides an information processing method, an information processing device and a terminal device, the method is applied to a first terminal 101 in an information processing system as shown in fig. 1, the first terminal 101 performs storage format unification processing on monitoring data corresponding to a service monitoring index according to an index type corresponding to the service monitoring index so as to unify the storage format of the monitoring data, and pushes target monitoring information subjected to the storage format unification processing to a middleware of a second terminal 102 so that the middleware can send the target monitoring information to a client 103 needing monitoring data in time, thereby improving the speed of data transmission, and because the target monitoring information is subjected to the storage format unification processing, the target monitoring information can be stored without being processed again no matter the second terminal or the client stores the target monitoring information, the efficiency of data storage is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first flowchart of an information processing method according to an embodiment of the present invention, where an execution main body of the embodiment may be the first terminal in the embodiment shown in fig. 1, and the embodiment is not limited herein. As shown in fig. 2, the method of this embodiment may include:
s201, acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index.
In this embodiment, relevant monitoring software or equipment monitors a service to be monitored in real time or at regular time to obtain corresponding monitoring information, automatically collects the monitoring information, and sends the obtained monitoring information to the first terminal, where the monitoring information includes service monitoring indexes and monitoring data corresponding to each service monitoring index.
The service monitoring indexes corresponding to the service to be monitored are preset by related personnel according to actual requirements, for example, the service monitoring indexes include indexes such as memory occupied by operation, access rate and the like.
The service to be monitored can be a service in a system based on a hybrid cloud platform architecture.
After the monitoring data corresponding to each service monitoring index is obtained, whether the service monitoring index is abnormal or not can be determined according to the monitoring data corresponding to the service monitoring index, and the specific process is as follows: and acquiring a numerical value interval corresponding to the business monitoring index, and acquiring a monitoring result of the business monitoring index according to the monitoring data and the numerical value interval corresponding to the business monitoring index, wherein the monitoring result comprises normal index and abnormal index.
In this embodiment, a numerical interval corresponding to a first service monitoring index is obtained, where the first service monitoring index is any one of service monitoring indexes included in monitoring information, and whether the first service monitoring index is abnormal is determined according to monitoring data and the numerical interval corresponding to the first service monitoring index, so as to obtain a monitoring result corresponding to the first service monitoring index.
The value interval corresponding to the service monitoring index is determined according to the historical monitoring data corresponding to the service monitoring index, for example, a maximum value and a minimum value are determined according to the historical monitoring data, a fluctuation range of the monitoring data corresponding to the service monitoring index is determined according to the minimum value and the maximum value, so that the value interval is obtained, and when the monitoring data is not in the value interval, the possibility that the monitoring data has problems is high.
The specific process of determining whether the first service monitoring index is abnormal according to the monitoring data and the numerical interval corresponding to the first service monitoring index may be: counting the number of the monitoring data which are not in the numerical value interval to obtain a first number, if the first number is larger than a first preset number, determining that the monitoring result is abnormal, and if the first number is smaller than or equal to the first preset number, determining that the monitoring result is normal.
In order to ensure the availability and accuracy of the monitoring data, when the first number is less than or equal to the first preset number, abnormal data in the monitoring data can be removed, that is, the monitoring data which is not in the value interval is removed.
S202, acquiring the index type of the service monitoring index.
In this embodiment, because the types of the service monitoring indexes are various, in order to facilitate the client to obtain, store and utilize the monitoring data, the storage formats of the monitoring data of the same type may be unified, that is, the storage formats of the monitoring data of the same type are unified. When the monitoring data is subjected to storage format unification processing, the index type corresponding to the obtained service monitoring index needs to be utilized.
When the index type of the service monitoring index is obtained, the index type corresponding to the service monitoring index may be obtained from a preset storage location or the monitoring information may also directly include the index type corresponding to the service monitoring index.
S203, according to the index type of the service monitoring index, performing storage format unification processing on the monitoring data corresponding to the service monitoring index to obtain target monitoring information.
In this embodiment, according to the index type of each service monitoring index, storage format unification processing is performed on the monitoring data corresponding to the service monitoring index, so as to obtain target monitoring information, where the target monitoring information includes the service monitoring index and the monitoring data after the unification processing corresponding to the service monitoring index.
And S204, pushing the target monitoring information to the middleware of the second terminal so that the second terminal acquires the client subscribing the target monitoring information and sends the target monitoring information to the client.
In this embodiment, the target monitoring information is pushed to the middleware of the second terminal, and after the middleware in the second terminal acquires the client subscribing to the target monitoring information, the target monitoring information is sent to the client, so that synchronization and sharing of data are realized.
The middleware comprises a message partition and a message queue.
For the non-core service, when the target monitoring information is pushed to the middleware of the second terminal, the target monitoring information corresponding to the non-core service is actually pushed to the message partition in KAFKA. When the target monitoring information is pushed to the message partition, Data Transmission Service (DTS for short) can be used, so that the Data Transmission speed can be increased, and a large amount of system resources are not required to be occupied in the Transmission process.
In order to enable the second terminal to transmit monitoring data to the client in a PULL mode, the second terminal adopts MYSQL as a bridging data pool, flag bits corresponding to all service monitoring indexes are set in a MYSQL database, after the monitoring data corresponding to the service monitoring indexes are obtained, the flag bits corresponding to the service monitoring indexes are 1, otherwise the flag bits are 0, and when target monitoring information needs to be sent to the client, KAFKA transmits the monitoring data to the client in the PULL mode through the MYSQL database.
For the core service, when the target monitoring information is pushed to the middleware of the second terminal, the target monitoring information corresponding to the core service is actually pushed to the dedicated queue corresponding to the core service, and the specific process is as follows: and acquiring target monitoring information corresponding to the preset core service, and taking the target monitoring information corresponding to the core service as the core monitoring information. And pushing the core monitoring information to a target message queue of the second terminal, wherein the target message queue is a message queue corresponding to the preset core service.
In this embodiment, in obtaining the monitoring information corresponding to each service to be monitored, target monitoring information corresponding to a preset core service is obtained from the monitoring information, and the target monitoring information is used as the core monitoring information, and the relevant component is called, so that the component pushes the core monitoring information to a target message queue, that is, to an exclusive message queue thereof, so that the client can consume the core monitoring information in time, the timeliness of data is effectively ensured, and the transmission speed is greatly improved.
The core service may be an important service set by related personnel according to actual requirements or a service with a high requirement on real-time performance.
Optionally, in order to find that the core service is abnormal in time and ensure the continuity of monitoring, a buried point may be set in the core service, a buried point log is collected, whether abnormal log information exists in the buried point log is detected, if abnormal log information exists, alarm information is generated, and the alarm information is sent to a manager or a related terminal, where the alarm information includes an identifier of the abnormal service, so that the manager can handle the problem in time according to the alarm information.
Optionally, the pushing the target monitoring information to the middleware of the second terminal includes:
and packaging the monitoring data in the target monitoring information according to a preset JSON message format to obtain a plurality of JSON messages. And pushing the JSON message to the middleware.
In this embodiment, after the target monitoring information is obtained, the monitoring data corresponding to each service monitoring index in the target monitoring information may be encapsulated according to a preset JSON packet format, so as to generate a JSON packet corresponding to each service monitoring index, and transmit the generated JSON packet to the middleware of the second terminal.
In order to ensure the accuracy, integrity and continuity of the monitoring data, in the process of pushing the JSON message to the middleware of the second terminal, a data transfer log can be obtained, and a JSON node can be obtained from the data transfer log. And acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete or not. And if the message format of the node message is not complete, retransmitting the monitoring data corresponding to the node message.
In this embodiment, in the process of transmitting the JSON packet to the second terminal, a corresponding data transfer log may be generated, each JSON packet may be used as a JSON node, accordingly, the data transfer log includes a plurality of JSON nodes, each JSON node further corresponds to a node packet, a preset JSON packet format is compared with a packet format corresponding to the node packet, whether the packet format corresponding to the node packet is complete is determined, if the packet format of the node packet is incomplete, it indicates that the monitoring data corresponding to the node packet is abnormal, an abnormal breakpoint occurs, and the monitoring data corresponding to the node packet needs to be retransmitted.
Wherein, the node message is actually a JSON message.
Optionally, it may also be determined whether the monitoring data corresponding to the node packet is legal, if not, the monitoring data corresponding to the node also needs to be retransmitted, and when determining whether the monitoring data is legal, it may be determined by determining whether special characters exist in the monitoring data or whether the monitoring data is empty, for example, if the monitoring data should be digital characters, but the monitoring data corresponding to the node packet has special characters such as # and the like, it is determined that the monitoring data corresponding to the node packet is illegal and needs to be retransmitted.
Optionally, after the monitoring data corresponding to the node packet to be retransmitted is determined, retransmission may be performed in batches or one by one.
As can be seen from the above description, according to the index type corresponding to the service monitoring index, the storage format unification processing is performed on the monitoring data corresponding to the service monitoring index, so that the storage format of the monitoring data is unified, and the target monitoring information subjected to the storage format unification processing is pushed to the middleware of the second terminal, so that the middleware can send the target monitoring information to the client that needs to monitor the data in time, thereby increasing the data transmission speed.
In order to facilitate the storage and utilization of the monitoring data by the client, the storage format unification processing may be performed on the monitoring data of the same type, and the process of performing the storage format unification processing on the monitoring data is described in detail below with reference to a specific embodiment.
Fig. 3 is a second flowchart of the speech processing method according to the embodiment of the present invention, as shown in fig. 3, and on the basis of the foregoing embodiment, a detailed description is given to a specific implementation process of performing storage format unification processing on monitoring data, as shown in fig. 3, the method includes:
s301, acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index.
S302, obtaining the index type of the service monitoring index.
S301 to S302 are similar to S201 to S202 in the embodiment of fig. 2, and are not described herein again.
S303, classifying the service monitoring indexes to obtain a plurality of index sets, wherein the index sets comprise the service monitoring indexes with the same index types.
In this embodiment, the service monitoring indexes are classified according to the index type of each service monitoring index, and the service monitoring indexes with the same index type are used as an index set, that is, the index types of the service monitoring indexes included in one index set are the same.
When the service monitoring indexes are the same, the corresponding monitoring data belong to the same data, and the monitoring data can be unified according to the same storage format.
S304, aiming at each index set, obtaining a standard storage format corresponding to the index set, and performing storage format unification processing on the monitoring data corresponding to each business monitoring index in the index set according to the standard storage format, wherein the storage format unification processing comprises at least one of unit unification processing, file occupation space unification processing and precision unification processing.
In this embodiment, a standard storage format corresponding to a first index set is obtained and used as a first storage format, where the first index set is any one index set in each index set, and a storage format corresponding to the first index set is obtained, where the storage format corresponding to the first index set is actually a storage format corresponding to an index type of the first index set. And according to the standard of the first storage format, performing storage format unification processing on the first monitoring data corresponding to each business monitoring index in the first index set, wherein the storage format unification processing comprises unit unification processing, file occupation space unification processing and precision unification processing.
The acquired monitoring data actually exists in the form of a file, that is, the acquired monitoring data actually is a file containing the monitoring data. The storage format indicates a standard for monitoring data storage, such as the accuracy of storage, the unit of storage, and the file usage size, i.e., the file footprint.
The unit unification processing is to unify units of the first monitoring data into a unit corresponding to the first storage format, and for example, if a unit of some first monitoring data is second, a unit of some first monitoring data is minute, and a unit corresponding to the first storage format is second, it is necessary to unify all units of the first monitoring data into second.
The file occupation space unification processing means that sizes of storage spaces occupied by the first monitoring data are unified, that is, storage spaces occupied by first files containing the first monitoring data are unified, for example, a storage space occupied by some first files is 100M, a storage space occupied by some first files is 200M, a file occupation space corresponding to the first storage format is 150M, and then spaces occupied by all the first files need to be unified into 150M.
The precision unification processing means that the precision of each first monitoring data is unified, for example, if the precision of some first monitoring data is two digits after the decimal point, the precision of some first monitoring data is three digits after the decimal point, and the precision corresponding to the first storage format is two digits after the decimal point, the precision of all first monitoring data needs to be unified to two digits after the decimal point.
Optionally, the storage format unification processing further includes data format unification processing, for example, the data format, that is, the file type, of the first file including the first monitoring data is unified, for example, if the data format of some first files is doc format, the data format of some first files is txt format, and the data format corresponding to the first storage format is doc format, the data formats of all first files need to be unified into doc format.
In this embodiment, after the monitoring data with the same index type is subjected to the storage format unification processing, the storage formats of the monitoring data can be unified, so that the second terminal and the client can directly obtain, store and utilize the monitoring data conveniently, and the storage format of the monitoring data does not need to be processed.
S305, pushing the target monitoring information to the middleware of the second terminal so that the second terminal can acquire the client subscribing the target monitoring information and send the target monitoring information to the client.
S305 is similar to S204 in the embodiment of fig. 2, and is not described herein again.
Fig. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, an information processing apparatus 400 according to this embodiment may include: an information acquisition module 401, a type acquisition module 402, a type acquisition module 403, and an information push module 404.
The information obtaining module 401 is configured to obtain monitoring information corresponding to a service to be monitored, where the monitoring information includes a service monitoring index and monitoring data corresponding to the service monitoring index.
A type obtaining module 402, configured to obtain an index type of the service monitoring index.
The information processing module 403 is configured to perform storage format unification processing on the monitoring data corresponding to the service monitoring index according to the index type of the service monitoring index, so as to obtain target monitoring information.
The information pushing module 404 is configured to push the target monitoring information to a middleware of the second terminal, so that the second terminal obtains a client subscribing to the target monitoring information and sends the target monitoring information to the client.
In one possible design, the information processing module is specifically configured to:
and classifying the service monitoring indexes to obtain a plurality of index sets, wherein the index sets comprise the service monitoring indexes with the same index types.
And acquiring a standard storage format corresponding to each index set aiming at each index set, and performing storage format unification processing on the monitoring data corresponding to each business monitoring index in the index set according to the standard storage format, wherein the storage format unification processing comprises at least one of unit unification processing, file occupation space unification processing and precision unification processing.
In one possible design, the information pushing module is specifically configured to:
and packaging the monitoring data in the target monitoring information according to a preset JSON message format to obtain a plurality of JSON messages.
And pushing the JSON message to the middleware.
In one possible design, the information pushing module is further configured to: and after the data message is pushed to the middleware, acquiring a data transmission log, and acquiring a JSON node from the data transmission log.
And acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete or not.
And if the message format of the node message is not complete, retransmitting the monitoring data corresponding to the node message.
In one possible design, the information obtaining module is further configured to: and after acquiring the monitoring information corresponding to the service to be monitored, acquiring a numerical value interval corresponding to the service monitoring index.
And obtaining a monitoring result of the service monitoring index according to the monitoring data and the numerical interval corresponding to the service monitoring index, wherein the monitoring result comprises normal index and abnormal index.
In one possible design, the middleware includes a message queue and a message partition.
In one possible design, the information pushing module is specifically configured to:
and acquiring target monitoring information corresponding to the preset core service, and taking the target monitoring information corresponding to the core service as the core monitoring information.
And pushing the core monitoring information to a target message queue of the second terminal, wherein the target message queue is a message queue corresponding to the preset core service.
The information processing apparatus provided in the embodiment of the present invention can implement the method in the above-described embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 500 provided in the present embodiment includes: at least one processor 501 and memory 502. The processor 501 and the memory 502 are connected by a bus 503.
In a specific implementation process, at least one processor 501 executes computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the information processing method in the above method embodiment.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the information processing method of the embodiment of the method is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An information processing method characterized by comprising:
acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index;
acquiring the index type of the service monitoring index;
according to the index type of the service monitoring index, performing storage format unification processing on the monitoring data corresponding to the service monitoring index to obtain target monitoring information;
and pushing the target monitoring information to a middleware of the second terminal so that the second terminal acquires a client subscribing the target monitoring information and sends the target monitoring information to the client.
2. The method according to claim 1, wherein the performing storage format unification processing on the monitoring data corresponding to the service monitoring index according to the index type of the service monitoring index to obtain target monitoring information includes:
classifying the service monitoring indexes to obtain a plurality of index sets, wherein the index sets comprise the service monitoring indexes with the same index types;
and acquiring a standard storage format corresponding to each index set aiming at each index set, and performing storage format unification processing on the monitoring data corresponding to each business monitoring index in the index set according to the standard storage format, wherein the storage format unification processing comprises at least one of unit unification processing, file occupation space unification processing and precision unification processing.
3. The method of claim 1, wherein pushing the target monitoring information into middleware of the second terminal comprises:
packaging the monitoring data in the target monitoring information according to a preset JSON message format to obtain a plurality of JSON messages;
and pushing the JSON message to the middleware.
4. The method of claim 3, further comprising, after the pushing the datagram to the middleware:
acquiring a data transmission log, and acquiring a JSON node from the data transmission log;
acquiring a node message corresponding to the JSON node, and judging whether the message format of the node message is complete or not;
and if the message format of the node message is not complete, retransmitting the monitoring data corresponding to the node message.
5. The method according to claim 1, wherein after the obtaining of the monitoring information corresponding to the service to be monitored, the method further comprises:
acquiring a numerical value interval corresponding to the service monitoring index;
and obtaining a monitoring result of the service monitoring index according to the monitoring data and the numerical interval corresponding to the service monitoring index, wherein the monitoring result comprises normal index and abnormal index.
6. The method of any of claims 1-5, wherein the middleware comprises a message queue and a message partition.
7. The method according to claim 6, wherein the pushing the target monitoring information to the middleware of the second terminal comprises:
acquiring target monitoring information corresponding to a preset core service, and taking the target monitoring information corresponding to the core service as the core monitoring information;
and pushing the core monitoring information to a target message queue of a second terminal, wherein the target message queue is a message queue corresponding to the preset core service.
8. An information processing apparatus characterized by comprising:
the information acquisition module is used for acquiring monitoring information corresponding to a service to be monitored, wherein the monitoring information comprises a service monitoring index and monitoring data corresponding to the service monitoring index;
the type acquisition module is used for acquiring the index type of the service monitoring index;
the information processing module is used for carrying out storage format unification processing on the monitoring data corresponding to the business monitoring index according to the index type of the business monitoring index to obtain target monitoring information;
and the information pushing module is used for pushing the target monitoring information to a middleware of the second terminal so that the second terminal acquires a client subscribing the target monitoring information and sends the target monitoring information to the client.
9. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the information processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer-executable instruction is stored therein, which when executed by a processor, implements the information processing method according to any one of claims 1 to 7.
CN201911060584.0A 2019-11-01 2019-11-01 Information processing method and device and terminal equipment Active CN110806960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911060584.0A CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911060584.0A CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110806960A true CN110806960A (en) 2020-02-18
CN110806960B CN110806960B (en) 2024-01-26

Family

ID=69500896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911060584.0A Active CN110806960B (en) 2019-11-01 2019-11-01 Information processing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110806960B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432030A (en) * 2020-04-17 2020-07-17 支付宝(杭州)信息技术有限公司 Information publishing method, device, equipment and medium
CN113342606A (en) * 2021-06-07 2021-09-03 平安证券股份有限公司 Data monitoring method, device, equipment and storage medium based on message middleware
CN114168405A (en) * 2021-11-17 2022-03-11 深圳市梦网科技发展有限公司 Data monitoring method and device, terminal equipment and storage medium
CN115051979A (en) * 2022-04-28 2022-09-13 福思(杭州)智能科技有限公司 Monitoring data debugging system, method, vehicle and computer readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005235187A (en) * 2004-01-23 2005-09-02 Matsushita Electric Ind Co Ltd Electronic business form system, electronic business form processing method, business form creation unit and business form processing unit
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
US20140047064A1 (en) * 2012-08-09 2014-02-13 Rockwell Automation Technologies, Inc. Remote industrial monitoring using a cloud infrastructure
CN106921754A (en) * 2017-05-04 2017-07-04 泰康保险集团股份有限公司 The load-balancing method of group system, device, medium and electronic equipment
CN107547589A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data acquisition treatment method and device
CN108984542A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Distribution type data collection method and system
CN109040171A (en) * 2018-06-14 2018-12-18 厦门理工学院 A kind of emergency response system, method, equipment and storage medium
CN109409633A (en) * 2018-08-23 2019-03-01 山东省城市商业银行合作联盟有限公司 Business monitoring and Warning System
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110060118A (en) * 2019-02-27 2019-07-26 浙江执御信息技术有限公司 A kind of order is honoured an agreement full link method for real-time monitoring, device and computer equipment
WO2019184229A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and apparatus for updating variable information, and computer device and storage medium
CN110321273A (en) * 2019-07-09 2019-10-11 政采云有限公司 A kind of business statistical method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005235187A (en) * 2004-01-23 2005-09-02 Matsushita Electric Ind Co Ltd Electronic business form system, electronic business form processing method, business form creation unit and business form processing unit
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
US20140047064A1 (en) * 2012-08-09 2014-02-13 Rockwell Automation Technologies, Inc. Remote industrial monitoring using a cloud infrastructure
CN107547589A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data acquisition treatment method and device
CN106921754A (en) * 2017-05-04 2017-07-04 泰康保险集团股份有限公司 The load-balancing method of group system, device, medium and electronic equipment
CN108984542A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Distribution type data collection method and system
WO2019184229A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and apparatus for updating variable information, and computer device and storage medium
CN109040171A (en) * 2018-06-14 2018-12-18 厦门理工学院 A kind of emergency response system, method, equipment and storage medium
CN109409633A (en) * 2018-08-23 2019-03-01 山东省城市商业银行合作联盟有限公司 Business monitoring and Warning System
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110060118A (en) * 2019-02-27 2019-07-26 浙江执御信息技术有限公司 A kind of order is honoured an agreement full link method for real-time monitoring, device and computer equipment
CN110321273A (en) * 2019-07-09 2019-10-11 政采云有限公司 A kind of business statistical method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432030A (en) * 2020-04-17 2020-07-17 支付宝(杭州)信息技术有限公司 Information publishing method, device, equipment and medium
CN111432030B (en) * 2020-04-17 2023-11-28 支付宝(杭州)信息技术有限公司 Information release method, device, equipment and medium
CN113342606A (en) * 2021-06-07 2021-09-03 平安证券股份有限公司 Data monitoring method, device, equipment and storage medium based on message middleware
CN114168405A (en) * 2021-11-17 2022-03-11 深圳市梦网科技发展有限公司 Data monitoring method and device, terminal equipment and storage medium
CN115051979A (en) * 2022-04-28 2022-09-13 福思(杭州)智能科技有限公司 Monitoring data debugging system, method, vehicle and computer readable storage medium
CN115051979B (en) * 2022-04-28 2023-09-19 福思(杭州)智能科技有限公司 Monitoring data debugging system, method, vehicle and computer readable storage medium

Also Published As

Publication number Publication date
CN110806960B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN110806960B (en) Information processing method and device and terminal equipment
CN110213068B (en) Message middleware monitoring method and related equipment
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN110661659A (en) Alarm method, device and system and electronic equipment
CN112311617A (en) Configured data monitoring and alarming method and system
CN108737218B (en) Automatic verification method and device for message push arrival rate
CN117061072B (en) Message transmission method, device, equipment and storage medium
CN114070755B (en) Virtual machine network flow determination method and device, electronic equipment and storage medium
CN117614797A (en) Data acquisition system and method
CN113407374A (en) Fault processing method and device, fault processing equipment and storage medium
CN116166701B (en) Service data real-time early warning method, device, equipment and storage medium
CN111652681A (en) Receipt processing method, server and computer readable storage medium
CN108830724B (en) Resource data packet processing method and terminal equipment
CN115811483A (en) Network state monitoring method and device, electronic equipment and storage medium
CN113867890A (en) Log collection method, device and medium
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium
CN109379211B (en) Network monitoring method and device, server and storage medium
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN111339174A (en) Data exchange method and device, readable storage medium and data exchange system
CN110543470A (en) Message early warning method and device, storage medium and electronic device
CN115604668B (en) Short message sending and pushing monitoring method, device, equipment and storage medium
CN109284216A (en) The method and terminal device of system monitoring
CN116634587B (en) Method, device and storage medium for recovering data
CN115378831B (en) Monitoring method and device for message middleware server
CN113517989B (en) Resource charging method and device for IaaS cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant