コード例 #1
0
ファイル: cache.py プロジェクト: graphite-project/carbon
  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
コード例 #2
0
ファイル: cache.py プロジェクト: whispererli/carbon
  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
コード例 #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
コード例 #4
0
ファイル: client.py プロジェクト: graphite-project/carbon
  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