侧边栏壁纸
博主头像
恪晨博主等级

前端程序员

  • 累计撰写 147 篇文章
  • 累计创建 41 个标签
  • 累计收到 18 条评论

目 录CONTENT

文章目录

telegraf连接influxDB2

恪晨
2023-10-11 / 0 评论 / 0 点赞 / 143 阅读 / 124 字 / 正在检测是否收录...

配置文件

[global_tags]

[agent]
  interval = "60s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
  hostname = "192.168.2.1"
  omit_hostname = false

[[outputs.influxdb_v2]]
  urls = ["http://192.168.2.1:8086"]
  timeout = "5s"
  token = "xxx"          # 授权令牌
  organization = "xxx"     
  bucket = "xxx"


[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false
  report_active = false


[[inputs.disk]]
  ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]

[[inputs.mem]]

[[inputs.processes]]

0

评论区