Pop singer Bruno Mars will plead guilty to cocaine possession in a plea deal stemming from his arrest last year. 

The deal will allow the singer -- whose real name is Peter Hernandez -- to pay a $2,000 fine, serve one year of probation and have the felony cocaine possession charge against him dismissed. He will also be required to perform 200 hours of community service and attend drug counseling.

Mars spent a night in a Las Vegas jail after his arrest last September following a performance at a local nightclub.

The plea agreement comes just weeks before the 53rd Grammy Awards show in Los Angeles on February 13. Mars is nominated for seven awards, including best male pop vocal for his hit, "Just the Way You Are." He also co-wrote "F*** You" with Cee-Lo Green and was featured on B.o.B's Nothin' on You, which is nominated for record of the year.

Related stories on ETonline.com:JUST IN: Charlie Sheen Enters Rehab

CELEB GPS: Christina Aguilera Out With New Man