← Back to team overview

graphite-dev team mailing list archive

[Question #282148]: Megacarbon Aggregator Missing AGGREGATION_WRITE_BACK_FREQUENCY Configuration Setting

 

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

I've installed the latest megacarbon branch along with my standard Graphite install.  I'm trying to get the aggregator up and running but struggling to find much in the way of documentation.  I have 2 write carbon daemons and a single relay on running on the same node.  

Both of my write carbon daemons are setup as writers only i.e.

#/opt/graphite/conf/carbon-daemons/writer-(1,2)/daemon.conf
PIPELINE = write

My relay is setup to filter, relay and aggregate:

#/opt/graphite/conf/carbon-daemons/relay/daemon.conf
PIPELINE = filter,aggregate,relay

Within my relay aggregation rules I have the following entry:

test.aggregate.all.requests (60) = sum test.aggregate.requests

When I try and submit a metric matching this input mask I receive the following error in the relay console.log:

18/01/2016 11:12:05 :: Unhandled Error
Traceback (most recent call last):
  File "/opt/graphite/lib/carbon/protocols.py", line 74, in lineReceived
    self.metricReceived(metric, datapoint)
  File "/opt/graphite/lib/carbon/protocols.py", line 60, in metricReceived
    events.metricReceived(metric, datapoint)
  File "/opt/graphite/lib/carbon/events.py", line 20, in __call__
    handler(*args, **kwargs)
  File "/opt/graphite/lib/carbon/pipeline.py", line 27, in run_pipeline
    run_pipeline(out_metric, out_datapoint, processors[1:])
--- <exception caught here> ---
  File "/opt/graphite/lib/carbon/pipeline.py", line 25, in run_pipeline
    for out_metric, out_datapoint in processor.process(metric, datapoint):
  File "/opt/graphite/lib/carbon/aggregator/processor.py", line 58, in process
    buffer.configure_aggregation(rule.frequency, rule.aggregation_func)
  File "/opt/graphite/lib/carbon/aggregator/buffers.py", line 57, in configure_aggregation
    self.compute_task.start(settings['AGGREGATION_WRITE_BACK_FREQUENCY'] or int(frequency), now=False)
  File "/opt/graphite/lib/carbon/conf.py", line 116, in __getitem__
    raise ConfigError("Missing expected configuration \"%s\"" % key)
carbon.exceptions.ConfigError: <ConfigError(Missing expected configuration "AGGREGATION_WRITE_BACK_FREQUENCY")>

I've struggling to understand where this configuration setting needs to be placed?

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