How to feed data into Graphite?


I came across of this when wanting to back fill the data from RRDs to Graphite/whisper… The following link explains how to use nc to insert data.

http://graphite.readthedocs.org/en/1.0/feeding-carbon.html

I simply use nc in my shell script to feed it to Carbon. Below is part of the script that does that.

CARBON_PORT="2003"
CARBON_SERVER="host1"
CARBON_PREFIX="ganglia."
GRAPHITE_PATH="${CARBON_PREFIX}${CLUSTER_GRAPHITE}.${SERVER_GRAPHITE}.${METRIC_GRAPHITE}"
echo "${GRAPHITE_PATH} ${VALUE} ${TIMESTAMP}" | nc ${CARBON_SERVER} ${CARBON_PORT}
  1. No comments yet.
(will not be published)
*