Send metric value as float instead of string

InfluxDB needs the metric value as a float64 or int64 not a string. Without this change InfluxDB is unable to perform functions like mean and median on the stored values.