Unable to see the Category for Custom KPI
Unable to see the Category for Custom KPI in Key Performance Indicator (KPI) Issues.
Unable to see the Category for Custom KPI#
Availability group KPI was created and mapped to one instance from the backend but unable to see the category of the KPI in UI.
Solution: Follow the below steps to rectify the issue,
1. Check the mapping of the custom KPI: The custom KPI was mapped to the custom category. Also had an existing comp_instance for finnacle component with KPIs mapped to it (On the same custom KPI that was tried to map).
2. Mapping the KPI: Mapped the custom KPI to the ‘Availability ’ category.
Note: KPIs will get mapped to an instance only during instance creation.
3. So, create a new comp_instance after which category/custom KPI is seen.
4/12/24 hrs data is not showing properly for custom KPI#
Issue: In last 30 mins data, it could be seen that the KPI values are in the range of 0 to 3 and the graph constant.
However, when 4/12/24 hrs window is selected, the KPI values are ranging from 15 to 35 and the graph is fluctuating.
The rollup_operation was set as ‘Average ’.
So, the expectation is that 4/12/24 hrs window should give average value for that time period.

The cluster_aggregation_type and instance_aggregation_type in mst_kpi_details table is set as multi value aggregation (196) for the custom KPI.
Solution: Follow the below steps to rectify the issue:
1. Execute the below query in percona to change cluster_aggregation_type and instance_aggregation_type to none.
update mst_kpi_details set cluster_aggregation_type=197 where
id=1378;
update mst_kpi_details set instance_aggregation_type=197 where
id=1378;
2. After the update, restart keycloak and KPI collated processor after which the data is processing fine.
Issue with Adding Custom Producer#
Issue:
Difficulty in adding a custom producer due to a mismatch in KPI group classifications.
Error:
2021-11-25 14:21:18,088 - [ERROR]
com.appnomic.appsone.controlcenter.businesslogic.Producer:524
Invalid kpi mapping found.
ProducerKpiMappingDetails(kpiIdentifier=Process_Status,
componentVersionId=1.1, componentName=ACE APP,
componentTypeName=Application Server, isDefault=1)
Solution:
1. Consistency Check:
a. Ensure that if a KPI is created as a non-group KPI, the producer should also be created as a non-group KPI.
b. Check the "isGroupKpi" attribute for any mismatches between the KPI and producer configurations.
2. Correction: If there is a mismatch, align the KPI and producer settings to either group or non-group KPI as required.
Getting 1046 Custom-KPI Issue#
Error:
Encountering an unknown error code "E1046 " related to a custom KPI name.
Solution:
1. Producer Parameters Correction:
a. Identify if the PARAM_T YPE is incorrectly set as ENV_PARAM instead of COMMANDLINE in the producer_parameters table in Percona.
b. This issue arises when arguments are passed along with the script, necessitating the use of COMMANDLINE as the PARAM_T YPE .
2. Database Update: Execute the following SQL update to correct the parameter type,
update producer_parameters set PARAM_TYPE='COMMANDLINE' where
mst_producer_id='<id>';
3. Restart and Verification:
a. Restart the CA (Component Agent) to apply the changes.
b. Post-restart, confirm if the data collection was successful and the data is visible in the UI.
Port Util Group KPIs Count Showing Abnormally High Values#
Issue:
Port Utilization group KPIs were displaying data in the billions, which is unrealistic.
Solution:
1. Argument Format Correction:
a. Adjust the format of the port numbers passed as arguments to the script. Ensure that the port numbers were listed in the correct order:
"13786|13714|13715|13716|13853|13753|13953"
b. Repeat this argument string for all necessary instances.
2. Data Verification:
a. After making these changes, the data collection should normalize, and the KPI data should no longer show inflated values.


E1201: Missing Arguments in SSH Script for KPI "POOL_AVAILABLE_COUNT"#
Issue:
Data collection was not occurring for the "POOL_AVAILABLE_COUNT " KPI due to missing arguments in the SSH script. The issue was traced to attributes not being updated in the comp_instance_attribute_values table.
Solution:
1. Database Update: Ensure that all relevant attributes for the component instance are updated in the comp_instance_attribute_values table.
For Example: Updates include,
update comp_instance_attribute_values set
attribute_value='mbnkadmin' where id=56;
update comp_instance_attribute_values set
attribute_value='D:/JBOSS6/bin' where id=63;
update comp_instance_attribute_values set
attribute_value='192.0.2.11' where id=59;
2. Specific KPI Focus: The updates are specific to the "POOL_AVAILABLE_COUNT " KPI.