Create HTTP Metric Plugin
Overview
Creating an HTTP/HTTPS Metric Plugin in Motadata AIOps allows you to define custom metrics for monitoring purposes using HTTP or HTTPS communication protocols. This enables you to retrieve data from web-based endpoints and incorporate it into your monitoring strategy.
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.
HTTP Metric Plugin Fields
When creating an HTTP/HTTPS Metric Plugin, you'll need to fill in 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. |
URL Endpoint | Specify the URL endpoint from which data will be retrieved. |
Credential Profile | Select the credential profile to access the selected monitors. |
URL Type | Choose whether the URL is HTTP or HTTPS. |
URL Method | Select the HTTP method (GET or POST) for the request. |
JSON URL | Indicate whether the URL returns JSON data. |
URL Content | Specify if you want to search for specific content within the URL response. |
Parameters | Enter any request parameters to be included in the script using key/value pairs. |
Headers | Enter any header parameters using key/value pairs. |
Script Language | Choose the language for writing the parsing script (GO or Python). |
Parsing Script | Write the script here to parse the retrieved data. |
Add Variable | Add any variables needed in the parsing script. |
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.