Skip to main content

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.

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:

FieldDescription
Metric NameName of the metric you're defining.
TypeType of monitor for which you're creating the plugin.
Monitor/GroupChoose 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/GroupsSelect the specific monitor(s)/group(s) to which you want to assign the plugin.
URL EndpointSpecify the URL endpoint from which data will be retrieved.
Credential ProfileSelect the credential profile to access the selected monitors.
URL TypeChoose whether the URL is HTTP or HTTPS.
URL MethodSelect the HTTP method (GET or POST) for the request.
JSON URLIndicate whether the URL returns JSON data.
URL ContentSpecify if you want to search for specific content within the URL response.
ParametersEnter any request parameters to be included in the script using key/value pairs.
HeadersEnter any header parameters using key/value pairs.
Script LanguageChoose the language for writing the parsing script (GO or Python).
Parsing ScriptWrite the script here to parse the retrieved data.
Add VariableAdd 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.