Skip to main content

Metric Plugins

Overview

Metric plugins in Motadata AIOps empower users to define custom metrics according to their specific requirements. These plugins allow users to define metrics within Motadata AIOps for monitoring purpose. For instance, users can create a new metric plugin to monitor the temperature of a motherboard or any other custom parameter relevant to their environment.

Creating a new metric plugin includes writing a script using various protocols such as HTTP/HTTPS, SSH, PowerShell, database queries, or custom protocols. This script retrieves the desired data from the monitored devices and presents it as a metric in Motadata.

Motadata also provides multiple in-built metric plugins covering common metrics and parameters. These pre-configured templates can be readily utilized without the need for custom scripting, offering users a convenient solution for standard monitoring needs.

Users can manage both in-built and custom metric plugins through the Metric Plugin screen. Here, users can view, create, edit, and assign plugins to monitors. Users can also clone an inbuilt plugin and further customise it as per their requirement.

Go to Menu, Select Settings . After that, Go to Plugin Library . Select Metric Plugin. The Metric Plugin screen is displayed.

The Metric Plugin Management screen displays the following details for each plugin:

FieldDescription
Metric NameA unique identifier for the metric plugin.
ProtocolThe communication protocol used by the plugin (e.g., HTTP/HTTPS, SSH, PowerShell, etc.).
TypeThe monitor type on which the plugin can be applied.
Used CountThe number of monitors currently utilizing the plugin.
ActionsAllows users to perform actions such as cloning, assigning to monitors, and removing runbooks for each plugin. You can learn more about the available actions in the section below.

Actions Available For Metric Plugins

Assign Metric Plugins To Monitor

In order to retrieve metrics from a monitor using a specific metric plugin, generally in the case of custom created plugin, the plugin should be assigned to the Monitor. Once assigned, the plugin will retrieve the metrics as per the configuration in the plugin. The metrics will be polled for the monitor according to the assigned plugin on the next poll.

Under the Actions Tab, Select Assign Monitor to display the list of monitors to which the metric plugin can be assigned. The monitors using the same protocol as the plugin are displayed for assignment.

Select the monitors to which you need to assign the metric plugin using the check-box against it. You can select multiple monitors in case you need to assign the plugin to more than one monitor at once.

Select Assign Monitor to assign the plugin to the selected monitor(s).

Select Cancel if you do not wish to assign the plugin to the monitor(s).

Clone Metric Plugins

Suppose you want to create a new Metric Plugin similar to an existing one but with minor changes, you can use the Clone option. This will help create a new plugin with similar parameters. You can then change the parameters as per your requirement and create a new Plugin.

Under the Actions Tab, Select Clone to start creating a duplicate of the metric plugin. The screen to create a metric plugin appears with the same script and parameters as the plugin you selected to clone.

Enter all the details as per your requirement. Refer How to Create a Metric plugin to find more details about the fields present on the screen.