port to OpenTSDB2.0