Creating Custom Metrics
Create custom KPIs step by step, including group KPIs, discovery options, and availability KPIs.
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.

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.




Creating Custom Metrics#
1. Refer Navigation.
2. Click on the Custom tab.
3. Click Add. The Control Center displays the following screen.


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.

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

5. Select the component from the Component box.

6. Select the version from the Common Version box.

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

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

9. Select the category from the Metric Category box.

10. Enter the name in the Metric Name box.

11. Enter the description in the Metric Description box.

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.

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.

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.

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.

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.

17. Cluster Operation - Aggregation operation performed on component instances and/or cluster level data. Should be Sum, Average or 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.

19. Select the unit for the KPI value.

20. Rollup Operation - Aggregation of clusterOperation HEAL performs hourly, daily, or monthly. Should be Sum, Average, Last, Max, or 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.

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

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.

24. Click Save to create a new custom KPI. Click Cancel to discard the changes.
Adding an Availability KPI#
