Ansible is a configuration management tool that can be used to automate setup of servers, databases, and more. The Metricly Agent playbook will help get the Metricly Linux agent up and running in your environment quickly.
- Copy the Metricly Agent playbook to your Ansible directory.
cd /ansible git clone https://github.com/netuitive/ansible-netuitive-agent.gitThe Metricly Agent playbook is part of our open source community, so feel free to check out the source code.
- In the Metricly Agent playbook (netuitive-agent.yml), update the hosts setting to use desired host or inventory file.
- Replace apikey in the metricly_linux_api setting with the API key from the Linux integration in your Metricly account. To find this API key, point to the user account menu in the top right-hand corner of Metricly and select Integrations. Your Linux API key is found next to the integration listed as INFRASTRUCTURE.
- Run the Metricly Agent playbook, replacing hosts-file-name with the name of your hosts file.
ansible-playbook -i hosts-file-name netuitive-agent.yml