Skip to main content

Create Database Metric Plugin

Overview

Creating a Database Metric Plugin in Motadata AIOps allows you to define custom metrics for monitoring purposes using data retrieved from databases. This enables you to monitor specific parameters within your databases and incorporate them into your overall 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. Select Database to create a Database Metric Plugin.

Database Metric Plugin Fields

When creating a Database Metric Plugin, you'll need to complete 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.
Credential ProfileSelect the credential profile to access the selected monitors.
PortSpecify the Database Port.
TimeoutSpecify the timeout to establish the connection with the port.
SQL ScriptWrite the SQL script in this window.
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.

Once you've filled in these fields, you'll be able to define custom metrics using the Database 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.