[Gluster-users] anyone else playing with gcollect yet?
Mohit Anchlia
mohitanchlia at gmail.com
Fri Jul 29 02:55:49 UTC 2011
I will download and install sometime next week. Can you please send me the link?
Also for cacti do I need some executable installed on the server?
Thanks for your efforts
On Thu, Jul 28, 2011 at 6:09 PM, Craig Carl <craig at gestas.net> wrote:
> Phil -
> Gcollect is agnostic as to the data collector, it is designed to
> support adding collectors on the fly. Using the collecd-exec plugin
> and PUTVAL it should be easyish to add collectd support. Here is
> (roughly) what you need to do -
>
> copy ganglia.d/* to collectd.d/*
>
> edit the bottom of each file in collectd.d, basically you need to
> replace the gmetric commands with PUTVALs -
>
> gmetric --name=brick_${GLUSTER_BRICK_MP}_disk_read_io
> --value=${IO_KBS_READ} --type=int32 --units=kilobytes
> --group=${GLUSTER_VOLNAME}
> gmetric --name=brick_${GLUSTER_BRICK_MP}_disk_write_io
> --value=${IO_KBS_WRITE} --type=int32 --units=kilobytes
> --group=${GLUSTER_VOLNAME}
> gmetric --name=fuse_net_io_rx --value=${NET_IO_KBS_RX} --type=int32
> --units=kilobytes --group=${GLUSTER_VOLNAME}
> gmetric --name=fuse_net_io_tx --value=${NET_IO_KBS_TX} --type=int32
> --units=kilobytes --group=${GLUSTER_VOLNAME}
> gmetric --name=nfs_net_io_rx --value=${NFS_IO_KBS_RX} --type=int32
> --units=kilobytes --group=nfs-common
> gmetric --name=nfs_net_io_tx --value=${NFS_IO_KBS_TX} --type=int32
> --units=kilobytes --group=nfs-common
>
> would become something like -
>
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/$GLUSTER_BRICK_MP/disk_read_io
> interval=600 N:$IO_KBS_READ
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/$GLUSTER_BRICK_MP/disk_write_io
> interval=600 N:$IO_KBS_WRITE
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/fuse_net_io_rx interval=600 N:$NET_IO_KBS_RX
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/fuse_net_io_tx interval=600 N:$NET_IO_KBS_TX
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/nfs_net_io_rx interval=600 N:$NFS_IO_KBS_RX
> PUTVAL $HOSTNAME/$GLUSTER_VOLNAME/nfs_net_io_tx interval=600 N:$NFS_IO_KBS_TX
>
> Change line 9 of gcollect.cfg to "collector = collectd"
>
> Then you would want to execute gcollect using collectd-exec every 5 min.
>
> Does that help you get started?
>
> Craig
> craig at gestas.net
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>
More information about the Gluster-users
mailing list