Let's begin by creating a new instance of Prometheus and deploying it to the server:
- To create a new instance of Prometheus, move into the correct repository path:
cd chapter09/
- Ensure that no other test environments are running and spin up this chapter's environment:
vagrant global-status
vagrant up
- Validate the successful deployment of the test environment using the following code:
vagrant status
This will output the following:
Current machine states:
prometheus running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
The new instance will be available for inspection and the Prometheus web interface will be accessible at http://192.168.42.10:9090.
You can now access the prometheus instance by executing the following command:
vagrant ssh prometheus
Now that you're connected to the prometheus instance, you can validate the instructions described in this chapter.