code: def getPathPrefix(self):
          
          # If we don't have a host name, assume it's just the first part of the
          # metric path
          if self.host is None:
              return self.path.split('.')[0]
  
          offset = self.path.index(self.host) - 1
          return self.path[0:offset]
docs: Returns the path prefix path
              servers.host.cpu.total.idle
              return "servers"