Skip to content

Commit

Permalink
fix: Increase proxy_read_timeout for prometheus queries
Browse files Browse the repository at this point in the history
fix: Increase proxy_read_timeout for prometheus queries

Need to update --query.timeout parameter for Prometheus

Reference: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout
  • Loading branch information
adityahase authored Oct 2, 2024
1 parent fd70f4d commit 78b6ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/templates/agent/nginx.conf.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ server {
auth_basic "Monitoring";
auth_basic_user_file /home/frappe/agent/nginx/grafana.htpasswd;
proxy_pass http://127.0.0.1:9090/prometheus;
proxy_read_timeout 600;
proxy_read_timeout 1500;
}

location /alertmanager {
Expand Down

0 comments on commit 78b6ee3

Please sign in to comment.