Python based monitoring for AFS
Go to file
Ian Wienand c424ff5dd5 Update README 2018-06-01 15:31:15 +10:00
afsmon pep8 fixes 2018-06-01 14:36:23 +10:00
.gitignore Initial framework 2018-05-31 19:40:44 +10:00
.stestr.conf Add statsd reporter and test 2018-06-01 14:25:22 +10:00
LICENSE Initial commit 2018-05-31 10:40:51 +10:00
MANIFEST.in Initial code motion 2018-06-01 08:40:03 +10:00
README.rst Update README 2018-06-01 15:31:15 +10:00
requirements.txt Add statsd reporter and test 2018-06-01 14:25:22 +10:00
sample.cfg Initial framework 2018-05-31 19:40:44 +10:00
setup.cfg Initial code motion 2018-06-01 08:40:03 +10:00
setup.py Initial framework 2018-05-31 11:02:11 +10:00
test-requirements.txt Initial framework 2018-05-31 11:02:11 +10:00
tox.ini Initial framework 2018-05-31 11:02:11 +10:00

README.rst

afsmon

Python library and utilities for monitoring AFS file-systems using OpenAFS tools.

Many of the details are inspired by https://github.com/openafs-contrib/afs-tools

Command-line

The afsmon tool provides

  • show : produce tabular output of key statistics for a cell, such as threads on file-servers, partition usage, volume usage and quotas.
  • statsd : report similar results to a statsd host.

Configuration is minimal, see the sample.cfg.

Library

The core of afsmon should suitable for use in other contexts.

import afsmon
fs = afsmon.FileServerStats('hostname')
fs.get_stats()

The fs object now contains all available information for the server, partitions and volumes.