Create Custom Metric Plugin
Overview
Creating a Custom Metric Plugin in Motadata AIOps allows you to define custom metrics for monitoring purposes using your own scripts and protocols. This enables you to monitor specific parameters or devices not covered by the standard plugins provided by Motadata.
Navigation
Go to Menu, Select Settings . After that, Go to Plugin Library . Select Metric. The Metric Plugin screen is displayed.
Select to create a metric plugin. The screen to create HTTP/HTTPS is selected by default. Select Custom to create a Custom Metric Plugin.
Custom Metric Plugin Fields
When creating a Custom Metric Plugin, you'll need to complete the following fields:
Field | Description |
---|---|
Metric Name | Name of the metric you're defining. |
Type | Type of monitor for which you're creating the plugin. |
Monitor/Group | Choose whether you want to assign the plugin to a specific monitor or a group of monitors. The Plugin will be tested against the monitors selected here when you click on the Test button. |
Monitors/Groups | Select the specific monitor(s)/group(s) to which you want to assign the plugin. |
Credential Profile | Select the credential profile to access the selected monitors. |
Port | Specify the Port to which you are trying to connect. |
Timeout | Specify the timeout to establish the connection with the port. |
Script Language | Choose the language for writing the parsing script (GO or Python). |
Script | Write the script in this window. |
Add Variable | Add any variables needed in the script. |
Once you've filled in these fields and written the necessary script, you'll be able to define custom metrics and retrieve data using your Custom Metric Plugin.
Select Create Metric to create the metric plugin based on the configurations specified.
Select Test to test the script against the monitors selected.
Select Reset to erase all the current field values, if required.