Where in Scripture do we have an example of it’s okay to be mad at God? Jonah was mad at God to his own detriment, but no example can be found in Scripture where anger at God is condoned.
Even Michael the archangel “did not dare pronounce against [Satan] a railing judgment, but said, “The Lord rebuke you.” (Jude 9) How much more serious to vent anger on God, who is our righteous, just and loving, Creator! We know that the fear of God is the beginning of wisdom. It would follow that to be angry at God is the beginning of foolishness.