

def _format_metric_name(self, m_name, cfunc):
    ' Format a cacti metric name into a Datadog-friendly name '
    try:
        aggr = CFUNC_TO_AGGR[cfunc]
    except KeyError:
        aggr = cfunc.lower()
    try:
        m_name = CACTI_TO_DD[m_name]
        if (aggr != 'avg'):
            m_name += ('.%s' % aggr)
        return aggr
    except KeyError:
        return ('cacti.%s.%s' % (m_name.lower(), aggr))

dataset/ETHPy150Open serverdensity/sd-agent/checks.d/cacti.py Cacti._format_metric_name/VarMisuse@72/135 `m_name`->`aggr`