Whatever new metrics or less metrics, this must be activated first
This is done via a new entry in <HPA agent dir>/override_config folder:
- if not existing the folder
./customMetricsmust be created - if not existing inside
./customMetrics, the new filehpa_customerconfig.pblmust be created
The hpa_customerconfig.pbl will contain a reference to each .pbd file created to change the HPA native behavior for metrics management
Activate the PBD file
To activate the PBD file, it must be added it at the end of <HPA agent dir>/override_config/customMetrics/hpa_customerconfig.pbl
For example:
#####
# Add here your custom directives.
# Be sure to valide it with Hexagon support team
# Example : custom_metric.pbd
# Example : other_set_of_custom_metrics.pbd
my_new_custom_metric.pbd
Hot reloading
As soon as PBD or PBL files are modified, their modifications are applied in the next minutes without any restart
Note that for performance reason, groovy scripts used for new metrics are compiled only the first time it is executed and then can not be modified without renaming