Forum Discussion
Several eLearning courses: https://logicmonitor.skilljar.com/#product-area_logicmodules (note that this link won't work unless you have an active session in the training portal, Skilljar. To get an active session, go to your portal and click the training link)
We also have an intro to Groovy course: https://logicmonitor.skilljar.com/#product-area_groovy
The main thing I ask before building a DataSource (assuming you want a DataSource) is, "How is the data collected today?" How can you get at it today? If the data is available via SNMP, that means starting with an SNMP type DataSource. If it's via an API, you might be able to use the HTTP type DataSource, but you'll probably go for a Groovy based one. Here's an example of a Groovy based HTTP REST API DataSource. The ad.groovy script runs active discovery to create the instances. The collect.groovy is what runs regularly to collect the data.
The other main question to ask yourself is whether or not the metrics you will be collecting are resource level or instance level. For example, memory utilization or Ping are a resource level statistics because there's only one memory bank and only one ping operation that you would do at a device. CPU and Disk are multi-instance DataSources because there are usually multiple CPUs or disks to monitor on any given resource. If you are choosing multi-instance, you'll need to put some thought into instance creation through Active Discovery.
Hope this gets you started!
Related Content
- 3 months ago
- 2 years ago