snsary.contrib.grafana

A collection of tools to interact with a remote Grafana Cloud instance.

GraphiteOutput sends batches of Readings to Grafana Cloud, who provide a custom ingest endpoint for Graphite metrics. Metric names are of the form <prefix>.<sensor name>.<reading name>. Using .from_env() to create an instance sets the <prefix> to the hostname of the machine. .from_env() expects GRAPHITE_URL to be set as an environment variable.

Module Contents

class snsary.contrib.grafana.GraphiteOutput(*, url, prefix)

Bases: snsary.outputs.BatchOutput

classmethod from_env()
publish_batch(readings)