"query timed out in expression evaluation"

I’m getting error “query timed out in expression evaluation” in grafana dahsboard, however this query is executing in prometheus directly for about 180 seconds
what and where timeout could be configured in grafana to avoid this error message?