How to configure telegraf to send a folder-size to influxDB

徘徊边缘 提交于 2019-12-08 03:56:51

问题


I am having a hard time understanding and using the disk plugin.

I want to emit the folder size for /var/lib/influxdb/hh/, and I am trying to figure out how to wire this using the disk plugin.

I have tried the following :

  • setup a new configuration file for telegraf here vi /etc/telegraf/telegraf.d/influxdbdata_telegraf.conf
  • added this configuration [[inputs.disk]] mount_points = ["/var/lib/influxdb/hh/"]
  • now I try to query the data from influxDB, and I don't see this. But I see the other measurements.

I am definitely confused with the usage of disk plugin. I can write an exec plugin and finish it. But wanted to hold off and try to get this working with an existing plugin. (I am pretty sure this would be in some plugin, which I am missing)

来源:https://stackoverflow.com/questions/44273430/how-to-configure-telegraf-to-send-a-folder-size-to-influxdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!