The use case for making these adjustments is when you see this error while using Grafana or our Instana API:
"API rate limit for zone default exceeded."
The solution below will work on all containerized on-prem versions. Also, there is currently no way to persist this change over product updates. Every time this happens, you need to manually adjust the limit again. You should also be aware that the API limit is there to keep the backend from crashing due to heavy API calls. It can be raised but keep in mind that this will cause performance issues to the backend if it does not have enough resources.
1 - Find this file on your backend machine:
2 - Update this part with the number you need:
- key: default
3 - Restart the container of
ui-backend following these steps:
docker ps -a | grep "ui-backend"
4 - You will get <container_id> needed for the next step:
docker restart <container_id>
5 - To confirm the change, you can run some basic curl command and check the X-RateLimit-Limit variable if it's updated with the new value:
curl --request GET -v -k --url 'https://<host_name>/api/infrastructure-monitoring/catalog/plugins' --header 'authorization: apiToken <api_key>'