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.0.1 (2016-05-26)

  • First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gluster-stats-0.0.3.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

gluster_stats-0.0.3-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

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