To generate this chapter's virtual machine (VM) based test environment, go to the correct repository path, relative to the code repository root:
cd ./chapter10/
Ensure that no other test environments are running and spin up this chapter's environment, as follows:
vagrant global-status
vagrant up
You can validate the successful deployment of the test environment using the following code:
vagrant status
This will give the following output:
Current machine states:
prometheus running (virtualbox)
grafana running (virtualbox)
This environment represents multiple VMs. The VMs are all listed above with their current state. For more information about a specific VM, run `vagrant status NAME`.
When the deployment tasks end, you'll be able to validate the following endpoints on your host machine using your favorite JavaScript-enabled web browser:
Service |
Endpoint |
Prometheus |
http://192.168.42.10:9090 |
Grafana |
http://192.168.42.11:3000 |
You should be able to access the desired instance by using one of the following commands:
Instance |
Command |
Prometheus |
vagrant ssh prometheus |
Grafana |
vagrant ssh grafana |