0

我尝试创建系统指标仪表板

我的计划是……

流利位 > 流利的 > mongod

一切都在我的谷歌云平台(计算引擎)上

fluent-bit > fluentd > stdout <---- 很好用

我使用了 fluent-plugin-mongo

/etc/td-agent/td-agent.conf:

<source>
  @type forward
  bind 0.0.0.0
  port 24224
</source>

<match jhleeeme-gce.bit.system.*>
  @type mongo
  host localhost
  port 27017
  user myUser
  password myPassword

#  <buffer>
#    # flush
#    flush_interval 10s
#  </buffer>
  # db
  database system_metric_db

  # collection
  # Set 'tag_mapped' if you want to use tag mapped mode.
  tag_mapped

  # If tag is "forward.foo.bar", then prefix "forward." is removed.
  # Collection name to insert is "foo.bar".
  remove_tag_prefix jhleeeme-gce.bit.system.

  # Set 'capped' if you want to use capped collection
  capped
  capped_size 50m

 # <inject>
 #   # key name of timestamp
 #   # default: time
 #   time_key time
 # </inject>
  collection untagged

</match>
4

0 回答 0