Getting Started with the Agent
To get started using the Agent, please select your platform on the sidebar to the left.
What is the Agent?
The Stackstate Agent is a piece of software that runs on your hosts. Its job is to faithfully collect events and metrics and bring them to Stackstate on your behalf so that you can do something useful with your monitoring and performance data.
The source code for the Stackstate Agent can be found here.
For information on running the Agent through a proxy please see here; for which ranges to allow, please see here.
The Agent has three main parts: the collector, stsstatsd, and the forwarder.
- The collector runs checks on the current machine for whatever integrations you have and it will capture system metrics like memory and CPU.
- Stsstatsd is a statsd backend server you can send custom metrics to from an application.
- The forwarder retrieves data from both stsstatsd and the collector and then queues it up to be sent to Stackstate.
This is all controlled by one supervisor process. We keep this separate so you don’t have to have the overhead of each application if you don’t want to run all parts (though we generally recommend you do).
If you think you might be experiencing issues, the first thing to do is run the info command and check the Agent logs. The info command and the log locations are dependent on your OS, which you can select from the navigation to the left for further information.
Issues getting the Agent installed
If you encountered an issue during the Agent installation that prevented any installation whatsoever from occurring, please reach out to email@example.com. Please let us know your OS and version, as well as how you are installing the Agent (and which agent version). Also, please include the errors you encountered along the way.
Issues getting the Agent reporting
If you get the Agent installed but are not seeing any data in Stackstate, you can troubleshoot in the following manner. First, run the info command. Select your OS in the nav column on the left of this page to see how to run this. Does running the info command show any errors?
If not, you should also check the logs (location of the logs again depends on OS). Errors in the logs may also reveal the cause of any issues.
If not, please send both the full output of the info command and the logs as attachments to firstname.lastname@example.org.
Check your machine's time
We have also seen a few cases where machines have their clock set further in the future or the past, which can sometimes cause problems with metric submission. Make sure the clock on the machine StackState is running and metrics are collected are properly synced.
Issues getting integrations working
Stackstate has quite a few integrations which are set up through YAML files in the Agent.
Here is a quick guide for troubleshooting getting integrations installed:
Run the info command (find this based on your OS in the left column above).
Is the integration showing up in the info command?
- No, it’s not.
- Check the configuration file, make sure it is in the right location and named correctly.
- Check it in a YAML parser to make sure it has the correct syntax. Example files can be found here.
- If you moved or changed the file, restart the Agent and then rerun the info command to see if it is now showing up.
- Yes, it’s there.
- Check the logs for errors and please send them along, with the info command output, to email@example.com.