Added retries and timeout parameters for Prometheus queries