Skip to content

Creating Custom Metrics

Create custom KPIs step by step, including group KPIs, discovery options, and availability KPIs.

4 min read Updated SS

Classic Control Center · Setup → Topology → Metrics → Custom.

Custom Metrics#

You can schedule custom KPIs for a specific time using the Control Center. The Component Agent executes the KPIs at the time you provide without any Cron tab.

1. Refer Navigation.

2. Click on the Custom tab. The following screen is displayed.

Manage Metrics Custom tab listing custom metrics with Metric Name, Metric Identifier, Components, Metric Type, Metric Group, Metric Category, Status and Actions columns

You can expand or collapse an item. Click the ⊕ icon to expand and click the ⊖ icon to collapse. If a KPI is mapped to multiple components, expand the item to view all the component names. Click ⓘ to view the descriptions of the status.

Manage Metrics Custom tab with the Data-782653815 metric expanded to show the MySQL, HP-UX and Apache Tomcat components
Custom metric item expanded to show multiple component names
Manage Metrics Custom tab with the Flow-Queue metric expanded to show the SOLARIS and IBM MQ components
Manage Metrics Custom tab with the status descriptions tooltip open explaining the Active, Inactive and partially inactive states

Creating Custom Metrics#

1. Refer Navigation.

2. Click on the Custom tab.

3. Click Add. The Control Center displays the following screen.

Add - Custom Metrics form with Component Type, Component, Common Version, Status, Metric Type, Metric Category, Metric Name, Metric Description, Metric Identifier, Metric Value Type, Metric Group Name and Additional Details fields
Add - Custom Metrics form lower section with Additional Details, Cron Expression and Collection Interval Time, with Save and Cancel buttons

Note: A valid quartz cron expression must be provided for scheduling the custom metric monitoring.

Cron Expression
* * * * * *

Seconds | Minutes | Hours | Day of Month | Week | Day of Week | Year

Example 1:
0 0 12 1W * ?
Every month on the nearest weekday to the 1st of the month, at noon.

Example 2:
0 0 */4 ? * *
Every four hours.

Add - Custom Metrics form showing the Cron Expression tooltip explaining quartz cron expression format with examples

4. Select the type of component from the Component Type box.

Add - Custom Metrics form with the Component Type drop-down open listing Application Server, Database Server, Host, Message Queue, Services, Web Server and Workload

5. Select the component from the Component box.

Add - Custom Metrics form with the Component drop-down open listing Cassandra, DB2, MSSQL, MySQL and Oracle

6. Select the version from the Common Version box.

Add - Custom Metrics form with the Common Version drop-down open showing version 10.x for DB2

7. Select the status using the Status toggle. You can activate or deactivate the metric.

Add - Custom Metrics form with Database Server, DB2 and version 10.x selected and the Status toggle set to Active

8. Select the type of metric from the Metric Type box.

Add - Custom Metrics form with the Metric Type drop-down open listing Availability, Core, Config Watch and File Watch

9. Select the category from the Metric Category box.

Add - Custom Metrics form with the Metric Category drop-down open listing categories such as Applications, Background Job Response Time, Batch Job and CPU

10. Enter the name in the Metric Name box.

Add - Custom Metrics form with Core metric type and Memory category selected, ready for the metric name entry

11. Enter the description in the Metric Description box.

Add - Custom Metrics form with the metric name custom_core_metric and the description Custom Core Memory Metric entered

12. If you select the type as Core in the Metric Type box, only then can you select the type of metric value in the Metric Value Type box. For all other types of metrics, the type of metric value is Snapshot by default. Snapshot represents the value of a KPI at a specific instance in time. It may happen that a KPI value at an instance in time is not sufficient for data processing. The Control Center performs an operation such as aggregation, average, or sum on the values of a KPI at two different instances in time. This is the Delta value for the KPI.

Add - Custom Metrics form with the Snapshot metric value type selected and the Metric Group Name box highlighted

13. Select a group KPI in the Metric Group Name box. To add a new custom group KPI, enter the group KPI name and press Enter.

Add - Custom Metrics form with the existing Port Utilization group selected and the Metric Group Description box disabled

14. You can enter a description for the metric group in the Metric Group Description box only when you add a new custom group. Otherwise, the Control Center disables the Metric Group Description box.

Add - Custom Metrics form with the new custom group core_group_1 added and the Metric Group Description box enabled

15. When you add a new custom group KPI, the Control Center enables the Discovery and Non Discovery boxes. If you select an existing group KPI, the Control Center disables these options.

If you select the Discovery option, HEAL automatically discovers the groups at run time via the KPI-related scripts. Once the data collection starts for such KPIs, you get information related to the attributes as well. In case of Non Discovery, you need to add KPI attribute-related information in the Percona database as part of SDM creation. Using this, you can validate KPI data.

Add - Custom Metrics form with the new group description New Core Group entered and the Non Discovery option selected

16. Select the data type of the KPI value from the Data Type box. It is based on the type of KPI.
Availability: Integer
Core: Integer, Float or Text
FileWatch: Text
ConfigWatch: Integer, Float or Text. Text can be up to a maximum of 32 characters.

Add - Custom Metrics form with the Data Type drop-down open listing Float and Integer under Additional Details

17. Cluster Operation - Aggregation operation performed on component instances and/or cluster level data. Should be Sum, Average or None.

Add - Custom Metrics form with the Cluster Operation drop-down open listing Average, Max, Sum and None

18. Instance Aggregation - The type of KPI value aggregation HEAL uses for rollupOperation at the component instance level. Should be SingleValue, MultiValue or None. This is applicable only if the KPI is part of a group of KPIs.

Add - Custom Metrics form with the Instance Aggregation drop-down open listing MultiValue, SingleValue and None

19. Select the unit for the KPI value.

Add - Custom Metrics form with the Unit drop-down open listing units such as Bytes, Count, Kilobytes, Megabytes and Percentage

20. Rollup Operation - Aggregation of clusterOperation HEAL performs hourly, daily, or monthly. Should be Sum, Average, Last, Max, or None.

Add - Custom Metrics form with the Rollup Operation drop-down open listing Average, Last, Max, Sum and None

21. clusterAggregation - The type of KPI value aggregation HEAL uses for rollupOperation at the cluster level. Should be SingleValue, MultiValue or None. This is applicable only if the KPI is part of a group of KPIs.

Add - Custom Metrics form with the Cluster Aggregation drop-down open listing MultiValue, SingleValue and None

22. Select the KPI collection interval frequency from the Collection Interval Time box.

Add - Custom Metrics form with all additional details selected and the Collection Interval Time set to 60 seconds

23. Enter a valid Cron expression. When you create a Cron expression, mention * in the place of seconds. The Component Agent can collect KPI data in any seconds.

Add - Custom Metrics screen with Core metric type, custom_core_metric, and additional details

24. Click Save to create a new custom KPI. Click Cancel to discard the changes.

Adding an Availability KPI#

Add - Custom Metrics screen with Availability metric type and disk_space_avail metric