Example #1
0
  def process(self, metric, datapoint):
    # normalize metric name (reorder tags)
    try:
      metric = TaggedSeries.parse(metric).path
    except Exception as err:
      log.msg('Error parsing metric %s: %s' % (metric, err))

    self.cache.store(metric, datapoint)
    return Processor.NO_OUTPUT
Example #2
0
  def process(self, metric, datapoint):
    # normalize metric name (reorder tags)
    try:
      metric = TaggedSeries.parse(metric).path
    except Exception as err:
      log.msg('Error parsing metric %s: %s' % (metric, err))

    self.cache.store(metric, datapoint)
    return Processor.NO_OUTPUT
Example #3
0
    def process(self, metric, datapoint):
        if settings.TAG_RELAY_NORMALIZED:
            # normalize metric name
            try:
                metric = TaggedSeries.parse(metric).path
            except Exception as err:
                log.msg('Error parsing metric %s: %s' % (metric, err))
                # continue anyway with processing the unnormalized metric for robustness

        state.client_manager.sendDatapoint(metric, datapoint)
        return pipeline.Processor.NO_OUTPUT
Example #4
0
  def process(self, metric, datapoint):
    if settings.TAG_RELAY_NORMALIZED:
      # normalize metric name
      try:
        metric = TaggedSeries.parse(metric).path
      except Exception as err:
        log.msg('Error parsing metric %s: %s' % (metric, err))
        # continue anyway with processing the unnormalized metric for robustness

    state.client_manager.sendDatapoint(metric, datapoint)
    return pipeline.Processor.NO_OUTPUT