def GetMetricsFromUsers(user):
    """For each user, produce a dict of metric data"""
    metrics = []

    labelset = {
        'user': user['name']
    }

    # Get last login from now
    metrics.append({'metric': 'user_session', 'value': user['sessions'], 'labelset': labelset})
    metrics.append({'metric': 'user_last_login', 'value': user['last_login'], 'labelset': labelset})
    metrics.append({'metric': 'user_last_active', 'value': user['last_active'], 'labelset': labelset})

    return metrics