telegraf.conf 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [agent]
  2. interval = "10s"
  3. round_interval = true
  4. metric_batch_size = 1000
  5. metric_buffer_limit = 10000
  6. collection_jitter = "0s"
  7. flush_interval = "10s"
  8. flush_jitter = "0s"
  9. precision = ""
  10. hostname = ""
  11. ## If set to true, do no set the "host" tag in the telegraf agent.
  12. omit_hostname = false
  13. logfile = "D:/data/telegraf-client/app/log/telegraf.log"
  14. logfile_rotation_max_size = "20MB"
  15. [[inputs.execd]]
  16. command = ["D:/data/telegraf-client/app/opcda.exe", "-config", "D:/data/telegraf-client/app/opcda.conf"]
  17. signal = "none"
  18. restart_delay = "10s"
  19. data_format = "influx"
  20. [[outputs.influxdb_v2]]
  21. urls = ["http://192.168.1.168:8086"]
  22. token = "zAyO0a0gdTHH8j7lo520TQFsoNuFhMEPkDLiurCr__uTbKrAUPyx1O4hMdwWT5eed-dIiHbKOJHOd7E6JpqifA=="
  23. ## Organization is the name of the organization you wish to write to; must exist.
  24. organization = "jd"
  25. ## Destination bucket to write into.
  26. bucket = "test"