[openstack-dev] [openstack-ansible] Monitoring script framework PoC
Major Hayden
major at mhtx.net
Wed Mar 1 15:56:50 UTC 2017
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hey there,
One of the items discussed at the PTG[0] was the creation of some monitoring scripts in a framework that could monitor various OpenStack services, support services (RabbitMQ/Galera/etc), and some system basics. There's a spec proposed[1] that discusses the work in detail.
I've created a PoC repository[2] to demonstrate what the framework might look like. It uses the 'click' Python module to automatically bring in new plugins and implement them into the framework. This has some nice benefits:
1) Minimal code to write to add a new check
2) Minimal tests to write to add a new check
3) All of the output formatting is handled/tested in the framework
4) Argument/option handling is done in the framework
Kevin already dropped by and made a PR to improve some of the dynamic importing that makes the code easier to read. I'd really love to get some feedback on it and see if it's useful for others.
[0] https://etherpad.openstack.org/p/osa-ptg-pike-monitoring
[1] https://review.openstack.org/#/c/436498/
[2] https://github.com/major/monitorstack
- --
Major Hayden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJYtu8/AAoJEHNwUeDBAR+x3FMP/0f38v8zcBVvKFfo9AtkZVUY
tSDyXyb+3zelFq8U07DnkzvOA7nFNB2DY8SXyGxCIgzSXGfs/fzSlncKc485p02I
1B9ak462trvrX6nwL9CNYWhnmuGo4+6yVNtPpIf13YOfsVPqCf3ikc401WlVkpHY
DDQQLC3TzzYWJCkNMgV4dZhiO1yRKNLbHVL2hEc/oMWxRTau4CS5tmLESC/b4AzX
pIC6xkPN1CRNJCsxqg1dihzAMG49fDhBqsh+Ej2EUfsf2opI4Rzc92Nw74rj2F4y
baFDDm0tYfkPqekiuKHLHi1BZlZDxf36FHqpck3civW+RbUZxE3uyNilg7akPAyX
rlwVddx6kPInWiU5e4beZ7s43MZffIdcieKVsTh069OdB6Ls81S8ciKkRM/4Vd5z
coFAwnhofzur+uEvhb9HHbudv1rYFPLTA+ZmzRzGcxF/zC50664HCvNyNYhod61T
ZsuDruYEtaDjTQ2jyTXQncBAzZVJPilp9TuZEan4eb3bI8t1WpXb1ayjTkdxbw9P
CnxRmjlC7HgBF7K4BEZiM6eEEOl34iXEhkPPLrKy0oGMUssFupHgmRerQKpzUL4G
1Z1Qfm9WDMhJu1aZhsK5beHeizJyRsBMmq8YnTSJPfzPN78rKDz4AfcJeS73Yo4r
406anxjIB40AP+80zQ2E
=+8CG
-----END PGP SIGNATURE-----
More information about the OpenStack-dev
mailing list