Передача данных из притока в графит - PullRequest
1 голос
/ 14 июня 2019

Мне нужно передать метрические данные из притока в графит.

В настоящее время я устанавливаю фиктивные данные в графит на докере. Итак, теперь я хочу интегрировать с influenxdb, потому что графит может выполнять функции с данными, такие как добавление и вычитание значений на лету, чтобы отобразить их на графиках

1 Ответ

2 голосов
/ 14 июня 2019

Если ваш вопрос заключается в том, как интегрировать InfluxDb с графитом, перейдите к файлу influenxdb.conf .И вмешиваться с частью, определенной для графита, как показано ниже.Если вы развернули InfluxDb на компьютере с Linux, вы можете найти файл по этому пути /etc/influxdb.

###
### [[graphite]]
###
### Controls one or many listeners for Graphite data.
###

[[graphite]]
  enabled = false
  # database = "graphite"
  # bind-address = ":2003"
  # protocol = "tcp"
  # consistency-level = "one"

  # These next lines control how batching works. You should have this enabled
  # otherwise you could get dropped metrics or poor performance. Batching
  # will buffer points in memory if you have many coming in.

  # batch-size = 5000 # will flush if this many points get buffered
  # batch-pending = 10 # number of batches that may be pending in memory
  # batch-timeout = "1s" # will flush at least this often even if we haven't hit buffer limit
  # udp-read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.

  ### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
  # separator = "."

  ### Default tags that will be added to all metrics.  These can be overridden at the template level
  ### or by tags extracted from metric
  # tags = ["region=us-east", "zone=1c"]

  ### Each template line requires a template pattern.  It can have an optional
  ### filter before the template and separated by spaces.  It can also have optional extra
  ### tags following the template.  Multiple tags should be separated by commas and no spaces
  ### similar to the line protocol format.  There can be only one default template.
  # templates = [
  #   "*.app env.service.resource.measurement",
  #   # Default template
  #   "server.*",
  # ]

###
...