https://github.com/tailhook/cantal-py
Python library for cantal
https://github.com/tailhook/cantal-py
Last synced: 8 months ago
JSON representation
Python library for cantal
- Host: GitHub
- URL: https://github.com/tailhook/cantal-py
- Owner: tailhook
- License: apache-2.0
- Created: 2015-02-12T15:44:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T10:15:43.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T15:48:01.907Z (over 1 year ago)
- Language: Python
- Homepage: http://cantal-py.readthedocs.org/
- Size: 55.7 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE-APACHE
Awesome Lists containing this project
README
=========
Cantal-Py
=========
:Status: Beta
:Documentation: https://cantal-py.readthedocs.io/
:Parent Project: https://github.com/tailhook/cantal
Cantal is an expermimental heartbeating, monitoring and statistics solution.
This is a python library for sending statistics data to cantal.
Example
=======
.. code-block:: python
:emphasize-lines: 3, 6, 10
:linenos:
import cantal
ticks = cantal.Counter(group="main_loop", metric="ticks")
def main():
cantal.start()
while True:
sleep(0.1)
ticks.incr(1)
if __name__ == '__main__':
main
License
=======
Licensed under either of
* Apache License, Version 2.0,
(./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
------------
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.