Metadata-Version: 2.1
Name: PyMonitorLib
Version: 0.2.0
Summary: Library for creating simple interval processes. This is especially useful for interval based monitoring application that generate telemetry at a set interval.
Home-page: https://github.com/Aprelius/PyMonitorLib
Author: Daniel Weiner
Author-email: info@phantomnet.net
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# 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:

```python
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.


