Jon Gruden is experiencing the highs and lows of the Nathan Peterman experience in front of HBO’s cameras.

The Raiders backup quarterback competition is one of the secondary storylines on “Hard Knocks,” when the show is not delving into the Antonio Brown foot and helmet drama.

“Get in here, Nate, f–k. That just ruined my weekend,” Gruden is seen barking at Peterman after a frustrating practice play.

Gruden has long been a fan of Peterman, who was miserable in six games for the Bills over two seasons.

“Throw it to him, you’ve got a good enough arm. Sting it, man,” Gruden said after a practice play gone awry. “You’re never going to go broke making a profit. You know that? I learned that a long time ago.”

The Raiders coach took a flier on Peterman after he was released by the Bills. And there was some reward as Peterman went 8-for-8 during a preseason win over the Cardinals while leading the team on a touchdown drive.

“This is good s–t,” Gruden said of Peterman, in a conversation with starting quarterback Derek Carr.

Still, Peterman appears to be trailing Mike Glennon, who was 11-for-14 with 175 yards and two touchdowns against Arizona, for the No. 2 spot. Glennon has been the one to come in after Carr in both the Raiders’ preseason games. Gruden was shown discussing that decision before the Cardinals game.

“I like Glennon right now. I mean to stay where he is,” Gruden said when asked if Peterman should be the second quarterback to play.

“I think next week in Green Bay the two kids are going to play a lot, so.”