PyObservability
Platform Supported
Deployments
Kick off
Recommendations
- Install
python3.11 or above - Use a dedicated virtual environment
Install PyObservability
python -m pip install pyobservability
Initiate - IDE
import pyobservability
if __name__ == '__main__':
pyobservability.start()
Initiate - CLI
pyobservability start
Use
pyobservability --helpfor usage instructions.
Containerized Deployment
docker pull thevickypedia/pyobservability:latest
docker run \
--name observability \
-p 8080:80 \
-v /home/user/config:/config \
--restart=no \
thevickypedia/pyobservability
Environment Variables
Sourcing environment variables from an env file
By default,
PyObservabilitywill look for a.envfile in the current working directory. Other file options (like JSON and YAML) are supported with a custom kwarg or env varenv_filepointing to the filepath.
Mandatory
- TARGETS - Target URLs running
PyNinjain the following format.TARGETS='[{"name":"node1","base_url":"http://192.168.1.10:8000","apikey":"token1"},{"name":"node2","base_url":"http://192.168.1.11:8000"}]'
Defaults
- HOST - Host IP to run PyObservability. Defaults to
127.0.0.1or0.0.0.0 - PORT - Port number to run PyObservability. Defaults to
8080 - INTERVAL - Polling interval to retrieve server information.
Optional
- USERNAME - Username to authenticate the monitoring page.
- PASSWORD - Password to authenticate the monitoring page.
- TIMEOUT - Timeout (in seconds) for UI authentication. Defaults to 5m.
Logging
PyObservability uses
uvicornlogger by default. Following options can be used to override the default logger.
- LOG - Lazy config to use the default log format. Can either be
fileorstdout. - DEBUG - Enables debug level logging. Defaults to
False. - LOGS_PATH - Directory path to store log files if
LOGis set tofile. - LOG_CONFIG - Path to a custom logging configuration file.
Uptime Kuma
Uptime Kuma integration can be enabled by setting the following environment variables.
- KUMA_URL - Base URL of the Uptime Kuma server.
- KUMA_USERNAME - Username to authenticate with Uptime Kuma.
- KUMA_PASSWORD - Password to authenticate with Uptime Kuma.
- KUMA_TIMEOUT - Timeout (in seconds) for Uptime Kuma authentication. Defaults to 5s.
GitHub Runners
GitHub Runners integration can be enabled by setting the following environment variables.
- GIT_ORG - GitHub organization name.
- GIT_TOKEN - GitHub token with
read:orgpermissions.
License & copyright
© Vignesh Rao
Licensed under the MIT License
Metadata
Release files for PyObservability 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyobservability-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyobservability-3.0.0-py3-none-any.whl |
Release files / pyobservability-3.0.0-py3-none-any.whl
| Download URL | pyobservability-3.0.0-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
640cc19efad9d0e818c421cf082eff9d1631741254501a8fb05d1a6abdd20ba6
|
|
BLAKE2b-256 checksum How to use checksums |
5201123168a880a6ec755c5c493a28bdaa3b886ac83c2ed931adde9a12e168e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for PyObservability 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.