<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def main():
 """Get the data from a Netdata instance."""

    with aiohttp.ClientSession() as session:
        data = Netdata('localhost', loop, session, data='data')
        await data.get_data('system.cpu')

        print(json.dumps(data.values, indent=4, sort_keys=True))

        # Print the current value of the system's CPU
        print("CPU System:", round(data.values['system'], 2))

    with aiohttp.ClientSession() as session:
        data = Netdata('localhost', loop, session, data='alarms')
        await data.get_alarms()

        print(data.alarms)

    with aiohttp.ClientSession() as session:
        data = Netdata('localhost', loop, session)
        await data.get_allmetrics()

        print(data.metrics)

        # Print the current value for the system's CPU
        print("CPU System:", round(data.metrics['system.cpu']
                                   ['dimensions']['system']['value'], 2))