The NYPD’s top cop on Monday groused that the Brooklyn DA is going too easy on gun-possession cases — as officials announced that shootings are up citywide despite a downswing in overall crime.

Of 158 guilty pleas that Brooklyn DA Eric Gonzalez has obtained for weapons possession, 47 resulted in the guilty party entering a no-jail diversion program, according to NYPD Chief Terence Monahan.

“We have diversions in Brooklyn at a very high rate,” he said during a press conference on crime statistics. “I don’t think that 30% of gun arrests … should have a case sealed. Our police officers are out there taking guns off the streets, and we just have to make sure that, as we go through the criminal justice process, that there are consequences for those arrests.”

But the Brooklyn DA’s office shot back, blaming the police for failing to tamp down on shooting incidents, which have risen 7% citywide for the year — and 27% in June compared to the same month last year.

“The real problem isn’t diversion, but the fact that approximately 67% of shootings and homicides in Brooklyn North remain unsolved, leaving violent individuals on the streets,” a Gonzalez spokesman said.

Shootings are up by 16 in Brooklyn North and down by 18 in Brooklyn South year-to-date — for a net reduction of two borough-wide, the DA rep said.

Brooklyn’s diversion program, which predates Gonzalez and has been in place for a decade, allows young offenders with no prior violent record who possessed — but are not accused of firing — a gun to plead guilty to criminal possession of a weapon in exchange for no jail time.

If they are arrested again for anything, they face a 3 ½-year prison sentence — the minimum for the gun-possession charge that they already pleaded to — in addition to penalties for the new crime if they are found guilty, the DA’s rep said.

Suspects are vetted before being offered a deal, and those who take it must hold down a job, check in with the DA’s office weekly and observe a curfew, the rep said, adding that participants have a lower recidivism rate than those who are convicted and imprisoned for weapons possession.

Still, the program has had its failures — such as the 22-year-old Brooklyn man who was busted last month for weapons possession just three months after entering the programwhen cops pulled over a crowded car he was in and found a Smith & Wesson .22-caliber pistol.