Skip to main content

Plugin framework for Bosun and Crowsnest, of http://www.crowsnest.io

Project description

# Bosun Plugins

Guidelines for making plugins

  • Don’t alter the concurrency model.

    If you don’t know what this means, then you can skip this whole bullet.

    I/O is patched with gevent most of the time (FTP handlers are currently an exception). If you some special concurrent processing, use gevent’s Pool or Group, if possible.

  • Keep to builtin or standard packages.

    This helps to keep the total number of installed packages down, and, in turn, the number of packages that are loaded into memory.

    Recommended packages:

    • JSON: builtin json

    • YAML: pyyaml

    • XML: xmltodict

    • HTTP: builtin urllib, builtin urllib2, and requests

  • Use YourDeviceSubclass.test_subclass() to check your work.

    It’s strongly recommended that your subclass pass this method. It performs basic checks and can alert you if you subclass seems to be doing something strange or is missing anything. This doesn’t check your implementation, but instead checks that you’re adhering to the contract set out by being a Device subclass.

[See the full documentation](docs/index.rst)

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

bosunplugins-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file bosunplugins-0.1.0.tar.gz.

File metadata

  • Download URL: bosunplugins-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bosunplugins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b85e07950b44c4f07be24992b353de6a2453571f855f6f00a0a9c3cb9aee3834
MD5 fe022ebed7fd8ed804aec70fe2aae3cb
BLAKE2b-256 49d41032601669821bb2bd7a97083b65716d6a5877685188f10530102f5def4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page