Library for creating simple interval processes. This is especially useful for interval based monitoring application that generate telemetry at a set interval.
Project description
PyMonitorLib
Lightweight python library for collecting metrics and outputing to influx DB on an interval.
This library is designed for creating interval based monitoring applications quickly and easily. a Main function initializes the application and a Process function is called at the regular interval.
An example for all that is required:
from monitor.lib import Execute, Result
def Main(config, logger, pipeline):
return Result.SUCCESS
if __name__ == "__main__":
Execute(Main, 'service')
The example will create an ArgumentParser for the necessary argument collect and spin up a process.
Notes
This library currently only supports linux/posix based systems for use in process daemonization. Windows services are not currently supported. Basic functionality for building OS independent monitors should still function.
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
Built Distribution
File details
Details for the file PyMonitorLib-0.3.0.tar.gz
.
File metadata
- Download URL: PyMonitorLib-0.3.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d21598ea23918e4412015961a6ef3d983d1308b5d918ecee53b6e9ac329d89 |
|
MD5 | 47e9f18182cd177cfefe27aabda49380 |
|
BLAKE2b-256 | 6470c10ece9c2790fbf2843106bc689adf8e9968c8adbe0eba49bac4067d9a13 |
File details
Details for the file PyMonitorLib-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: PyMonitorLib-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a1211e3e2c7863438c08b0d7f8b214c98c86c894000792b6c2b19e846f8ca0 |
|
MD5 | 0ed14bc8c0733117ea5d379ebf46223d |
|
BLAKE2b-256 | 2a93ce5ec5aa6c3772e33565dfbc1ff58fcfa1a2db1f102361baf806ed7cf512 |