Python based monitoring for AFS
26a7a2c827
With a few volumes, stats tend to go missing as there's a big flood of individual packets. Use the statsd pipeline which is meant for this sort of batch reporting. Test-case is updated to handle the batched messages which are delineated by newlines. |
||
---|---|---|
afsmon | ||
.gitignore | ||
.stestr.conf | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
sample.cfg | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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
= afsmon.FileServerStats('hostname')
fs fs.get_stats()
The fs
object now contains all available information for
the server, partitions and volumes.