In StackState, the events visible in the Events Perspective are related to elements (components or relations). In our example, the events sent to StackState by the report processor will be related to the host that Puppet runs on.
Clone the repository to your laptop to get started.
Before you get started, StackState must be configured to handle the data that will be sent from the sample project. The project uses a StackState Agent installed on the virtual machine to send data in a format that is consumed by the StackState Agent v2 StackPack.
The sample project will handle installation of a StackState Agent on the virtual machine. You will need to install the Agent v2 StackPack in StackState to interpret the data it sends. If you're running the tutorial on an existing instance of StackState, we advise you to install a dedicated instance of the Agent v2 StackPack for the tutorial. This will allow you to easily clean up and remove all configuration and topology imported during the tutorial when you're finished.
Preparing the tutorial
First, boot the virtual machine using Vagrant:
Vagrant will download a virtual machine image and provision a virtual machine. When it is finished, you can log into the machine using the command:
The rest of this tutorial assumes you are running as the root user. Use the following command to change to root in your virtual machine:
sudo su -
Before running the example, you need to configure the sample project with your StackState instance URL and API key.