Generating collectors for network resources
Systems, methods, and computer-readable storage media for generating collectors for monitoring network resources are shown. In an aspect, the method includes determining a type of a network resource based at least in part on an identifier corresponding to the network resource. The network resource may be or include a database. The method includes generating a collector based on the identifier corresponding to the network resource; configuring functionality of the collector for monitoring the network resource based on the type of the network resource; monitoring, by the one or more processors, the network resource via the collector; and initiating, by the one or more processors, an action in the network based at least in part on the monitoring. In addition to supporting methods for generating and configuring collectors, some example embodiments enable functionality to decommission collectors and network resources, conserving energy and computing resources.
1 . A method, comprising:
determining, by one or more processors, a type of a network resource in a network based at least in part on an identifier corresponding to the network resource, wherein the network resource comprises a database, wherein the network comprises a plurality of databases having different types, the different types comprising the type of the network resource;
generating, by the one or more processors, a collector based on the identifier corresponding to the network resource;
configuring, by the one or more processors, functionality of the collector for monitoring the network resource based on the type of the network resource;
monitoring, by the one or more processors, the network resource via the collector; and
initiating, by the one or more processors, an action in the network based at least in part on the monitoring, the action corresponding to the collector, the network resource, or both.
2 . The method of claim 1 , further comprising:
dynamically detecting the network resource on the network by probing the network to identify one or more indications of the network resource; and
configuring the collector based on the one or more indications.
3 . The method of claim 1 , wherein the action comprises displaying, by the one or more processors, one or more metrics corresponding to performance of the network resource to a display device.
4 . The method of claim 1 , wherein the action comprises restarting a computing device hosting the network resource, reconfiguring one or more computing resources associated with the network resource, or both.
5 . The method of claim 1 , further comprising removing the collector.
6 . The method of claim 5 , wherein removing the collector releases one or more computing resources.
7 . The method of claim 5 , wherein the collector is removed based on dynamically detecting that the network resource is no longer available.
8 . The method of claim 5 , wherein the collector is removed based on a change in metrics corresponding to performance of the network resource, based on the identifier being removed from a list of identifiers, based on the identifier being removed from a data source providing the identifier, or a combination thereof.
9 . The method of claim 1 , further comprising:
determining that a data source associated with the identifier is operating unexpectedly; and
maintaining the collector corresponding to the identifier at least until the data source again operates as expected or until the network resource is determined to not be available.
10 . The method of claim 1 , wherein configuring functionality of the collector further comprises selecting functionality specific to the type of the network resource, wherein different collector configurations comprising different functionality are selected for different types of network resources.
11 . A system, comprising:
a memory storing processor-readable code; and
one or more processors coupled to the memory, the one or more processors configured to execute the processor-readable code to cause the one or more processors to perform operations including:
determining a type of a network resource in a network based at least in part on an identifier corresponding to the network resource, wherein the network resource comprises a database, wherein the network comprises a plurality of databases having different types, the different types comprising the type of the network resource;
generating a collector based on the identifier corresponding to the network resource;
configuring functionality of the collector for monitoring the network resource based on the type of the network resource;
monitoring the network resource via the collector; and
initiating an action in the network based at least in part on the monitoring, the action corresponding to the collector, the network resource, or both.
12 . The system of claim 11 , further comprising:
dynamically detecting the network resource on the network by probing the network to identify one or more indications of the network resource; and
configuring the collector based on the one or more indications.
13 . The system of claim 11 , wherein the action comprises displaying one or more metrics corresponding to performance of the network resource to a display device.
14 . The system of claim 11 , wherein the action further comprises restarting a computing device hosting the network resource, reconfiguring one or more computing resources associated with the network resource, or both.
15 . The system of claim 11 , further comprising removing the collector.
16 . The system of claim 15 , wherein removing the collector releases one or more computing resources.
17 . The system of claim 15 , wherein the collector is removed based on dynamically detecting that the network resource is no longer available.
18 . The system of claim 15 , wherein the collector is removed based on a change in metrics corresponding to performance of the network resource, based on the identifier being removed from a list of identifiers, based on the identifier being removed from a data source providing the identifier, or a combination thereof.
19 . The system of claim 11 , further comprising:
determining that a data source associated with the identifier is operating unexpectedly; and
maintaining the collector corresponding to the identifier at least until the data source again operates as expected or until the network resource is determined to not be available.
20 . The system of claim 11 , wherein configuring functionality of the collector further comprises selecting functionality specific to the type of the network resource, wherein different collector configurations comprising different functionality are selected for different types of network resources.