Skip to main content

Display gluster stats

Project description

Gluster Statistics

https://img.shields.io/pypi/v/gluster_stats.svg https://img.shields.io/travis/danrue/gluster_stats.svg

gluster-stats is a command-line utility that generates health-related gluster statistics in json, for use in monitoring gluster.

Installation

pip install gluster-stats

Usage

Return gluster stats in json format.

sudo gluster-stats

Example output:

{
    "brick_stats": {
        "u01gluster": [
            {
                "disk_free": 824204224102,
                "disk_total": 824204224102,
                "inode_free": "161060390",
                "inode_total": "161060416",
                "online": 1
            },
            {
                "disk_free": 824204224102,
                "disk_total": 824204224102,
                "inode_free": "161060390",
                "inode_total": "161060416",
                "online": 1
            },
            {
                "disk_free": 824204224102,
                "disk_total": 824204224102,
                "inode_free": "161060390",
                "inode_total": "161060416",
                "online": 1
            }
        ]
    },
    "glusterd": 1,
    "glusterfsd": 1,
    "peers": 2,
    "split_brain_entries": {
        "u01gluster": 0
    },
    "unhealed_entries": {
        "u01gluster": 0
    },
    "volumes": 1
}

Generate mock test response file in gluster_stats_<gluster_version>.json.

gluster-stats-generate

History

0.2.0 (2016-04-07)

  • Add –inline, –yolo, –version

0.1.3 (2016-01-15)

  • First release - print out latest versions for each git role listed

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page