Update influxdb stat script