Convert string to integer for metrics

Hi, I am use promtail and loki to parse some logs.

I have some integer values but i think Loki don’t see them like integer.

I want to calculate the integer how i can do that ?

Can i tell loki to parse integer value ?