← Back to team overview

graphite-dev team mailing list archive

[Question #294591]: carbon aggregator not aggregate data correctly

 

New question #294591 on Graphite:
https://answers.launchpad.net/graphite/+question/294591

I config carbon aggregator to "sum" my counter at 5s frequency. But when I feed the data to aggregator on port 2023, it just forward the metrics to carbon-cache (without aggregating data)

******DATA FEED COMMAND******
$ while [[ true ]]; do echo "gplus-service.192-168-30-133.http.status.200.GET._bag_-accounts-_accountName_.count 1 `date +%s`" | nc localhost 2023;sleep 1;done

******CARBON CACHE RECEIVED DATA*******
[null, 1464538800], 
[null, 1464538805]
[null, 1464538810]
[1.0, 1464538815]
[1.0, 1464538820]
[1.0, 1464538825]
[1.0, 1464538830]
[1.0, 1464538835]
[1.0, 1464538840]
[1.0, 1464538845]
[1.0, 1464538850]
[1.0, 1464538855]

**************************carbon.conf*************************
[cache]
ENABLE_LOGROTATION = True
USER =
MAX_CACHE_SIZE = inf
MAX_UPDATES_PER_SECOND = 500
MAX_CREATES_PER_MINUTE = 50
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2004
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = False
LOG_CACHE_HITS = False
CACHE_WRITE_STRATEGY = sorted
WHISPER_AUTOFLUSH = False
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014
RELAY_METHOD = rules
REPLICATION_FACTOR = 1
DESTINATIONS = 127.0.0.1:2004
MAX_QUEUE_SIZE = 10000
MAX_DATAPOINTS_PER_MESSAGE = 500
QUEUE_LOW_WATERMARK_PCT = 0.8
TIME_TO_DEFER_SENDING = 0.0001
USE_FLOW_CONTROL = True
USE_RATIO_RESET=False
MIN_RESET_STAT_FLOW=1000
MIN_RESET_RATIO=0.9
MIN_RESET_INTERVAL=121
[aggregator]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2024
DESTINATIONS = 127.0.0.1:2004:a
REPLICATION_FACTOR = 1
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_AGGREGATION_INTERVALS = 5
WRITE_BACK_FREQUENCY = 0

*************************aggregation_rules*************************
<service>.all.<metric>.count (5) = sum <service>.*.<<metric>>.count


*************************storage_schema**************************
[carbon]
pattern = ^carbon\.
retentions = 60:90d

[default_1min_for_1day]
pattern = .*
retentions = 5s:1d


*************************AGGREGATOR LOG*************************
29/05/2016 16:22:21 :: [listener] MetricLineReceiver connection with 172.17.0.1:48964 established
29/05/2016 16:22:21 :: [listener] MetricLineReceiver connection with 172.17.0.1:48964 closed cleanly
29/05/2016 16:22:22 :: [listener] MetricLineReceiver connection with 172.17.0.1:48966 established
29/05/2016 16:22:22 :: [listener] MetricLineReceiver connection with 172.17.0.1:48966 closed cleanly
29/05/2016 16:22:23 :: [listener] MetricLineReceiver connection with 172.17.0.1:48968 established
29/05/2016 16:22:23 :: [listener] MetricLineReceiver connection with 172.17.0.1:48968 closed cleanly









-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.