Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net, disk and io plugins measurements being written to influxdb as strings #290

Closed
gotyaoi opened this issue Oct 19, 2015 · 1 comment
Closed

Comments

@gotyaoi
Copy link
Contributor

gotyaoi commented Oct 19, 2015

While testing my changes, I noticed some of my graphs were not displaying. It appears that the net, disk and io plugins measurements are being written to influxdb as strings. A sampling of the relevant post data, grabbed by tcpdump. notice the quotes around the numbers:

net_bytes_sent,host=cent-test,interface=eth0 value="4203340"
net_bytes_recv,host=cent-test,interface=eth0 value="66080965"
net_packets_sent,host=cent-test,interface=eth0 value="12648"
net_packets_recv,host=cent-test,interface=eth0 value="271323"
net_err_in,host=cent-test,interface=eth0 value="0"
net_err_out,host=cent-test,interface=eth0 value="0"
net_drop_in,host=cent-test,interface=eth0 value="0"
net_drop_out,host=cent-test,interface=eth0 value="0"
disk_total,fstype=ext4,host=cent-test,path=/ value="18888781824"
disk_free,fstype=ext4,host=cent-test,path=/ value="15853277184"
disk_used,fstype=ext4,host=cent-test,path=/ value="3035504640"
disk_inodes_total,fstype=ext4,host=cent-test,path=/ value="1179648"
disk_inodes_free,fstype=ext4,host=cent-test,path=/ value="1121653"
disk_inodes_used,fstype=ext4,host=cent-test,path=/ value="57995"
disk_total,fstype=proc,host=cent-test,path=/proc value="0"
disk_free,fstype=proc,host=cent-test,path=/proc value="0"
disk_used,fstype=proc,host=cent-test,path=/proc value="0"
disk_inodes_total,fstype=proc,host=cent-test,path=/proc value="0"
disk_inodes_free,fstype=proc,host=cent-test,path=/proc value="0"
disk_inodes_used,fstype=proc,host=cent-test,path=/proc value="0"
disk_total,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_free,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_used,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_inodes_total,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_inodes_free,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_inodes_used,fstype=sysfs,host=cent-test,path=/sys value="0"
disk_total,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_free,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_used,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_inodes_total,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_inodes_free,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_inodes_used,fstype=devpts,host=cent-test,path=/dev/pts value="0"
disk_total,fstype=tmpfs,host=cent-test,path=/dev/shm value="522330112"
disk_free,fstype=tmpfs,host=cent-test,path=/dev/shm value="522330112"
disk_used,fstype=tmpfs,host=cent-test,path=/dev/shm value="0"
disk_inodes_total,fstype=tmpfs,host=cent-test,path=/dev/shm value="127522"
disk_inodes_free,fstype=tmpfs,host=cent-test,path=/dev/shm value="127521"
disk_inodes_used,fstype=tmpfs,host=cent-test,path=/dev/shm value="1"
disk_total,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
disk_free,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
disk_used,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
disk_inodes_total,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
disk_inodes_free,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
disk_inodes_used,fstype=binfmt_misc,host=cent-test,path=/proc/sys/fs/binfmt_misc value="0"
io_reads,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="8656"
io_writes,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="7029428"
io_read_bytes,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="238748672"
io_write_bytes,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="51251212288"
io_read_time,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="28009"
io_write_time,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="15593832"
io_io_time,host=cent-test,name=sda,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="2872261"
io_reads,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="336"
io_writes,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="0"
io_read_bytes,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="1503232"
io_write_bytes,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="0"
io_read_time,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="180"
io_write_time,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="0"
io_io_time,host=cent-test,name=sda1,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="176"
io_reads,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="8168"
io_writes,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="6963688"
io_read_bytes,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="236622848"
io_write_bytes,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="51251212288"
io_read_time,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="27745"
io_write_time,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="14738717"
io_io_time,host=cent-test,name=sda2,serial=VBOX_HARDDISK_VB5d45316d-7234d968 value="2019018"
@sparrc
Copy link
Contributor

sparrc commented Oct 20, 2015

InfluxDB does not support writing uint64, I have a hack-a-round

@sparrc sparrc closed this as completed in f7504fb Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants