CN105490869A - Monitoring data acquisition method, device and system - Google Patents

Monitoring data acquisition method, device and system Download PDF

Info

Publication number
CN105490869A
CN105490869A CN201510802518.1A CN201510802518A CN105490869A CN 105490869 A CN105490869 A CN 105490869A CN 201510802518 A CN201510802518 A CN 201510802518A CN 105490869 A CN105490869 A CN 105490869A
Authority
CN
China
Prior art keywords
data
monitor data
server
memory space
local memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510802518.1A
Other languages
Chinese (zh)
Inventor
张源方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510802518.1A priority Critical patent/CN105490869A/en
Publication of CN105490869A publication Critical patent/CN105490869A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a monitoring data acquisition method, device and system. The method comprises: receiving the interaction data acquisition signal of a user by a browser, determining the monitoring data needed to be acquired, if the monitoring data is in the preset local storage space, directly acquiring from the local storage space, or sending a data acquisition instruction to a server at appointed time intervals within appointed time, receiving the monitoring data obtained from a monitoring device every time after the server receives the data acquisition instruction, storing the real time monitoring data to the preset local storage space, and obtaining the monitoring data from the preset local storage space. The problems that the data cannot be returned to the browser by the server because of database problem and a great deal of repeated data are stored in the database are solved; the data collection frequency of the server is controlled by the browser, the data are obtained through a plurality of requests, data transmission is more reliable, the monitoring data needed to be obtained are directly read from the local storage space, and the data reading speed is improved.

Description

