Skip to main content

Injectable HTTP monitoring interface.

Project description

https://travis-ci.org/povilasb/pymonitoring.svg https://codeclimate.com/github/povilasb/pymonitoring/badges/issue_count.svg https://www.quantifiedcode.com/api/v1/project/2e0f93a9a80f49d5aa69f0a018b5f1f3/badge.svg http://isitmaintained.com/badge/resolution/povilasb/pymonitoring.svg

pymonitoring is a Python package that allows to easily create HTTP monitoring interfaces for your python services. Such interfaces can be used by Nagios to query for service status for example.

Examples

import monitoring.http

class ServiceInfo:
        start_time

        def to_json()
                info = {
                        'start_time': self.start_time
                }

                return json.dumps(info)

service_info = ServiceInfo()
service_info.start_time = time.time()

monitoring_server = monitoring.http.Server(8000, service_info)
monitoring_server.start_async()

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

pymonitoring-0.1.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

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