'Graphite does not impose a particular metric structure.
So this is where you can insert logic to extract various bits
out of the graphite metric name.
For instance, if the hostname is in 4th position,
you could use: host = components[3]'

def _parseMetric(self, metric):

    try:
        components = metric.split('.')
        host = self.hostname
        metric = metric
        device = 'N/A'
        return (metric, host, device)
    except Exception:
        log.exception(('Unparsable    metric:    %s' % metric))
        return (None, None, None)
