Method for acquiring monitoring data and system thereof, task distribution server and agent
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYongfeng Liu
Life of this patent
Estimating the term…
Abstract
A method for acquiring monitoring data and a system thereof, a task distribution server and an agent are disclosed. The method for acquiring the monitoring data includes: receiving registrations of the agent and a gathering device by the task distribution server; receiving, by the task distribution server, an acquiring instruction sent by the gathering device; and sending, by the task distribution server, the acquiring instruction to the agent to instruct the agent to acquire the monitoring data. Hence, a flexibility in acquiring the monitoring data is improved.
Claims9
A method for acquiring monitoring data in a network, comprising:
- in the network, wherein the network includes a task distribution server, a plurality of agents, and a gathering device:
- receiving, from a first agent, by the task distribution server, a first registration request of the first agent, an identification of the first agent and a plurality of acquiring indexes supported by the first agent;
- in response to receiving the first registration request of the first agent, the identification of the first agent, and the plurality of acquiring indexes supported by the first agent, returning a registration accomplishment message to the first agent by the task distribution server;
- receiving a second registration request from a gathering device by the task distribution server, wherein the gathering device is a data crawler;
- receiving, by the task distribution server, an acquiring instruction sent by the gathering device;
- and
- sending the acquiring instruction to the first agent by the task distribution server, to instruct the first agent to acquire monitoring data, wherein:
- the acquiring instruction comprises the identification of the first agent to perform an acquisition, a respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent and a data transmission mode, and
- the monitoring data corresponds to the respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent;
- wherein the receiving, by the task distribution server, the acquiring instruction sent by the gathering device comprises:
- reading the identification of the first agent, the respective acquiring index and the data transmission mode from the acquiring instruction by the task distribution server;
- and
- wherein the sending the acquiring instruction to the first agent by the task distribution server, to instruct the first agent to acquire the monitoring data comprises:
- sending the acquiring instruction to the first agent corresponding to the identification in the acquiring instruction and assigning the respective acquiring index and the data transmission mode to the first agent, by the task distribution server;
- wherein the agent directly reports the monitoring data to the gathering device.
A task distribution server, comprising a processor and a memory storing program codes, wherein the processor performs the stored program codes to:
- in a network including the task distribution server, a plurality of agents, and a gathering device:
- receive, from a first agent, a first registration request of the first agent, an identification of the first agent and a plurality of acquiring indexes supported by the first agent;
- in response to receiving the first registration request of the first agent, the identification of the first agent, and the plurality of acquiring indexes supported by the first agent, return a registration accomplishment message to the first agent;
- receive a second registration request from a gathering device, wherein the gathering device is a data crawler;
- receive an acquiring instruction sent by the gathering device;
- and
- send the acquiring instruction to the first agent to instruct the first agent to acquire monitoring data;
- wherein:
- the acquiring instruction comprises the identification of the first agent to perform an acquisition, a respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent and a data transmission mode, and
- the monitoring data corresponds to the respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent;
- the processor further performs the stored program codes to read the identification of the first agent, the respective acquiring index and the data transmission mode from the acquiring instruction;
- and
- the processor further performs the stored program codes to send the acquiring instruction to the first agent corresponding to the identification in the acquiring instruction and assign the respective acquiring index and the data transmission mode to the first agent;
- wherein the agent directly reports the monitoring data to the gathering device.
A first agent, comprising a processor and a memory storing program codes, wherein the processor performs the stored program codes to:
- in the network, wherein the network includes a task distribution server, a plurality of agents, and a gathering device:
- send a first registration request, an identification of the first agent and a plurality of acquiring indexes supported by the first agent to a task distribution server;
- in response to sending the first registration request of the first agent, the identification of the first agent, and the plurality of acquiring indexes supported by the first agent, receive a registration accomplishment message from the task distribution server;
- wherein the task distribution server further receives a second registration request from a gathering device that is a data crawler to register at the task distribution server;
- receive an acquiring instruction sent by the task distribution server, wherein the acquiring instruction is sent to the task distribution server by the gathering device and the acquiring instruction is configured to instruct the first agent to acquire monitoring data;
- and
- acquire the monitoring data in response to the acquiring instruction;
- wherein:
- the acquiring instruction comprises the identification of the first agent to perform an acquisition, a respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent and a data transmission mode, and
- the monitoring data corresponds to the respective acquiring index which is one of the plurality of acquiring indexes supported by the first agent;
- the processor further performs the stored program codes to acquire monitoring data corresponding to the acquiring index and transmit the acquired monitoring data in the data transmission mode;
- wherein the first agent directly reports the monitoring data to the gathering device.
Dependencies are inferred from the claim text.