The Graphite Sink connector reads records from Fluvio topic and sends them to
the configured Graphite’s Metric using the PlainText approach.
Configuration
This connectors establishes a TCP Stream against the specified host on Graphite,
records are sent as UTF-8 encoded strings following Graphite’s PlainText format.
The following example connector configuration can be used to send records to
the Graphite’s Metric weather.temperature.ca.sandiego, the Graphite’s TCP
server address is specified on the addr field.
This section will walk you through the process of setting up a Graphite
instance and using InfinyOn Cloud to send metrics to this Graphite instance.
This section assumes you have Docker and Fluvio installed on your host, and it is reachable by InfinyOn Cloud.
Setting Up Graphite
We will run our Graphite instance on Docker using the docker compose command
for simplicity.
The Graphite container will setup Carbon Configuration files in your
working directory, we need to update these files to reduce Carbon’s persistance
intervals, making it more frequent.
In this section we are going use the Fluvio Cloud CLI to spin up the Graphite Sink Connector
to send metrics from Fluvio Records to the Graphite instance.
If you don’t have the Fluvio CLI installed already visit the CLI section
Create a YAML file with the name weather-monitor-config.yaml and specify connector settings:
Make sure your Graphite instance is running on my-graphite-host:2003, use the
fluvio cloud connector log weather-ca-sandiego subcommand to read logs from the connector instance.
Then produce records as usual:
echo120| fluvio produce weather-ca-sandiego
Remember that Carbon’s retention is set to 10s:12h, this means that if will
write metrics every 10s.
Use Graphite’s REST API to check on the stored data.