Tutorial related to expanding on on the initial Graphite installation approach
here and adding a Carbon Relay instance
to send metrics to multiple Carbon Cache instances.
Warning
Note that the resulting Carbon Relay setup from these instructions is NOT for production use. These
instructions are for setting up an initial test/dev setup of Carbon Relay to understand how the application
functions.
Prerequisites
This tutorial assumes that multiple Carbon Cache instances are already provisioned and configured to
accept metrics on a local or remote host. The tutorial is scoped to installing and configuring a Carbon
Relay agent to send metrics downstream to multiple Carbon Cache instances.
Dependencies
Install the required dependencies:
Process
Installation/Configuration
Create the Python virtual environment and set up the path settings:
Clone and build/install the required components:
Create the configuration (default) files:
Create the carbon group and user for the carbon service:
Adjust permissions for files, binaries and directories for the Carbon user:
Start the carbon relay, and ensure it is running:
Validation
Ensure the carbon relay process is running/listening on correct ports:
Send some new data and validate the data is received and stored by each carbon cache. For instance,
run the netcat (nc) command on a local host and point it at the relay instance IP address or hostname
to send the test metric to the relay. Once performed, navigate to the instance running each carbon
cache service and run the whisper-fetch.py script to ensure that the metric made it from the relay
down to the whisper database.
Credit
Contributions to some of the above were gleaned from: