def getUnitMapping(unit):
    """
    Map netdata mapping to grafana type.
    Input: str: unit
    Returns: str of mapped grafana unit, if not present in mapping, str(short)
    """
    units = {"kilobits/s": "Kbits",
             "kilobytes/s": "KBs",
             "% of time working": "percent",
             "cpu time %": "percent",
             "percentage": "percent",
             "KB": "deckbytes",
             "MB": "decmbytes",
             "GB": "decgbytes",
             "seconds": "s",
             "backlog (ms)": "ms",
             "operations/s": "ops"}
    if unit in units:
        return units[unit]
    return 'short'