Skip to main content

Graphiti is python module for sending any metrics to graphite/carbon

Build status: 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphiti-0.1.13.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file graphiti-0.1.13.tar.gz.

File metadata

  • Download URL: graphiti-0.1.13.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for graphiti-0.1.13.tar.gz
Algorithm Hash digest
SHA256 6d2b72fc32f6db3861182cf73753ee3bc5f4b32f4850372cb15a7e3cb874b462
MD5 6b621347f4b5a0c53c090e9cd731e53c
BLAKE2b-256 0b13e7e4eba09504b0831da305414cdb7b22121d883d9690b45e1e8fcff3bad3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.13 This release

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page