SEATTLE -- Erasmo Ramirez put a poor outing behind him and returned to his recent form.
Ramirez (2-3) allowed two hits, struck out five and walked none. The right-hander is 2-1 in five starts since coming off the disabled list on Aug. 12, but he gave up seven runs on nine hits in three innings against the Padres on Aug. 29.
"The only difference tonight is I was throwing better strikes and quality strikes," Ramirez said. "I attacked the hitters and tried to execute every pitch. I had control of my slider at any point of the count."
That start in San Diego was the only time since Ramirez returned to the rotation that he has allowed more than three runs.
"That's what he's capable of doing, but it has to be on the edges and not the middle of the plate," Mariners manager Scott Servais said. "I thought Erasmo threw the ball really well. He had a good cutter and his command was pretty good."
Edwin Diaz struck out the side in the ninth for his 52nd save and 26th one-run save, both of which lead the majors. Zach Duke, Nick Vincent and Alex Colome combined to pitch 2 2/3 scoreless innings before Diaz finished off the three-hitter.
"They battled, but I made good pitches with my slider," Diaz said. "I just go pitch by pitch. That's what I tell myself."
"That's a really good lineup they got over there," Rogers said. "But I was pretty confident the whole time. I was pretty calm and just trying to give the team a chance to win and get deep in the game."
The Mariners were coming off a four-game split at Oakland that dealt a setback to their playoff hopes. The Orioles, who have the majors' worst record, have lost four straight, scoring two runs or fewer in three of those games.
"It's kind of struggling," manager Buck Showalter said of the Orioles' offense. "We face a guy tonight that's had his issues and we just aren't swinging the bats very well. We're getting behind in a lot of counts and swinging at pitches out of the zone, uncharacteristically."
Gordon's go-ahead sacrifice fly followed Cameron Maybin's leadoff triple to the wall in right-center in the fifth. Maybin had two hits after Servais told him before the game to "let it rip."
"He talked to me about being more aggressive," Maybin said. "That's what I did and I'll continue to work on it. It's going to take everybody right now down the stretch. Everybody has to bring the energy and have fun and see where the chips fall."
Orioles: 1B Chris Davis was a late scratch because of an illness.
Mariners: LHP Marco Gonzales (strained neck) pitched a bullpen session Monday. Gonzales was placed on the 10-day DL on Aug. 27, retroactive to Aug. 24. "Marco may have one more bullpen outing before we try to bring him back into the rotation," Servais said. DH Nelson Cruz was in the lineup after fouling a pitch off his right ankle on Sunday. "It's really sore today, but you can't keep that guy out of the starting lineup," Servais said.
RHP Alex Cobb (4-15, 5.11 ERA) will make his 26th start of the season Tuesday for the Orioles. Since Aug. 1, Cobb is 2-1 with a 2.66 ERA in six starts, including a complete-game victory on Aug. 18. LHP Wade LeBlanc (8-3, 3.71) will make his 23rd start of the season for the Mariners. LeBlanc pitched seven scoreless innings in a 7-1 win at Oakland on Aug. 30.
More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP-Sports
Bird, Torres, Tulowitzki all homer in Yankees' win
Greg Bird and Gleyber Torres crank big flies in the sixth inning, and Troy Tulowitzki puts the Yankees on top in the seventh.
Harper returns as DH following HBP on ankle
Phillies outfielder Bryce Harper is batting third in Sunday's spring training game, playing two days after he suffered a right ankle bruise from being hit by a pitch.
What you need to know about MLB's new rules
Changes to the trade deadline, roster size and minimum pitcher workloads over the next two seasons should shake up your scorecards.
Olney: How the new July 31 trade deadline changes everything
Frequent trader Jerry Dipoto won't be the only GM in a hurry to make deals, as earlier swaps and a busier deadline could be in the mix.
Seager 'absolutely' set for opener, Roberts says
Although he has yet to appear in an official spring training game, Dodgers shortstop Corey Seager will be ready for Opening Day, manager Dave Roberts said.
Hinch suspended 1 spring game for ump issue
Astros manager AJ Hinch has been suspended one spring training game for calling umpire Angel Hernandez "unprofessional" and "arrogant."