Deployment

Let's begin by creating a new instance of Prometheus and deploying it to the server:

  1. To create a new instance of Prometheus, move into the correct repository path:
cd chapter09/
  1. Ensure that no other test environments are running and spin up this chapter's environment:
vagrant global-status
vagrant up
  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset