CN111884878A - Data monitoring method based on block chain - Google Patents
Data monitoring method based on block chain Download PDFInfo
- Publication number
- CN111884878A CN111884878A CN202010725166.5A CN202010725166A CN111884878A CN 111884878 A CN111884878 A CN 111884878A CN 202010725166 A CN202010725166 A CN 202010725166A CN 111884878 A CN111884878 A CN 111884878A
- Authority
- CN
- China
- Prior art keywords
- node
- monitoring data
- block chain
- monitoring
- data
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application discloses a data monitoring method and device based on a block chain, wherein the method comprises the following steps: an automatic operation and maintenance monitoring platform is deployed aiming at a block chain network, and an alarm mechanism is preset; determining a hierarchical structure of nodes in a blockchain network; the operation and maintenance monitoring platform distributes scripts aiming at each node according to the hierarchical architecture of the node, and acquires monitoring data of the node through the scripts; when the node basic monitoring data exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value, the operation and maintenance monitoring platform sends an alarm prompt; sending a resource demand request of an operation and maintenance monitoring platform to a cloud server, and receiving a resource bill sent by the cloud server under the condition that a timestamp is in a preset life cycle and the resource demand request passes; and sending the monitoring data to a cloud server according to the received resource bill. The node state can be monitored in real time, the node fault can be responded in time, and the operation of the node is guaranteed.
Description
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for monitoring data based on a blockchain, an electronic device, and a computer-readable medium.
Background
The blockchain technique is a distributed infrastructure and computing approach that utilizes blockchain data structures to verify and store data, utilizes distributed node consensus algorithms to generate and update data, utilizes cryptographic approaches to secure data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data.
When a traditional block chain monitoring platform monitors a block chain, overall resource indexes and service parameters of the system are generally monitored, the whole block chain system needs to be manually checked for abnormalities, and the position of the abnormality cannot be determined in time, so that the subsequent process of processing the abnormalities is delayed, and the processing efficiency is low. If only one server of the block link operation and maintenance monitoring platform database is easy to generate a single point of failure, for example, the server has too high access pressure and does not respond or crash, the service is unavailable, and for example, an accident occurs in the server, which causes all data of the whole database to be lost, and thus a significant safety accident is caused.
Disclosure of Invention
The embodiment of the application provides a data monitoring method based on a block chain, which can monitor the state of each network node in real time, respond to node faults in time and ensure continuous and stable operation of the nodes.
The embodiment of the application provides a data monitoring method based on a block chain, wherein the data monitoring method is realized based on an operation and maintenance monitoring platform, and the method comprises the following steps:
deploying an automatic operation and maintenance monitoring platform aiming at the block chain network, and presetting an alarm mechanism;
determining a hierarchical architecture of each node in the block chain network, wherein the hierarchical architecture is obtained by dividing the hierarchy in the block chain nodes in advance;
the operation and maintenance monitoring platform distributes scripts aiming at each node according to the hierarchical architecture of each node, and acquires monitoring data of the node through the scripts, wherein the monitoring data of the node comprises node basic monitoring data and block chain service monitoring data, and the node basic monitoring data comprises at least one of the CPU utilization rate, the network throughput, the memory switching rate, the disk space size and the read-write rate of a node host; the block chain service monitoring data comprises at least one of the connection number of the node hosts Peers, the block height synchronization number of the node hosts, the response time of the node host ports, the arrangement number of single nodes in the verification nodes, the handle number, the block chain transaction delay number information and the NTP service state;
when the node basic monitoring data exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value, the operation and maintenance monitoring platform sends an alarm prompt; and
sending a resource demand request of the operation and maintenance monitoring platform to a cloud server, wherein the resource demand request comprises resource demand information and a timestamp, and the resource demand information comprises the node identification and the size of a required storage space;
receiving a resource bill sent by the cloud server side when the timestamp is in a preset life cycle and the resource demand request passes;
and sending the monitoring data to the cloud server according to the received resource bill.
In some embodiments, the operation and maintenance monitoring platform distributes scripts for each node according to the hierarchical architecture of each node, and acquires the monitoring data of the node through the scripts, including:
collecting monitoring data of each node by using a Zabbix proxy server connected with the block chain nodes;
and acquiring the monitoring data forwarded by the Zabbix proxy server.
In some embodiments, after obtaining the monitoring data of each node, the method further includes:
determining a data type of the monitoring data, and determining a preset visual element corresponding to the data type;
and displaying the monitoring data on a visual interface by using the preset visual elements.
In some embodiments, Grafana is used to call Zabbix proxy server to obtain the monitoring data of the node, and the monitoring data of the node is displayed.
In some embodiments, the hierarchical architecture comprises: at least one of an application component layer, a data storage layer, an infrastructure layer, a consensus layer, and an intelligent contract layer.
In some embodiments, the deploying an automated operation and maintenance monitoring platform for the blockchain network includes:
realizing batch deployment and automation based on the infrastructure, and adding a monitoring script;
scripts for each node are distributed through the Playbook of the infrastructure, and monitoring data of the node is acquired through the scripts.
In some embodiments, the resource ticket of the cloud server is encrypted with a key generated by the cloud management server.
In some embodiments, there is also provided an electronic device comprising a memory having stored thereon computer-executable instructions and a processor that implements the above-described method when executing the computer-executable instructions on the memory.
In some embodiments, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the above-described method.
The data monitoring method, the data monitoring device, the electronic equipment and the computer storage medium based on the block chain of the embodiment deploy an automatic operation and maintenance monitoring platform for a block chain network, and preset an alarm mechanism; the operation and maintenance monitoring platform distributes scripts aiming at each node according to the hierarchical architecture of each node, acquires monitoring data of the node through the scripts, and sends an alarm prompt when the basic monitoring data of the node exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value; meanwhile, the monitoring data are stored in the cloud server, so that the states of all network nodes can be monitored in real time, the node faults can be responded in time, and the continuous and stable operation of the nodes is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
FIG. 1 is a flow diagram of a method for blockchain-based data monitoring in some embodiments;
FIG. 2 is a block chain-based data monitoring apparatus in some embodiments;
fig. 3 is a schematic structural diagram of a data monitoring apparatus based on a blockchain in other embodiments.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The core advantages of the block chain technology are decentralization, collective maintenance, time sequence data and the like. The monitoring is a very important ring in the internet industrial chain, and the purpose of the monitoring is to prevent the disease from happening in the bud and later. The main purpose of building the block chain operation and maintenance monitoring platform is to monitor the health state of the own node in real time, respond to the node fault in time and ensure the continuous and stable operation of the node so as to reduce the economic loss caused by the node fault. By building the block chain operation and maintenance monitoring platform, the data are visually displayed by different nodes in a block chain network in a monitoring mode, so that the basic monitoring and service monitoring service of each node is provided for operation and maintenance personnel, the process time from the occurrence of node faults to response processing is minimized by monitoring and alarming, and the operation and maintenance management efficiency of the operation and maintenance personnel on the network nodes is improved. Fig. 1 is a schematic flowchart of a block chain-based data monitoring method according to the present application, and as shown in fig. 1, the block chain-based data monitoring method includes:
In this embodiment, an operation and maintenance monitoring platform is deployed in a manner of a block chain batch network node host, and the platform can automatically install a Zabbix proxy server, thereby greatly shortening deployment time. In addition, monitoring items can be customized, and data collection of different monitored network nodes can be completed. Meanwhile, an alarm mechanism is set for the deployed automatic operation and maintenance monitoring platform, and different prompt modes can be set according to alarm levels in an alarm mode. The Zabbix proxy server is an open-source enterprise-level monitoring tool, provides distributed system monitoring and network monitoring functions based on a web page, can monitor various network parameters, and ensures the safe operation of an operation and maintenance monitoring platform.
And step 102, determining a hierarchical architecture of each node in the block chain network, wherein the hierarchical architecture is obtained by dividing the hierarchy in the block chain nodes in advance.
In this embodiment, the hierarchy of each node in the block chain network may be divided in advance to obtain the hierarchy architecture corresponding to each node.
In particular implementations, the hierarchical partitioning of the blockchain nodes may be performed according to a blockchain infrastructure design, for example, the hierarchical architecture may include any one or a combination of any two of an application component layer, a data storage layer, an infrastructure layer, a consensus layer, and an intelligent contract layer. The application component layer is a component layer for providing network service and authentication service for the blockchain, and may include, but is not limited to, a routing, a CA (Certificate Authority) authentication center, and a dataode data center; the data storage layer mainly comprises storage middleware such as a MySQL database, a levelDB database, a TcaplussDB database and the like and block data in a block chain; the infrastructure layer refers to a facility component providing an infrastructure function for the block chain, and may specifically include but is not limited to a CPU, a memory, and a disk; the consensus layer is one of core technologies of the block chain, and mainly comprises a consensus algorithm and a consensus mechanism, specifically comprises a POW workload certification, a POS rights and interests certification, a Byzantine fault-tolerant algorithm and other consensus mechanisms, and the consensus mechanism can enable the block chain nodes to efficiently achieve consensus on the validity of the block data in a decentralized block chain network; the intelligent contract layer is a programmable basis of the blockchain, and can include but is not limited to various scripts, codes, algorithm mechanisms and intelligent contracts, so that the codes can be embedded into the blockchain or a token, a customizable intelligent contract is realized, and the intelligent contract can be automatically executed without a third party under the condition of reaching a preset constraint condition.
103, the operation and maintenance monitoring platform distributes scripts for each node according to the hierarchical architecture of each node, and acquires monitoring data of the node through the scripts, wherein the monitoring data of the node comprises node basic monitoring data and block chain service monitoring data, and the node basic monitoring data comprises at least one of the CPU utilization rate, the network throughput, the memory switching rate, the disk space size and the read-write rate of a node host; the block chain service monitoring data comprises at least one of the connection number of the node hosts Peers, the block height synchronization number of the node hosts, the response time of the node host ports, the arrangement number of single nodes in the verification nodes, the handle number, the block chain transaction delay number information and the NTP service state.
In this embodiment, the operation and maintenance monitoring platform writes Role roles based on infrastructure to implement batch deployment and automation, automatically distinguishes between centros and Ubuntu systems, sends a monitoring item configuration instruction to Zabbix host server through a configuration interface, and generates a corresponding monitoring script according to the monitoring item configuration instruction. Scripts for monitoring the nodes are distributed through the playlist of the infrastructure, and monitoring data is acquired through the scripts. Monitoring data is obtained and alarms are set by writing a custom template of Zabbix.
The operation and maintenance monitoring platform of this embodiment not only monitors the basic items of the node host, but also monitors the relevant services of the area nodes. Therefore, the node monitoring item is divided into two aspects: on one hand, a node basis monitoring item and on the other hand, a block chain service monitoring item. The operation and maintenance personnel can more intuitively know the state of each node through the monitoring items, and the development and the test of the project by the test personnel are facilitated.
In actual operation, regarding the basic monitoring content of the node host of the monitoring platform, how the CPU of the node host works, its usage rate, how many memories need to be occupied, usage proportion of the disk, consumption of network traffic, IOPS of the disk, and context switching per second. And confirming the monitoring items of the node host bases, and sending out an alarm prompt when the node base monitoring data exceeds a first alarm threshold value.
On the other hand, besides the basic monitoring of the node host, there are also monitoring items related to node traffic. Such as: the node host Peers connection number, the node host block height synchronization number, the node host RPC (Remote Procedure call protocol) port response time, the platform on process state, the single node arrangement number in the verification node, the handle number, the block chain transaction pending number information, the NTP (Network time protocol) service state, the peripheral application state information, and the like. Confirming the monitoring items of the node services, and sending an alarm prompt when the monitoring data of the node block chain services exceed a second alarm threshold value.
And 104, when the node basic monitoring data exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value, the operation and maintenance monitoring platform sends an alarm prompt.
In this embodiment, when the node basic monitoring data exceeds a first alarm threshold, or the block chain service monitoring data exceeds a second alarm threshold, and when the node basic monitoring data exceeds the first alarm threshold and the block chain service monitoring data exceeds the second alarm threshold, the operation and maintenance monitoring platform sends an alarm prompt.
Specifically, the alarm prompting modes can be set respectively according to the levels of alarms, and for example, the alarm prompting modes can be divided into a mail alarm and a telephone alarm general alarm, namely, an alarm mail is sent to an alarm mailbox only through the mail alarm. And (4) serious alarm, namely sending an alarm mail to an alarm mail box and alarming to a second-level operation and maintenance staff mail box, informing an operator on duty through a telephone alarm, and informing an operator on duty by the telephone when the telephone alarm does not cause the attention of the operator on duty.
And 105, sending a resource demand request of the operation and maintenance monitoring platform to a cloud server, wherein the resource demand request comprises resource demand information and a timestamp, and the resource demand information comprises the node identification and the size of the storage space required by the node identification.
In this embodiment, the operation and maintenance monitoring platform stores the acquired monitoring data to the cloud server. Firstly, a resource demand request is sent to a cloud server, a timestamp and resource demand information are added to the request, and the resource demand information comprises the node identification and the size of the storage space required by the node identification. In an actual process, the operation and maintenance monitoring platform may set a time difference between the timestamp and the current authentication time according to the monitoring data and an actual condition of the cloud server. After the cloud server receives the sent resource demand request, whether the resource demand request information is within the validity period or not is judged according to the timestamp and the lifetime, and if the validity period does not pass yet, the cloud server can respond to the resource demand request, so that the safety performance of the whole operation and maintenance monitoring platform and the cloud server is ensured.
And 106, receiving the resource bill sent by the cloud server side when the time stamp is in the preset life cycle and the resource demand request passes.
In this embodiment, the resource ticket is used to represent real-time monitoring data and historical monitoring data of the cloud server, and may be stored specifically based on a MySQL database and an ElasticSearch search server, for example, MySQL stores available monitoring items and trigger items. Historical data stored in the ElasticSearch can be stored for a long time for later query if cost is not considered. The operation and maintenance monitoring platform realizes high availability of the block chain operation and maintenance monitoring platform in a MySQL master-slave and elastic search cluster mode, and the stability of the block chain operation and maintenance monitoring platform is greatly improved.
And when the time stamp is in a preset life cycle and the resource demand request passes, the cloud server side sends the resource bill to the operation and maintenance monitoring platform so as to facilitate the operation and maintenance monitoring platform to store the monitoring data.
And step 107, sending the monitoring data to the cloud server according to the received resource bill.
In order to ensure the safety and reliability of data, at least two or more servers are required to be deployed to store monitoring data, that is, data needs to be copied and deployed in multiple different servers, in this embodiment, a mode of cloud server end storage is adopted to enable a large number of servers to work in a cooperative manner, service deployment and activation are conveniently performed, system faults are quickly discovered and recovered, and reliable operation of large-scale operation and maintenance monitoring is realized through an automatic and intelligent means.
In the data monitoring method based on the block chain in the embodiment, an automatic operation and maintenance monitoring platform is deployed for a block chain network, and an alarm mechanism is preset; the operation and maintenance monitoring platform distributes scripts aiming at each node according to the hierarchical architecture of each node, acquires monitoring data of the node through the scripts, and sends an alarm prompt when the basic monitoring data of the node exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value; meanwhile, the monitoring data are stored in the cloud server, so that the states of all network nodes can be monitored in real time, the node faults can be responded in time, and the continuous and stable operation of the nodes is guaranteed.
In some embodiments, after obtaining the monitoring data of each node based on the hierarchical architecture, the method further includes:
determining a data type of the monitoring data, and determining a preset visual element corresponding to the data type;
and displaying the monitoring data on a visual interface by using the preset visual elements.
In order to enable a user to more intuitively acquire monitoring data, the monitoring data may be displayed after the monitoring data of each node in the block chain nodes is acquired. Specifically, a data type of the monitoring data may be determined, and a preset visual element corresponding to the data type may be determined, so that the monitoring data is displayed on a visual interface by using the corresponding preset visual element. For example, whether the monitoring data is within a preset normal range or not can be judged, and if the current monitoring data is within the preset normal range, the current monitoring data is displayed in green; if the current monitoring data is located outside the preset normal range, the current monitoring data is displayed in a red-bold mode, so that a user can visually and conveniently see the monitoring data with the possibility of abnormal conditions.
Further, in some embodiments, the Zabbix proxy server is called by Grafana to obtain the monitoring data of the node, and the monitoring data of the node is displayed.
In some embodiments, the resource ticket of the cloud server is encrypted with a key generated by the cloud management server. In this way the security is further ensured.
Modules, as referred to in this application, are a series of computer program instruction segments that can perform particular functions. Fig. 2 is a schematic block diagram of a block chain-based data monitoring apparatus according to the present application, and as shown in fig. 2, the block chain-based data monitoring apparatus may be divided into: the system comprises a deployment module 201, an architecture determination module 202, a monitoring data acquisition module 203, an alarm module 204 and a storage module 205. The functions or operation steps implemented by the modules are similar to those described above and are not described in detail here. In an exemplary manner, the first and second electrodes are,
a deployment module 201, configured to deploy an automated operation and maintenance monitoring platform for the blockchain network, and preset an alarm mechanism;
an architecture determining module 202, configured to determine a hierarchical architecture of each node in the blockchain network, where the hierarchical architecture is obtained by dividing hierarchies in the blockchain nodes in advance;
a monitoring data obtaining module 203, configured to distribute a script for each node according to a hierarchical architecture of each node, and obtain monitoring data of the node through the script, where the monitoring data of the node includes node basic monitoring data and block chain service monitoring data, and the node basic monitoring data includes at least one of a CPU utilization rate of a node host, a network throughput, a memory switching rate, a disk space size, and a read-write rate; the block chain service monitoring data comprises at least one of the connection number of the node hosts Peers, the block height synchronization number of the node hosts, the response time of the node host ports, the arrangement number of single nodes in the verification nodes, the handle number, the block chain transaction delay number information and the NTP service state;
an alarm module 204, configured to send an alarm prompt by the operation and maintenance monitoring platform when the node basic monitoring data exceeds a first alarm threshold and/or the block chain service monitoring data exceeds a second alarm threshold; and
the storage module 205 is configured to send a resource demand request of the operation and maintenance monitoring platform to a cloud server, where the resource demand request includes resource demand information and a timestamp, and the resource demand information includes the node identifier and a size of a storage space required by the node identifier;
receiving a resource bill sent by the cloud server side when the timestamp is in a preset life cycle and the resource demand request passes;
and sending the monitoring data to the cloud server according to the received resource bill.
The functions or operation steps implemented by the modules are similar to those of the above method, and are specifically referred to corresponding parts, which are not described in detail herein.
Fig. 3 is a schematic structural diagram of a data monitoring apparatus based on a block chain according to another embodiment of the present application. The blockchain-based data monitoring apparatus 4000 includes a processor 41, and may further include an input device 42, an output device 43, and a memory 44. The input device 42, the output device 43, the memory 44, and the processor 41 are connected to each other via a bus.
The memory includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), which is used for storing instructions and data.
The input means are for inputting data and/or signals and the output means are for outputting data and/or signals. The output means and the input means may be separate devices or may be an integral device.
The processor may include one or more processors, for example, one or more Central Processing Units (CPUs), and in the case of one CPU, the CPU may be a single-core CPU or a multi-core CPU. The processor may also include one or more special purpose processors, which may include GPUs, FPGAs, etc., for accelerated processing.
The memory is used to store program codes and data of the network device.
The processor is used for calling the program codes and data in the memory and executing the steps in the method embodiment. Specifically, reference may be made to the description of the method embodiment, which is not repeated herein.
It will be appreciated that fig. 3 only shows a simplified design of the motion recognition means. In practical applications, the motion recognition devices may also respectively include other necessary components, including but not limited to any number of input/output devices, processors, controllers, memories, etc., and all motion recognition devices that can implement the embodiments of the present application are within the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the division of the unit is only one logical function division, and other division may be implemented in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. The shown or discussed mutual coupling, direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a read-only memory (ROM), or a Random Access Memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a Digital Versatile Disk (DVD), or a semiconductor medium, such as a Solid State Disk (SSD).
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A data monitoring method based on a block chain is realized based on an operation and maintenance monitoring platform, and is characterized in that the method comprises the following steps:
deploying an automatic operation and maintenance monitoring platform aiming at the block chain network, and presetting an alarm mechanism;
determining a hierarchical architecture of each node in the block chain network, wherein the hierarchical architecture is obtained by dividing the hierarchy in the block chain nodes in advance;
the operation and maintenance monitoring platform distributes scripts aiming at each node according to the hierarchical architecture of each node, and acquires monitoring data of the node through the scripts, wherein the monitoring data of the node comprises node basic monitoring data and block chain service monitoring data, and the node basic monitoring data comprises at least one of the CPU utilization rate, the network throughput, the memory switching rate, the disk space size and the read-write rate of a node host; the block chain service monitoring data comprises at least one of the connection number of the node hosts Peers, the block height synchronization number of the node hosts, the response time of the node host ports, the arrangement number of single nodes in the verification nodes, the handle number, the block chain transaction delay number information and the NTP service state;
when the node basic monitoring data exceeds a first alarm threshold value and/or the block chain service monitoring data exceeds a second alarm threshold value, the operation and maintenance monitoring platform sends an alarm prompt; and
sending a resource demand request of the operation and maintenance monitoring platform to a cloud server, wherein the resource demand request comprises resource demand information and a timestamp, and the resource demand information comprises the node identification and the size of a required storage space;
receiving a resource bill sent by the cloud server side when the timestamp is in a preset life cycle and the resource demand request passes;
and sending the monitoring data to the cloud server according to the received resource bill.
2. The method according to claim 1, wherein the operation and maintenance monitoring platform distributes scripts for each node according to the hierarchical architecture of each node, and acquires the monitoring data of the node through the scripts, and the method includes:
collecting monitoring data of each node by using a Zabbix proxy server connected with the block chain nodes;
and acquiring the monitoring data forwarded by the Zabbix proxy server.
3. The block link point monitoring method according to claim 1, further comprising, after the obtaining the monitoring data of each node:
determining a data type of the monitoring data, and determining a preset visual element corresponding to the data type;
and displaying the monitoring data on a visual interface by using the preset visual elements.
4. The block link point monitoring method according to claim 2 or 3,
and calling a Zabbix proxy server by utilizing Grafana to acquire the monitoring data of the node and displaying the monitoring data of the node.
5. The method of claim 1, wherein the hierarchical architecture comprises: at least one of an application component layer, a data storage layer, an infrastructure layer, a consensus layer, and an intelligent contract layer.
6. The method according to claim 1, wherein the deploying an automated operation and maintenance monitoring platform for the blockchain network comprises:
realizing batch deployment and automation based on the infrastructure, and adding a monitoring script;
and distributing scripts aiming at each node through an executable Playbook, and acquiring monitoring data of the node through the scripts.
7. The method of claim 1, wherein the resource ticket of the cloud server is encrypted with a key generated by a cloud management server.
8. A data monitoring method based on a block chain is characterized by comprising the following steps:
the deployment module is used for deploying an automatic operation and maintenance monitoring platform aiming at the block chain network and presetting an alarm mechanism;
the architecture determining module is used for determining a hierarchical architecture of each node in the block chain network, wherein the hierarchical architecture is obtained by dividing hierarchies in the block chain nodes in advance;
the monitoring data acquisition module is used for the operation and maintenance monitoring platform to distribute scripts aiming at each node according to the hierarchical architecture of each node and acquire the monitoring data of the node through the scripts, wherein the monitoring data of the node comprises node basic monitoring data and block chain service monitoring data, and the node basic monitoring data comprises at least one of the CPU utilization rate, the network throughput, the memory switching rate, the disk space size and the read-write rate of a node host; the block chain service monitoring data comprises at least one of the connection number of the node hosts Peers, the block height synchronization number of the node hosts, the response time of the node host ports, the arrangement number of single nodes in the verification nodes, the handle number, the block chain transaction delay number information and the NTP service state;
the alarm module is used for sending an alarm prompt by the operation and maintenance monitoring platform when the node basic monitoring data exceeds a first alarm threshold and/or the block chain service monitoring data exceeds a second alarm threshold; and
the storage module is used for sending a resource demand request of the operation and maintenance monitoring platform to a cloud server, wherein the resource demand request comprises resource demand information and a timestamp, and the resource demand information comprises the node identification and the size of a storage space required by the node identification;
receiving a resource bill sent by the cloud server side when the timestamp is in a preset life cycle and the resource demand request passes;
and sending the monitoring data to the cloud server according to the received resource bill.
9. An electronic device comprising a memory having computer-executable instructions stored thereon and a processor that, when executing the computer-executable instructions on the memory, implements the method of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725166.5A CN111884878A (en) | 2020-07-24 | 2020-07-24 | Data monitoring method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725166.5A CN111884878A (en) | 2020-07-24 | 2020-07-24 | Data monitoring method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111884878A true CN111884878A (en) | 2020-11-03 |
Family
ID=73200503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010725166.5A Pending CN111884878A (en) | 2020-07-24 | 2020-07-24 | Data monitoring method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111884878A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596887A (en) * | 2020-12-29 | 2021-04-02 | 中国建设银行股份有限公司 | Analysis method for batch delay and related device |
CN112799919A (en) * | 2021-04-13 | 2021-05-14 | 上海钐昆网络科技有限公司 | Data monitoring method, device, equipment and computer storage medium |
CN112801782A (en) * | 2020-12-31 | 2021-05-14 | 北京知帆科技有限公司 | Block chain information monitoring method and device and electronic equipment |
CN113110977A (en) * | 2021-04-21 | 2021-07-13 | 中国电子科技网络信息安全有限公司 | Safety monitoring method based on block chain system |
CN113157521A (en) * | 2021-04-21 | 2021-07-23 | 杭州云象网络技术有限公司 | Monitoring method and monitoring system for whole life cycle of block chain |
CN113254306A (en) * | 2021-05-10 | 2021-08-13 | 支付宝(杭州)信息技术有限公司 | Running state monitoring method, device, equipment and storage medium |
CN113923036A (en) * | 2021-10-18 | 2022-01-11 | 北京八分量信息科技有限公司 | Block chain information management method and device of continuous immune safety system |
CN114500343A (en) * | 2022-04-02 | 2022-05-13 | 广州华多网络科技有限公司 | Business chain operation monitoring method and device, equipment, medium and product thereof |
CN114710505A (en) * | 2022-04-02 | 2022-07-05 | 杭州云象网络技术有限公司 | Method and system for realizing ecological safety supervision of digital RMB (national currency) based on block chain |
CN115378833A (en) * | 2022-07-29 | 2022-11-22 | 北京八分量信息科技有限公司 | Monitoring system based on network block chain technology |
CN115701021A (en) * | 2021-07-15 | 2023-02-07 | 中国联合网络通信集团有限公司 | Block chain network monitoring method and platform |
CN116450464A (en) * | 2023-06-13 | 2023-07-18 | 浙江睿数云联科技有限公司 | Operation and maintenance management method, system and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170244610A1 (en) * | 2014-03-10 | 2017-08-24 | Tencent Technology (Shenzhen) Company Limited | Method and system for monitoring quality of data transmission in idc network |
CN107894944A (en) * | 2017-11-30 | 2018-04-10 | 三盟科技股份有限公司 | A kind of intelligent control method and system based under big data and cloud calculation service |
CN109343965A (en) * | 2018-10-31 | 2019-02-15 | 北京金山云网络技术有限公司 | Resource adjusting method, device, cloud platform and server |
CN109886683A (en) * | 2019-02-25 | 2019-06-14 | 北京神荼科技有限公司 | Monitor the method, apparatus and storage medium of block chain data |
CN110493080A (en) * | 2019-08-19 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of block chain node monitoring method, device and electronic equipment and storage medium |
-
2020
- 2020-07-24 CN CN202010725166.5A patent/CN111884878A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170244610A1 (en) * | 2014-03-10 | 2017-08-24 | Tencent Technology (Shenzhen) Company Limited | Method and system for monitoring quality of data transmission in idc network |
CN107894944A (en) * | 2017-11-30 | 2018-04-10 | 三盟科技股份有限公司 | A kind of intelligent control method and system based under big data and cloud calculation service |
CN109343965A (en) * | 2018-10-31 | 2019-02-15 | 北京金山云网络技术有限公司 | Resource adjusting method, device, cloud platform and server |
CN109886683A (en) * | 2019-02-25 | 2019-06-14 | 北京神荼科技有限公司 | Monitor the method, apparatus and storage medium of block chain data |
CN110493080A (en) * | 2019-08-19 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of block chain node monitoring method, device and electronic equipment and storage medium |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596887A (en) * | 2020-12-29 | 2021-04-02 | 中国建设银行股份有限公司 | Analysis method for batch delay and related device |
CN112801782A (en) * | 2020-12-31 | 2021-05-14 | 北京知帆科技有限公司 | Block chain information monitoring method and device and electronic equipment |
CN112799919A (en) * | 2021-04-13 | 2021-05-14 | 上海钐昆网络科技有限公司 | Data monitoring method, device, equipment and computer storage medium |
CN113110977A (en) * | 2021-04-21 | 2021-07-13 | 中国电子科技网络信息安全有限公司 | Safety monitoring method based on block chain system |
CN113157521A (en) * | 2021-04-21 | 2021-07-23 | 杭州云象网络技术有限公司 | Monitoring method and monitoring system for whole life cycle of block chain |
CN113254306A (en) * | 2021-05-10 | 2021-08-13 | 支付宝(杭州)信息技术有限公司 | Running state monitoring method, device, equipment and storage medium |
CN115701021A (en) * | 2021-07-15 | 2023-02-07 | 中国联合网络通信集团有限公司 | Block chain network monitoring method and platform |
CN113923036A (en) * | 2021-10-18 | 2022-01-11 | 北京八分量信息科技有限公司 | Block chain information management method and device of continuous immune safety system |
CN113923036B (en) * | 2021-10-18 | 2024-05-28 | 北京八分量信息科技有限公司 | Block chain information management method and device of continuous immune safety system |
CN114710505A (en) * | 2022-04-02 | 2022-07-05 | 杭州云象网络技术有限公司 | Method and system for realizing ecological safety supervision of digital RMB (national currency) based on block chain |
CN114500343A (en) * | 2022-04-02 | 2022-05-13 | 广州华多网络科技有限公司 | Business chain operation monitoring method and device, equipment, medium and product thereof |
CN114500343B (en) * | 2022-04-02 | 2023-04-18 | 广州华多网络科技有限公司 | Business chain operation monitoring method and device, equipment, medium and product thereof |
CN115378833A (en) * | 2022-07-29 | 2022-11-22 | 北京八分量信息科技有限公司 | Monitoring system based on network block chain technology |
CN116450464A (en) * | 2023-06-13 | 2023-07-18 | 浙江睿数云联科技有限公司 | Operation and maintenance management method, system and equipment |
CN116450464B (en) * | 2023-06-13 | 2023-08-25 | 浙江睿数云联科技有限公司 | Operation and maintenance management method, system and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111884878A (en) | Data monitoring method based on block chain | |
WO2021073144A1 (en) | Distributed file system monitoring method and device, terminal, and storage medium | |
US9794153B2 (en) | Determining a risk level for server health check processing | |
CN110493080B (en) | Block link point monitoring method and device, electronic equipment and storage medium | |
CN106775929B (en) | A kind of virtual platform safety monitoring method and system | |
CN104268061A (en) | Storage state monitoring mechanism for virtual machine | |
CN103810076B (en) | The monitoring method and device of data duplication | |
CN103490919A (en) | Fault management system and fault management method | |
CN105357069A (en) | Distributed node service state monitoring method, device and system | |
CN112306802A (en) | Data acquisition method, device, medium and electronic equipment of system | |
CN115658420A (en) | Database monitoring method and system | |
CN111680104A (en) | Data synchronization method and device, computer equipment and readable storage medium | |
CN102890486A (en) | Center boiler remote monitoring system and control method thereof | |
CN109213657B (en) | Power grid operation data cloud storage device | |
US10282245B1 (en) | Root cause detection and monitoring for storage systems | |
US20210152587A1 (en) | Method and system to detect abnormal message transactions on a network | |
CN117579651A (en) | Internet of things system | |
CN111552746A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN107943665A (en) | A kind of system host monitoring method and device | |
US10223189B1 (en) | Root cause detection and monitoring for storage systems | |
CN113254245A (en) | Fault detection method and system for storage cluster | |
CN113330380A (en) | Method, device and system for managing alarms | |
CN110557283A (en) | power distribution communication network management and control method, server, system and readable storage medium | |
CN105550094B (en) | A kind of high-availability system state automatic monitoring method | |
CN115714710A (en) | Alarm data processing 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201103 |