← Back to team overview

graphite-dev team mailing list archive

Re: [Question #163389]: produce data into amqp and read by carbon-cache

 

Question #163389 on Graphite changed:
https://answers.launchpad.net/graphite/+question/163389

    Status: Open => Answered

chrismd proposed the following answer:
Carbon declares its own exclusive queue. It creates a binding for that
queue to the exchange for each bind pattern specified in the
BIND_PATTERNS setting.

You can send messages one of two ways, depending on how you set the
AMQP_METRIC_IN_BODY setting. If it is False, the messages you send
should have the metric path as the routing key and the body of the
message will be

<value> <timestamp>\n
...

If AMQP_METRIC_IN_BODY is True however, the routing key can be anything
you want and the contents of the message must be:

<metric-path> <value> <timestamp>\n
...

Hope that helps.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.