How to increase threshold for re_adapter_bill and re_adapter_rate alerts in Prometheus
Modified on: Fri, 17 Nov 2023 1:13 PMOriginal Publishing Date:
2022-12-15
2022-12-15
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:
- From a computer with access to Kubernetes cluster with a monitoring solution deployed, run the following command:
$kubectl -n NAMESPACE edit prometheusrule oss
- In the opened editor, locate the lines related to the re_adapter_rate and re_adapter_bill alerts.
- 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.