Stateful Services (private release) Build composable event-driven data pipelines in minutes.

Request access

Graphite Connector

Data Direction Inbound Outbound

Outbound Connector

The Graphite Sink connector reads records from Fluvio topic and sends them to the configured Graphite’s Metric using the PlainText approach.



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, the Graphite’s TCP server address is specified on the addr field.

# sample-config.yaml
apiVersion: 0.1.0
  version: 0.1.2
  name: my-graphite-connector-test-connector
  type: graphite-sink
  topic: test-graphite-connector-topic
  metric-path: ""
  addr: "my-graphite-host:2003"

Configuration Fields

Model Data Type Description
metric-path String Graphite Metric to send records to
addr String Graphite TCP Address to stream out


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.

Create a copy of our docker-compose.yml file and execute the container:

version: '3'

    image: graphiteapp/graphite-statsd:1.1.10-4
      - '12345:80'
      - '2003-2004:2003-2004'
      - '2023-2024:2023-2024'
      - '8125:8125/udp'
      - '8126:8126'
      - ./.graphite/conf:/opt/graphite/conf
      #  Enable full debug page display on exceptions (Internal Server Error pages)
      GRAPHITE_DEBUG: True```

docker compose up --build -d

This will generate a directory with the name .graphite, which contains configuration files.

Replace the contents of .graphite/conf/storage-schemas.conf to record on an interval of 10 seconds and persist the last 12 hours of data.

pattern = .*
retentions = 10s:12h

Now we need to re run the Graphite container so Carbon uses the new configuration.

docker compose down
docker compose up --build -d

You can visit http://your-graphite-host:12345 in your browser to access the Dashboard.

Credentials for the Dashboard are User: root and Password: root

With the Graphite instance set, we can move into Setting Up Fluvio with Graphite Sink Connector.


Setting Up Fluvio with Graphite Sink Connector

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:

apiVersion: 0.1.0
  version: 0.1.2
  name: weather-monitor-sandiego
  type: graphite-sink
  topic: weather-ca-sandiego
  metric-path: ""
  addr: "your-graphite-host:2003"

Deploy the Connector using the Fluvio Cloud CLI

fluvio cloud connector create --config weather-monitor-config.yaml

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:

echo 120 | 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.

curl -o ./data.json http://localhost:12345/render\?target\\&format\=json\&noNullPoints