Hi, I've just been doing some work relating to a splunkapp for red hat storage/gluster.
The goal is to provide some gluster related stats in a easy to consume form (i.e. little development needed from a 3rd party!), so I've updated gstatus to 'fill in the blanks'. gstatus now provides 3 output modes - console (default), json and keyvalue. In addition to the changes in how the information gets presented, I've also added client count, for the cluster and by volume. Incidentally, I'm counting unique client connections, which differs from the information provided by the CLI (just using python sets) eg. [root@ip-10-100-1-11 gstatus]# gstatus -a Status: HEALTHY Capacity: 120.00 GiB(raw bricks) Glusterfs: 3.4.0.59rhs 80.00 GiB(usable) Nodes : 4/ 4 Volumes: 3 Up Self Heal: 4/ 8 0 Up(Degraded) Bricks : 12/12 0 Up(Partial) Clients : 5 0 Down Volume Information distvol UP - 4/4 bricks up - Distribute Capacity: (0% used) 346.00 MiB/40.00 GiB (used/total) Self Heal: N/A Protocols: glusterfs:on NFS:on SMB:on Gluster Clients : 5 mirror2 UP - 4/4 bricks up - Distributed-Replicate Capacity: (0% used) 173.00 MiB/20.00 GiB (used/total) Self Heal: 4/ 4 All files in sync Protocols: glusterfs:on NFS:on SMB:on Gluster Clients : 4 mirror UP - 4/4 bricks up - Distributed-Replicate Capacity: (0% used) 173.00 MiB/20.00 GiB (used/total) Self Heal: 4/ 4 All files in sync Protocols: glusterfs:on NFS:on SMB:on Gluster Clients : 5 Status Messages - Cluster is HEALTHY, all checks successful and in JSON mode [root@ip-10-100-1-11 ~]# gstatus -o json 2014-03-21 02:57:58.412101 {"brick_count": 12, "bricks_active": 12, "client_count": 5, "glfs_version": "3.4.0.59rhs", "node_count": 4, "nodes_active": 4, "raw_capacity": 128534446080, "sh_active": 4, "sh_enabled": 8, "status": "healthy", "usable_capacity": 85689630720, "volume_count": 3, "volume_summary": {"degraded": 0, "down": 0, "partial": 0, "up": 3}} and keyvalue [root@ip-10-100-1-11 ~]# gstatus -o keyvalue 2014-03-21 02:58:33.042857 brick_count=12,bricks_active=12,client_count=5,glfs_version='3.4.0.59rhs',node_count=4,nodes_active=4,raw_capacity=128534446080,sh_active=4,sh_enabled=8,status='healthy',usable_capacity=85689630720,volume_count=3,volume_summary_down=0,volume_summary_degraded=0,volume_summary_partial=0,volume_summary_up=3 (this keyvalue mode may lend itself to logstash/kibana analysis) The other thing I've noticed is how much faster the 3.5 CLI appears to be compared to 3.4. Great work guys! Cheers, Paul C
_______________________________________________ Gluster-devel mailing list Gluster-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/gluster-devel