Carbon aggregation and rewrite rules
I have a setup where I am receiving metrics via UDP from many hosts – see carbon.conf configuration file below. I need to rewrite some of the metric names before they are saved in the database. In reviewing the documentation, it is possible to do that via the rewrite-rules.conf, which requires that I first enable carbon aggregation. Since I am already receiving metrics via UDP, I would like to have the carbon aggregator to receive those via the UDP protocol, apply any rewrite rules, then store the metrics. In this case, the carbon aggregator is the same as my carbon cache host.
In trying to get this to work, it does not look like carbon aggregator will start on a UDP port. When I have started and stopped the daemon, it never starts a service on the UDP port specified - I have looked at the log messages that get generated and 'ss -ua' command.
Note: the aggregation-
Questions:
1. Can the aggregator run on a UDP port?
2. Is my configuration file correct?
3. Anything else I should be looking at?
carbon.conf file:
[cache]
LOCAL_DATA_DIR = /raid/whisper/
USER = carbon
MAX_CACHE_SIZE = inf
MAX_UPDATES_
MAX_CREATES_
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2023
ENABLE_UDP_LISTENER = True
UDP_RECEIVER_
UDP_RECEIVER_PORT = 2023
PICKLE_
PICKLE_
USE_INSECURE_
CACHE_QUERY_
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[relay]
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2013
PICKLE_
PICKLE_
RELAY_METHOD = rules
REPLICATION_FACTOR = 1
DESTINATIONS = 127.0.0.1:2004
MAX_DATAPOINTS_
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
[aggregator]
LINE_RECEIVER_
LINE_RECEIVER_PORT = 2003
PICKLE_
PICKLE_
ENABLE_UDP_LISTENER = True
UDP_RECEIVER_
UDP_RECEIVER_PORT = 2003
DESTINATIONS = 127.0.0.1:2023
REPLICATION_FACTOR = 1
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
MAX_DATAPOINTS_
MAX_AGGREGATION
Thanks,
--Curt
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: