Skip to main content

Collectd plugin to poll for OpenStack Swift Account.

Project description

collectd-swift-stat

Overview

This plugin uses the swift client in order to issue a swift stat against a specific swift account.

Sample Graphs

Sample Graphs

Metrics

swift_stat/gauge-$PREFIX-bytes
swift_stat/gauge-$PREFIX-containers
swift_stat/gauge-$PREFIX-objects

$PREFIX will be the configured Prefix value in the plugin configuration in collectd.conf

Install / Configuration

  1. Assuming you have collectd installed already, append the following plugin details to your collectd.conf config file. Adjust the configuration items as you see fit. The plugin must be able to subprocess the ceph and rados commands.

    <LoadPlugin python>
      Globals true
    </LoadPlugin>
    
    <Plugin python>
      LogTraces true
      Interactive false
      Import "collectd_swift_stat"
      <Module collectd_swift_stat>
        Interval 30
        Prefix "gnocchi"
        User "gnocchi"
        Password "xxxxxxxxxxxxxxxxxxxxxxxxx"
        AuthURL "http://172.21.0.10:5000/v2.0"
        Project "service"
      </Module>
    </Plugin>
  2. Install plugin

    [root@overcloud-controller-0 ~]# pip install collectd-swift-stat
  3. Restart collectd

    [root@overcloud-controller-0 ~]# systemctl restart collectd
  4. View metrics on the configured Swift account in your TSDB

Resources

  1. wiki.openstack.org/wiki/Swift

  2. Collectd.org

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

collectd-swift-stat-0.0.1.tar.gz (40.2 kB view details)

Uploaded Source

File details

Details for the file collectd-swift-stat-0.0.1.tar.gz.

File metadata

File hashes

Hashes for collectd-swift-stat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7fa94171c58d63d2fefe09eb3a349dcc445fce692bf81e28c5582f1d8c105185
MD5 1b395c4d1d3072e22926b54dc3e685af
BLAKE2b-256 e3afad30a26ea6702c9da85081a359f25bfb47eba77bf5359ac474ad79fcabd5

See more details on using hashes here.

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