Does the Carbon aggregator support UDP?

Asked by Hrishikesh Barua

In carbon.conf, the UDP listener configuration is under [cache]. There is a separate section for [aggregator]. Does this mean that I cannot configure the aggregator to listen over UDP? What is the correct configuration for a scenario where I clients will talk to the aggregator over UDP?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Curt Kersey
Solved:
Last query:
Last reply:
Revision history for this message
Best Curt Kersey (curtkersey) said :
#1

Hrishikesh,
Yes, the carbon aggregator does support UDP - I am using it. You can copy the UDP listener configuration to the [aggregator] section. The only thing to know in addition to that is that the aggregator will send to carbon cache's pickle port, so you will need to make sure your configuration is correct for that.

Here are snip-its from my configuration to show it working. Also - look in the log files once you have started the carbon-cache and carbon-aggregator services on your host. You will see messages in there that show the aggregator and cache are communicating with each other.

Sample configuration (partial - only showing network ports for communication):

[cache]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT 2023
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT 2004

[aggregator]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT 2003
ENABLE_UDP_LISTENER = True
UDP_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_PORT 2003
DESTINATIONS = 127.0.0.1:2004

In this configuration, packets are received by aggregator via UDP on port 2003, and it forwards the metrics to carbon cache on pickle port 2004.

--Curt

Revision history for this message
Hrishikesh Barua (talonx) said :
#2

Thanks Curt Kersey, that solved my question.

Revision history for this message
Hrishikesh Barua (talonx) said :
#3

And apologies for the late reply - I just got back to this project after a while :)