New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High Azure Network API calls by azure_sd_config causing API throttling #8481
Comments
Thank you, this is a recurring/known limitation of azure, but can you share a bit of your prometheus config so we can see if the discovery configs are used as expected? |
Hi @roidelapluie : Here is my config
|
Thank you!! You configuration is correct but there is a way to reduce the calls to the Azure API. Prometheus is able to reuse the same SD configs, reusing the same API calls for multiple jobs. The condition for this is that the SD config is exactly the same. In you case you should make That would require you to align your configurations and reuse In your case, you will also need to split your configuration in multiple jobs (I assume it is the case and you have provided a partial config):
That would divide the calls to the azure API by 4. |
Thanks @roidelapluie for the help.The above trick of reusing SD for multiple jobs drastically reduced the number of API calls.We also discovered we had similar 20 more jobs running and optimized those too.I guess this is one of the feature which should be well documented in the official prometheus document. |
We are using azure_sd_config to discover VM's and VMSS.How ever for around 400 VM+VMSS Prometheus is making 60k+ API calls where as Azure has a limit of 10k API calls.This is causing instability for other application who are making azure API calls
Can we optimize the azure discovery codebase to reduce the number of calls ?
System Information :
The text was updated successfully, but these errors were encountered: