Graphiti
Graphiti is python module for sending any metrics to graphite/carbon
Build status:
Features
Asynchronous sending
Combine several metrics to single packet
Uses pickle protocol
Handle temporary network outage
Gevent support
Installation
graphiti is installed via pip.
pip install graphiti
Usage Example
Sample:
from graphiti import Client
client = Client(carbon_host)
client.send("graphiti.server.cpu_usage", 12.4, timestamp)
client.send("graphiti.server.cpu_usage", 15.1) # current time will be used
project = "graphite"
server = "server"
client.send((project, server, "cpu_usage"), 11) # metric name is graphiti.server.cpu_usage
# also you can aggregate values on client side
from graphiti import Aggregator, timeit
aggregator = Aggregator(client, interval=60) # aggregate metrics during minute
aggregator.add_sum('processed_messages', 1)
aggregator.add_avg('message_processing_avg_time', time_taken)
aggregator.add_active('service_is_up')
with timeit(aggregator, ["graphiti", "server", "messages"]):
process_message() # send metrics graphiti.server.messages.time_avg -- average time of message processing
# graphiti.server.messages.time_sum -- total time of message processing
# graphiti.server.messages.count -- number of processed message per minute
client.stop()
Source
The Graphiti sources are hosted on bitbucket: https://bitbucket.org/asdtech/graphiti
Metadata
Release files for graphiti 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| graphiti-0.1.13.tar.gz | 8.5 kB | Without provenance | Details for graphiti-0.1.13.tar.gz |
Release files / graphiti-0.1.13.tar.gz
| Download URL | graphiti-0.1.13.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d2b72fc32f6db3861182cf73753ee3bc5f4b32f4850372cb15a7e3cb874b462
|
|
BLAKE2b-256 checksum How to use checksums |
0b13e7e4eba09504b0831da305414cdb7b22121d883d9690b45e1e8fcff3bad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for graphiti 0.1.13
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.