{"repo":"Llandy3d/pytheus","free":true,"listed":false,"github":"https://github.com/Llandy3d/pytheus","clone":"git clone https://github.com/Llandy3d/pytheus.git","description":"experimenting with a new prometheus client for python","language":"Python","stars":96,"topics":["instrumentation","metrics","monitoring","prometheus","prometheus-client-library","python"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"pytheus playing with metrics --- Documentation : https://pythe.us --- pytheus is a modern python library for collecting prometheus metrics built with multiprocessing in mind. Some of the features are: - multiple multiprocess support: - redis backend ✅ - Rust powered backend 🧪 - bring your own ✅ - support for default labels value ✅ - partial labels value (built in an incremental way) ✅ - customizable registry support ✅ - registry prefix support ✅ --- Philosophy Simply put is to let you work with metrics the way you want. Be extremely flexible, allow for customization from the user for anything they might want to do without having to resort to hacks and most importantly offer the same api for single & multi process scenarios, the switch should be as easy as loading a different backend without having to change anything in the code. - What you see is what you get. - No differences between singleprocess & multiprocess , the only change is loading a different backend and everything will work out of the box. - High flexibility with an high degree of labels control and customization. --- Requirements - Python 3.8+ - redis = 4.0.0 ( optional : for multiprocessing) - pytheus-backend-rs ( optional : for Rust powered multiprocessing 🦀) --- Architecture A small piece of the architecture is described in the ARCHITECTURE.md file --- Install Optionally if you want to use the Redis backend (for multiprocess support) you will need the redis library: If you want to try the Rust based backend ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Llandy3d","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Llandy3d/pytheus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}