Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 3.68 KB

step5.md

File metadata and controls

96 lines (73 loc) · 3.68 KB
Zero Downtime Migration Lab ℹ️ For technical support, please contact us via email.
⬅️ Back Step 5 Next ➡️
Phase 1c: Start the monitoring stack

Phase 1c

🎯 Goal: having the Ansible automation provision and start the monitoring stack associated to the ZDM Proxy.

The zdm-ansible-container also offers a playbook that installs and starts a full monitoring stack, which will make Grafana dashboards available for a detailed view of the performance of the proxy.

Edit file zdm_monitoring_config.yml and set the value of grafana_admin_password to a memorable password, leaving grafana_admin_user to its default of admin (to save and quit nano when you are done, hit Ctrl-X, then Y, then Enter):

### {"terminalId": "container", "backgroundColor": "#C5DDD2"}
cd /home/ubuntu/zdm-proxy-automation/ansible
nano +4,25 vars/zdm_monitoring_config.yml

Note: nano might occasionally fail to start. In that case, hitting Ctrl-C in the console and re-launching the command would help.

You can now launch the playbook that sets up the monitoring stack:

### {"terminalId": "container", "backgroundColor": "#C5DDD2"}
cd /home/ubuntu/zdm-proxy-automation/ansible
ansible-playbook deploy_zdm_monitoring.yml -i zdm_ansible_inventory

Once this has completed, there will be a Grafana instance waiting for you. While generally it would be reached on port 3000 at your monitoring instance's address, within this learning environment you can directly open it in a new browser tab by running the command:

### host
MONITORING_URL=`gp url 3000`
echo "Opening ${MONITORING_URL} ..."
gp preview --external ${MONITORING_URL}

(Depending on your browser and popup-blocker settings, chances are no tab will open at this point. In that case, simply grab the URL output on your console and manually point a new tab to that address.)

Log in with user admin and the password you chose, then go to Dashboards/Manage and pick e.g. the "ZDM Proxy Dashboard v1" to confirm the datapoints for the plots are pouring in.

Click for instructions

Grafana dashboards

🗒️ You have just set up a tool to keep the functioning and performance of the proxy completely under control. The time has come to make your client application talk to the proxy!

🔎 Monitoring suggestion

Please keep the dashboard open throughout the rest of this lab.

For now, just scroll through the graphs in the dashboard to familiarize yourself with it. You will inspect it more in detail in the next steps.

⬅️ Back Next ➡️