Hi Gianluca, It sounds like you're on the right track with trying to avoid waiting on rate limits, but the issue seems to stem from how the `Retry-After` header is being handled by the Meraki API client. By default, the client respects this header, even if `wait_on_rate_limit=False` is set. This setting doesn't override the behavior of waiting on 429 responses; it's more about controlling automatic retries for specific API calls. To resolve this, you may need to modify your custom script to handle 429 responses manually. When you get a 429 status, you could just skip that device and proceed with the next one, returning an empty response to Prometheus. This way, you avoid waiting for the retry and let Prometheus handle the retry logic at its own interval. You can also check the `Retry-After` value directly in your script and decide whether to proceed with the next device immediately.
... View more