def format_key_to_etcd(key):
    """Format a dot based key as a etcd key.

    Args:
        key (str): Path to the setting.

    Returns:
        str: Formatted key.
    """
    return "/" + key.replace(".", "/")