Injectable HTTP monitoring interface.
Project description
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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file pymonitoring-0.1.0.tar.gz
.
File metadata
- Download URL: pymonitoring-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4c9b2920658c36753de4de7321f0400d1e788ebcc69f9f6e1b1ccc25181136 |
|
MD5 | a5fd687a7bd48d547d492ff81fa8eebe |
|
BLAKE2b-256 | 7e747ede1d42e2576cebd5cf53b56bcca00b47ddf10e95744041d5dbf0fc1e8a |