On 9/22/22 18:23, Nikhil Mitra (nikmitra) wrote:
Greetings,
We are trying to use the telegraf module to send metrics to InfluxDB and we keep facing the below error. Any help will be appreciated, thank you.
# ceph telegraf config-show
Error EIO: Module 'telegraf' has experienced an error and cannot handle commands: invalid literal for int() with base 10: 'https'
# ceph config dump | grep -i telegraf
mgr advanced mgr/telegraf/address tcp://test.xyz.com:https *
We have never used this module to send data to influxdb over https
directly. Not sure if it can do that (I don't think so). What you can do
instead (and that's what we do) is to
- install telegraf on the Ceph manager node
- configure a "socket listener" in telegraf:
[[inputs.socket_listener]]
service_address = "unixgram:///etc/telegraf/telegraf.sock"
And configure the https influxdb endpoint in the same configuration file.
- make sure the user ceph is able to write to that socket: chown ceph
/etc/telegraf/telegraf.sock
- configure the ceph telegraf module to use that socket (ceph config set)
mgr advanced mgr/telegraf/address
unixgram:///etc/telegraf/telegraf.sock *
mgr advanced mgr/telegraf/interval
5 *
Restart the mgr.
Gr. Stefan
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx