Python based monitoring for AFS
4fd41a7033
We run this tool primarily on our mirror-update nodes which are currently Focal with python3.8. We want to drop the python35 testing so that we can clean up our Xenial test nodes. Update afsmon's testing to more closely match the current production environment and potential future environments while also dropping python35 on Xenial jobs. Small changes are made to fix a string escapes warning and a use of mock error when running flake8. Change-Id: Id509936bf9eb200fc92dcaa06a18c1a79ef13e2c |
||
---|---|---|
afsmon | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
.zuul.yaml | ||
bindep.txt | ||
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 a
FileServerStats
with all available information for the
server, partitions and volumes.