Reworked stats to use influxdb instead of graphite