A kind of monitor data acquisition methods, device and system
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of monitor data acquisition methods, device and system.
Background technology
Along with the update of browser and the development of webpage Web browser technology, increasing supervisory control system starts to turn to employing B/S (Browser/Server, browser/server) mode development, and B/S pattern is also because himself irreplaceable advantage is widely adopted.And usually following process will be related in supervisory control system: data acquisition-data processing-data display.
In modern supervisory control system, the data collected due to watch-dog are all real-times, and we need to reach the object storing monitor data, common solution be by collection of server to data be stored in database, when browse request, the data in a period of time are all returned.But the method also exists several weak point: first, server needs resident task timing acquiring data stored in database, and when database goes wrong, the data of collection cannot be returned browser by server; Secondly, if watch-dog frequency acquisition is higher, bring certain pressure can to database in server, higher to Database Requirements; Again, each data returned from database in special time period, the data volume that server transmits to browser is larger, the speed that browser obtains data is lower, and may most transmission data be repetitions, and in order to solve the mass data replication problem that may exist, need more to revise server process logic.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of monitor data acquisition methods, device and system, needs resident task timing acquiring data stored in database to solve server in prior art; If watch-dog frequency acquisition is higher, bring certain pressure can to database in server, higher to Database Requirements, necessity that expired monitor data too of a specified duration does not store; Each data returned from database in special time period, data volume to browser transmission is larger, and may most transmission data be repetitions, and in order to solve the mass data replication problem that may exist, need the problem that server process logic is more revised.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of monitor data acquisition methods, comprising:
The interaction data that browser receives user obtains signal, determines the monitor data that need obtain according to described interaction data acquisition signal;
Judge to preset in local memory space whether there is described monitor data;
If exist, then from described default local memory space, obtain described monitor data;
If do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from watch-dog at every turn after the described data acquisition instruction of reception, described real-time monitoring data is stored in described default local memory space, obtains described monitor data from described default local memory space.
Wherein, described interaction data obtains signal and comprises: the data type of described monitor data, obtain the time interval of described monitor data and the time marking of described monitor data.
Wherein, described browser also comprises after receiving the transaction signal of user:
The data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data are write public js file.
Wherein, described the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data are write public js file after also comprise:
Judge whether the interaction page switching signal receiving user;
If receive, then determine to switch the rear page according to described interaction page switching signal, after controlling described switching, the page introduces described open js file.
Wherein, described monitor data acquisition methods, also comprises:
Every prefixed time interval, monitor data in described default local memory space is all deleted;
And/or, when receiving browser out code, monitor data in described default local memory space is all deleted.
Wherein, describedly also to comprise after described default local memory space obtains described monitor data:
Monitoring figure is drawn according to described monitor data;
Described monitoring figure is placed in browser-presented interface.
Wherein, described monitoring figure comprises at least one in broken line graph, area-graph and curve chart.
A kind of monitor data acquisition device, comprising: signal receiving module, judge module, the first acquisition module and the second acquisition module; Wherein,
Described receiver module, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal;
Described judge module, for judging whether there is described monitor data in default local memory space;
Described first acquisition module, when there is described monitor data for judging to preset when described judge module in local memory space, obtains described monitor data from described default local memory space;
Described second acquisition module, when there is not described monitor data for judging to preset when described judge module in local memory space, obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from server at every turn after the described data acquisition instruction of reception, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
Wherein, described monitor data acquisition device, also comprises: module is introduced in writing module and judgement; Wherein,
Said write module, for writing public js file by the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data;
Module is introduced in described judgement, for judging whether the interaction page switching signal receiving user; Receive, then determine to switch the rear page according to described interaction page switching signal, after controlling described switching, the page introduces described open js file.
A kind of monitor data obtains system, comprising: browser, server and server; Wherein,
Described browser, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal; Judge to preset in local memory space whether there is described monitor data; If exist, then from described default local memory space, obtain described monitor data; If do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from described watch-dog at every turn after receiving described data acquisition instruction, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
Described server, for receiving the data acquisition instruction that described browser sends, from the real-time monitoring data that described watch-dog obtains, and returns described real-time monitoring data to described browser;
Described watch-dog, for Real-time Obtaining monitor data.
Based on technique scheme, the monitor data acquisition methods that the embodiment of the present invention provides, device and system, after browser receives the interaction data acquisition signal of user, the monitor data that need obtain is determined according to the interaction data acquisition signal receiving user, judge to preset in local memory space whether there is this monitor data that need obtain, if exist, then from this default local memory space, obtain this monitor data, if do not exist, then obtain in the signal fixed time at interaction data and send data acquisition instruction every fixed time interval to server, server is after the data acquisition instruction at every turn receiving browser transmission, real-time monitoring data is obtained from watch-dog, and the real-time monitoring data of acquisition is returned in browser, browser is after receiving the real-time monitoring data that server returns, the real-time monitoring data received is existed and presets local memory space, then local memory space acquisition monitor data is preset from this.Server is after the data acquisition instruction at every turn receiving browser transmission, real-time monitoring data is obtained from watch-dog, real-time monitoring data is gathered without the need to garrisoning specific program in the server, and, this real-time monitoring data is returned browser immediately by server after getting real-time monitoring data, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoid server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, with the problem storing a large amount of repeating data in database, simultaneously, server obtains real-time monitoring data from watch-dog after the data acquisition instruction at every turn receiving browser transmission, the frequency of collection of server real-time monitoring data is browser sends frequency from data acquisition instruction to server, the frequency of real-time monitoring data is gathered by browser Control Server, the use that user is larger can be given free, and browser sends data acquisition instruction every fixed time interval to server, required whole monitor datas are obtained by repeatedly asking to obtain low volume data at every turn, whole monitor data is obtained than by each mass data of secondary request less, transfer of data is more reliable, on the other hand, the real-time monitoring data of acquisition is stored in default local memory space by browser, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, this monitor data that need obtain is obtained from this default local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, and when needs obtain history monitor data, directly can read required data from this default local memory space, without the need to obtaining from server again, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The flow chart of the monitor data acquisition methods that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram uninterruptedly obtaining monitor data when switching browser page is ensured in the monitor data acquisition methods that Fig. 2 provides for the embodiment of the present invention;
The method flow diagram of display monitoring figure in the monitor data acquisition methods that Fig. 3 provides for the embodiment of the present invention;
The system block diagram of the monitor data acquisition device that Fig. 4 provides for the embodiment of the present invention;
Another system block diagram of the monitor data acquisition device that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart of the monitor data acquisition system that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of the monitor data acquisition methods that Fig. 1 provides for the embodiment of the present invention, real-time monitoring data is gathered without the need to garrisoning specific program in the server, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoids server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, and stores the problem of a large amount of repeating data in database; Meanwhile, gathered the frequency of real-time monitoring data by browser Control Server, the use that user is larger can be given free, and obtain required whole monitor datas by repeatedly asking to obtain low volume data at every turn, transfer of data is more reliable; On the other hand, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions; With reference to Fig. 1, this monitor data acquisition methods can comprise:
Step S100: the interaction data that browser receives user obtains signal, determines the monitor data that need obtain according to described interaction data acquisition signal;
Optionally, browser can receive the interaction data obtaining information that user is sent by operator's machine interactive interface, browser receiving after the interaction data that sent by operator's machine interactive interface of user obtains signal, by the monitor data determining to obtain according to this interaction data obtaining information.
Optionally, the interaction data of user obtain signal can comprise the monitor data that need obtain data type, obtain the time interval of monitor data and the time marking of this monitor data that need obtain that need obtain, the time marking of the monitor data crossed by the data type of the monitor data that need obtain and need obtain can determine the monitor data that need obtain, and can control the frequency of browser to the instruction of server transmission data acquisition according to the time interval obtaining the monitor data that need obtain.
Optionally, receive the transaction signal of user at browser after, the interaction data that this browser can be received obtain the monitor data arranged in signal data type, obtain the time interval of monitor data and the time marking of monitor data writes public js file, when browser switches the page for other pages.
Optionally, after the data type of monitor data, the acquisition time interval of monitor data and the time marking of monitor data are write public js file, after browser being jumped to other pages for avoiding user, the page stops sending data acquisition instruction to server before, and the monitor data that the page has obtained is before lost, so that only have the page before again switching back and again send data acquisition instruction to server, the situation again obtaining monitor data sends.Can judge the interaction page switching signal receiving user, when namely judging that user carries out page layout switch, determine to switch the rear page according to this interaction page switching signal, after then controlling this switching, the page introduces the disclosure js file.So, can still continue to send data acquisition instruction to server by the page before browser switches after the page, make data acquisition have continuity, after browser switches the page and after returning, without the need to again obtaining page monitor data before.
Step S110: judge to preset in local memory space whether there is described monitor data;
By judging whether there is the monitor data that need obtain in default local memory space, judging whether the monitor data that this Xu obtains once was acquired, namely judging whether this monitor data that need obtain is history monitor data.
Optionally, presetting local memory space can be browser rs cache.
Step S120: if exist, then obtain described monitor data from described default local memory space;
The monitor data existing in local memory space and need obtain is preset if judge, namely the monitor data obtained is needed once to be acquired from server, for history monitor data, then server directly can obtain this monitor data from this default local memory space, without the need to obtaining from server again, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
Step S130: if do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from watch-dog at every turn after the described data acquisition instruction of reception, described real-time monitoring data is stored in described default local memory space, obtains described monitor data from described default local memory space.
Preset in local memory space if judge and there is not the monitor data that need obtain, namely the monitor data not once serviced device acquisition obtained is needed, for real-time monitoring data, then server obtains in the signal fixed time at interaction data and sends data acquisition instruction every fixed time interval to server, the real-time monitoring data that reception server obtains from watch-dog at every turn after this data acquisition instruction of reception, this real-time monitoring data is stored in default local memory space, described monitor data is obtained from this default local memory space, improve the reading rate of real-time detector data.
Optionally, every prefixed time interval, the monitor data be stored in default local memory space all can be deleted, also can when receiving browser out code, monitor data in this default local memory space will be stored in all delete, to avoid storing repeating data, produce too much junk data.
Optionally, after obtaining monitor data from default local memory space, monitoring figure can be drawn according to the monitor data obtained, then the monitoring figure of this drafting is placed in browser-presented interface, check for user.Accordingly, from local memory space, directly read the monitor data that need obtain, while improve data read rates, also will provide the drafting speed of monitoring figure.
Optionally, the monitoring figure of drafting can be at least one in broken line graph, area-graph and curve chart.
Optionally, no matter be from default local memory space, directly obtain the monitor data that need obtain, or obtaining the monitor data that need obtain again after obtaining real-time monitoring data by server from memory space, can be obtain the monitor data that need obtain every prefixed time interval from default local memory space.
Based on technique scheme, the embodiment of the present invention provides monitor data acquisition methods, after browser receives the interaction data acquisition signal of user, the monitor data that need obtain is determined according to the interaction data acquisition signal receiving user, judge to preset in local memory space whether there is this monitor data that need obtain, if exist, then from this default local memory space, obtain this monitor data, if do not exist, then obtain in the signal fixed time at interaction data and send data acquisition instruction every fixed time interval to server, server is after the data acquisition instruction at every turn receiving browser transmission, real-time monitoring data is obtained from watch-dog, and the real-time monitoring data of acquisition is returned in browser, browser is after receiving the real-time monitoring data that server returns, the real-time monitoring data received is existed and presets local memory space, then local memory space acquisition monitor data is preset from this.Server is after the data acquisition instruction at every turn receiving browser transmission, real-time monitoring data is obtained from watch-dog, real-time monitoring data is gathered without the need to garrisoning specific program in the server, and, this real-time monitoring data is returned browser immediately by server after getting real-time monitoring data, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoid server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, with the problem storing a large amount of repeating data in database, simultaneously, server obtains real-time monitoring data from watch-dog after the data acquisition instruction at every turn receiving browser transmission, the frequency of collection of server real-time monitoring data is browser sends frequency from data acquisition instruction to server, the frequency of real-time monitoring data is gathered by browser Control Server, the use that user is larger can be given free, and browser sends data acquisition instruction every fixed time interval to server, required whole monitor datas are obtained by repeatedly asking to obtain low volume data at every turn, whole monitor data is obtained than by each mass data of secondary request less, transfer of data is more reliable, on the other hand, the real-time monitoring data of acquisition is stored in default local memory space by browser, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, this monitor data that need obtain is obtained from this default local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, and when needs obtain history monitor data, directly can read required data from this default local memory space, without the need to obtaining from server again, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
Optionally, Fig. 2 shows in the monitor data acquisition methods that the embodiment of the present invention provides the method flow diagram ensureing uninterruptedly to obtain when switching browser page monitor data, with reference to Fig. 2, the method uninterruptedly obtaining monitor data when this guarantee switches browser page can comprise:
Step S200: the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data are write public js file;
Receive the transaction signal of user at browser after, interaction data that this browser is received obtain the monitor data arranged in signal data type, obtain the time interval of monitor data and the time marking of monitor data writes public js file, so, when browser switches the page, other pages, by reading this public js file, obtain the data type of the monitor data be written in this public js file, obtain the time interval of monitor data and the time marking of monitor data.
Step S210: judge whether the interaction page switching signal receiving user;
By judging whether the interaction page switching signal receiving user, judge whether user carries out browser page switching.
Step S220: if receive, then determine to switch the rear page according to described interaction page switching signal, and after controlling described switching, the page introduces described open js file.
The interaction page switching signal of user is received if judge, then illustrate that user switches browser page, determine to switch the rear page according to this interaction page switching signal, after controlling this switching, the page introduces the disclosure js file, can after browser switches the page, the page still continues to send data acquisition instruction to server before, data acquisition is made to have continuity, after avoiding user that browser is jumped to other pages, the page stops sending data acquisition instruction to server before, and the monitor data that the page has obtained is before lost, so that only have the page before again switching back and again send data acquisition instruction to server, again the situation obtaining monitor data sends.
Optionally, Fig. 3 shows the method flow diagram of display monitoring figure in the monitor data acquisition methods that the embodiment of the present invention provides, and with reference to Fig. 3, the method for this display monitoring figure can comprise:
Step S300: draw monitoring figure according to described monitor data;
After obtaining monitor data from default local memory space, can draw monitoring figure according to the monitor data obtained, optionally, the monitoring figure of drafting can be at least one in broken line graph, area-graph and curve chart.
Step S310: described monitoring figure is placed in browser-presented interface.
The monitoring figure of this drafting is placed in browser-presented interface, and the monitoring figure that user can be opposite in browser-presented interface checks.
The monitor data acquisition methods that the embodiment of the present invention provides, real-time monitoring data is gathered without the need to garrisoning specific program in the server, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoids server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, and stores the problem of a large amount of repeating data in database; Meanwhile, gathered the frequency of real-time monitoring data by browser Control Server, the use that user is larger can be given free, and obtain required whole monitor datas by repeatedly asking to obtain low volume data at every turn, transfer of data is more reliable; On the other hand, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
Be introduced the monitor data acquisition device that the embodiment of the present invention provides below, monitor data acquisition device described below can mutual corresponding reference with above-described monitor data acquisition methods.
The system block diagram of the monitor data acquisition device that Fig. 4 provides for the embodiment of the present invention, with reference to Fig. 4, this monitor data acquisition device can comprise: signal receiving module 100, judge module 200, first acquisition module 300 and the second acquisition module 400; Wherein,
Receiver module 100, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal;
Judge module 200, for judging whether there is described monitor data in default local memory space;
First acquisition module 300, when there is described monitor data for judging to preset when described judge module in local memory space, obtains described monitor data from described default local memory space;
Second acquisition module 400, when there is not described monitor data for judging to preset when described judge module in local memory space, obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from server at every turn after the described data acquisition instruction of reception, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
Optionally, Fig. 5 shows another system block diagram of the monitor data acquisition device that the embodiment of the present invention provides, and with reference to Fig. 5, this monitor data acquisition device can also comprise: module 600 is introduced in writing module 500 and judgement; Wherein,
Writing module 500, for writing public js file by the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data;
Judge to introduce module 600, for judging whether the interaction page switching signal receiving user; Receive, then determine to switch the rear page according to described interaction page switching signal, after controlling described switching, the page introduces described open js file.
The monitor data acquisition device that the embodiment of the present invention provides, real-time monitoring data is gathered without the need to garrisoning specific program in the server, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoids server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, and stores the problem of a large amount of repeating data in database; Meanwhile, gathered the frequency of real-time monitoring data by browser Control Server, the use that user is larger can be given free, and obtain required whole monitor datas by repeatedly asking to obtain low volume data at every turn, transfer of data is more reliable; On the other hand, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
The monitor data provided the embodiment of the present invention below obtains system and is introduced, and monitor data described below obtains system can mutual corresponding reference with above-described monitor data acquisition methods and above-described monitor data acquisition device.
The structured flowchart of the monitor data acquisition system that Fig. 6 provides for the embodiment of the present invention, with reference to Fig. 6, this monitor data obtains system and can comprise: browser 10, server 20 and server 30; Wherein,
Browser 10, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal; Judge to preset in local memory space whether there is described monitor data; If exist, then from described default local memory space, obtain described monitor data; If do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from described watch-dog at every turn after receiving described data acquisition instruction, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
Server 20, for receiving the data acquisition instruction that described browser sends, from the real-time monitoring data that described watch-dog obtains, and returns described real-time monitoring data to described browser;
Watch-dog 30, for Real-time Obtaining monitor data.
The monitor data acquisition device that the embodiment of the present invention provides, real-time monitoring data is gathered without the need to garrisoning specific program in the server, without the need to setting data storehouse in the server, the real time data obtained is stored, decrease the service logic of server, simplify server capability, processing logic is simple, and avoids server factor data bank problem and real-time monitoring data cannot be returned to the problem of browser, and stores the problem of a large amount of repeating data in database; Meanwhile, gathered the frequency of real-time monitoring data by browser Control Server, the use that user is larger can be given free, and obtain required whole monitor datas by repeatedly asking to obtain low volume data at every turn, transfer of data is more reliable; On the other hand, after obtain the monitor data that need obtain from server, this monitor data that need obtain being existed this presets in local memory space, from local memory space, directly read the monitor data that need obtain, improve data read rates, avoid the problem occurring the monitor data that cannot obtain needs due to situations such as network congestions.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment and system, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a monitor data acquisition methods, is characterized in that, comprising:
The interaction data that browser receives user obtains signal, determines the monitor data that need obtain according to described interaction data acquisition signal;
Judge to preset in local memory space whether there is described monitor data;
If exist, then from described default local memory space, obtain described monitor data;
If do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from watch-dog at every turn after the described data acquisition instruction of reception, described real-time monitoring data is stored in described default local memory space, obtains described monitor data from described default local memory space.
2. monitor data acquisition methods according to claim 1, is characterized in that, described interaction data obtains signal and comprises: the data type of described monitor data, obtain the time interval of described monitor data and the time marking of described monitor data.
3. monitor data acquisition methods according to claim 2, is characterized in that, described browser also comprises after receiving the transaction signal of user:
The data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data are write public js file.
4. monitor data acquisition methods according to claim 3, is characterized in that, described the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data are write public js file after also comprise:
Judge whether the interaction page switching signal receiving user;
If receive, then determine to switch the rear page according to described interaction page switching signal, after controlling described switching, the page introduces described open js file.
5. monitor data acquisition methods according to claim 1, is characterized in that, also comprise:
Every prefixed time interval, monitor data in described default local memory space is all deleted;
And/or, when receiving browser out code, monitor data in described default local memory space is all deleted.
6. monitor data acquisition methods according to claim 1, is characterized in that, describedly also comprises after described default local memory space obtains described monitor data:
Monitoring figure is drawn according to described monitor data;
Described monitoring figure is placed in browser-presented interface.
7. monitor data acquisition methods according to claim 6, is characterized in that, described monitoring figure comprises at least one in broken line graph, area-graph and curve chart.
8. a monitor data acquisition device, is characterized in that, comprising: signal receiving module, judge module, the first acquisition module and the second acquisition module; Wherein,
Described receiver module, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal;
Described judge module, for judging whether there is described monitor data in default local memory space;
Described first acquisition module, when there is described monitor data for judging to preset when described judge module in local memory space, obtains described monitor data from described default local memory space;
Described second acquisition module, when there is not described monitor data for judging to preset when described judge module in local memory space, obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from server at every turn after the described data acquisition instruction of reception, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
9. monitor data acquisition device according to claim 8, is characterized in that, also comprise: module is introduced in writing module and judgement; Wherein,
Said write module, for writing public js file by the data type of described monitor data, the time marking in the time interval and described monitor data that obtains described monitor data;
Module is introduced in described judgement, for judging whether the interaction page switching signal receiving user; Receive, then determine to switch the rear page according to described interaction page switching signal, after controlling described switching, the page introduces described open js file.
10. monitor data obtains a system, it is characterized in that, comprising: browser, server and server; Wherein,
Described browser, obtains signal for the interaction data receiving user, determines the monitor data that need obtain according to described interaction data acquisition signal; Judge to preset in local memory space whether there is described monitor data; If exist, then from described default local memory space, obtain described monitor data; If do not exist, then obtain in the signal fixed time at described interaction data and send data acquisition instruction every fixed time interval to server, receive the real-time monitoring data that described server obtains from described watch-dog at every turn after receiving described data acquisition instruction, by in described supervising data storage to described default local memory space, obtain described monitor data from described default local memory space.
Described server, for receiving the data acquisition instruction that described browser sends, from the real-time monitoring data that described watch-dog obtains, and returns described real-time monitoring data to described browser;
Described watch-dog, for Real-time Obtaining monitor data.
CN201510802518.1A 2015-11-19 2015-11-19 Monitoring data acquisition method, device and system Pending CN105490869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510802518.1A CN105490869A (en) 2015-11-19 2015-11-19 Monitoring data acquisition method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510802518.1A CN105490869A (en) 2015-11-19 2015-11-19 Monitoring data acquisition method, device and system

