Symptoms

You can get frequent alerts from CloudBlue Commerce monitoring system (for example, Prometheus) similar to these:

re_adapter_bill value exceeds threshold (> 5)
re_adapter_rate value exceeds threshold (> 5)


Cause

This happens when processing an order in Rating Engine takes more than 5 seconds, which can happen pretty often. If you get such alerts, you may want to increase the time threshold.


Resolution

To increase the threshold, complete these steps:

  1. From a computer with access to Kubernetes cluster with a monitoring solution deployed, run the following command:
    $kubectl -n NAMESPACE edit prometheusrule oss  
  2. In the opened editor, locate the lines related to the re_adapter_rate and re_adapter_bill alerts.
  3. Change the values highlighted in the picture above from 5 to 30 and save the changes.

After that, Rating Engine will have more time to process an order and you will get fewer alerts of such a kind.


Internal