"Give thanks in all things." -1 Thessalonians 5:18
One quick thought about this verse; it tells us to give thanks in all things, not for all things. It is absolutely true that YHWH does work all things together for the good of those who love him but that doesn't necessarily mean all things are from him.
1 Chronicles 16:8 tells us to call on the name of YHWH, right after saying, "Give him thanks!" That is because we need YHWH. Our world is not perfect and it doesn't have to be for us to be thankful for his promises and truth. Let's be thankful that we can call on him.