lua script to emit metrics info to tsdb server