- Replace int8 with int in the states map - Cast the printer state values to int when updating the states map - Update the metrics values to use int(ipp.PrinterState<state>) with the corresponding state names as labels