

def cache_record(metric, value):
    if (settings.instance is None):
        fullMetric = ('carbon.agents.%s.%s' % (HOSTNAME, metric))
    else:
        fullMetric = ('carbon.agents.%s-%s.%s' % (HOSTNAME, settings.instance, metric))
    datapoint = (time.time(), value)
    cache.MetricCache.store(fullMetric, datapoint)

dataset/ETHPy150Open tmm1/graphite/carbon/lib/carbon/instrumentation.py cache_record/original