Publications (1)

Publication Number Publication Date
CN105490869A true CN105490869A (en) 2016-04-13

Family

ID=55677610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510802518.1A Pending CN105490869A (en) 2015-11-19 2015-11-19 Monitoring data acquisition method, device and system

Country Status (1)

Country Link
CN (1) CN105490869A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302024A (en) * 2016-08-23 2017-01-04 成都科来软件有限公司 The method and device that a kind of chain index based on various dimensions monitors in real time
CN106411638A (en) * 2016-09-13 2017-02-15 郑州云海信息技术有限公司 Method and system for processing monitoring data in cloud monitoring system
CN106411991A (en) * 2016-05-26 2017-02-15 苏州工业园区驿力机车科技股份有限公司 Vehicle-mounted data real-time acquisition system
CN106452944A (en) * 2016-08-31 2017-02-22 成都科来软件有限公司 Method and device for obtaining business performance analysis data based on multiple dimensions
CN106569746A (en) * 2016-11-01 2017-04-19 北京信安世纪科技有限公司 Data writing method and device
CN106874328A (en) * 2016-07-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN106886372A (en) * 2017-02-21 2017-06-23 深圳实现创新科技有限公司 The big data management method and device of safety monitoring
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN108632568A (en) * 2017-03-17 2018-10-09 北京京东尚科信息技术有限公司 Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video
CN109062764A (en) * 2018-08-01 2018-12-21 郑州云海信息技术有限公司 The output method and device of monitoring data
CN110035297A (en) * 2019-03-08 2019-07-19 视联动力信息技术股份有限公司 Method for processing video frequency and device
CN110704370A (en) * 2019-09-05 2020-01-17 苏州浪潮智能科技有限公司 File system performance monitoring method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459571A (en) * 2008-12-16 2009-06-17 北京大学 Method, system and apparatus for website mirroring
CN102902799A (en) * 2012-10-12 2013-01-30 中科方德软件有限公司 Browser page display method and device based on WebKit
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method
CN103326958A (en) * 2012-03-22 2013-09-25 鸿富锦精密工业(深圳)有限公司 Method and system for monitoring data cache

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459571A (en) * 2008-12-16 2009-06-17 北京大学 Method, system and apparatus for website mirroring
CN103326958A (en) * 2012-03-22 2013-09-25 鸿富锦精密工业(深圳)有限公司 Method and system for monitoring data cache
CN102902799A (en) * 2012-10-12 2013-01-30 中科方德软件有限公司 Browser page display method and device based on WebKit
CN102930034A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading system and page loading method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411991A (en) * 2016-05-26 2017-02-15 苏州工业园区驿力机车科技股份有限公司 Vehicle-mounted data real-time acquisition system
CN106874328B (en) * 2016-07-08 2021-03-19 创新先进技术有限公司 Data processing method and equipment
CN106874328A (en) * 2016-07-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN106302024A (en) * 2016-08-23 2017-01-04 成都科来软件有限公司 The method and device that a kind of chain index based on various dimensions monitors in real time
CN106452944A (en) * 2016-08-31 2017-02-22 成都科来软件有限公司 Method and device for obtaining business performance analysis data based on multiple dimensions
CN106411638A (en) * 2016-09-13 2017-02-15 郑州云海信息技术有限公司 Method and system for processing monitoring data in cloud monitoring system
CN106569746A (en) * 2016-11-01 2017-04-19 北京信安世纪科技有限公司 Data writing method and device
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN106886372A (en) * 2017-02-21 2017-06-23 深圳实现创新科技有限公司 The big data management method and device of safety monitoring
CN108632568A (en) * 2017-03-17 2018-10-09 北京京东尚科信息技术有限公司 Review method, apparatus, electronic equipment and the readable storage medium storing program for executing of monitor video
CN108632568B (en) * 2017-03-17 2021-09-17 北京京东尚科信息技术有限公司 Method and device for reviewing monitoring video, electronic equipment and readable storage medium
CN109062764A (en) * 2018-08-01 2018-12-21 郑州云海信息技术有限公司 The output method and device of monitoring data
CN110035297A (en) * 2019-03-08 2019-07-19 视联动力信息技术股份有限公司 Method for processing video frequency and device
CN110035297B (en) * 2019-03-08 2021-05-14 视联动力信息技术股份有限公司 Video processing method and device
CN110704370A (en) * 2019-09-05 2020-01-17 苏州浪潮智能科技有限公司 File system performance monitoring method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN105490869A (en) Monitoring data acquisition method, device and system
CN110086666B (en) Alarm method, device and system
CN105338078B (en) Date storage method and device for storage system
CN109062512A (en) A kind of distributed storage cluster, data read-write method, system and relevant apparatus
CN104104707A (en) Webpage data update method, terminal, cache server and system
CN106126410B (en) The reminding method and device of code conflicts
CN111159436A (en) Method and device for recommending multimedia content and computing equipment
CN101252462B (en) Alarming page furbishing method as well as server and client end
CN106548402A (en) Resource transfers monitoring method and device
CN109783258A (en) A kind of message treatment method, device and server
CN108319619B (en) Data processing method and device
CN109379305A (en) A kind of data distributing method, device, server and storage medium
CN110222288A (en) Page display method, device and storage medium
CN111930306A (en) Data processing method and device
CN108509541B (en) Message reading method, message reading device and mobile terminal
CN110377331B (en) Monitoring method, device, equipment and storage medium for issuing application program
CN103677519A (en) Method for collecting multimedia resource, terminal and server
CN110071951A (en) Data query display systems and method under the conditions of a kind of big data
CN105490835B (en) Information monitoring method and device
CN107332703B (en) Method and device for checking multi-application logs
CN103209212B (en) Based on the data cache method in the Web network management client of RIA and system
CN107395443A (en) A kind of distributed type assemblies management method, apparatus and system
CN109901893A (en) The method for managing data flow of applet
CN109542850B (en) Method, device, equipment and medium for updating WORM attribute of file
CN108563744B (en) Slow query method and device based on Redis database and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication