Small Python script for sending Varnish statistics to Graphite
Python
Latest commit 5458f2c Jan 30, 2014 @jssjr Merge pull request #3 from jssjr/update-readme-for-pr2
Update readme for new arg. Thanks, @butlern!
Permalink
Failed to load latest commit information.
README.md
varnish-graphite Add support for specifying varnish instance if multiple are running Dec 4, 2013

README.md

varnish-graphite

Small Python script for sending Varnish statistics to Graphite.

Usage

usage: varnish-graphite [-h] [-H HOST] [-p PORT] [-n NAME] [-P PREFIX]
                        [-i INTERVAL] [-b BUFFER_SIZE] [-B MAX_BUFFER_SIZE]

Collect and stream Varnish statistics to Graphite.

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  The graphite server host (default: 127.0.0.1)
  -p PORT, --port PORT  The graphite server port (default: 2003)
  -n NAME, --name NAME  Specifies the name of the varnishd instance to get
                        logs from. If -n is not specified, the host name is
                        used. (default: albatross-3.local)
  -P PREFIX, --prefix PREFIX
                        The prefix for metric names (default: varnish)
  -i INTERVAL, --interval INTERVAL
                        The collection interval in seconds (default: 10)
  -b BUFFER_SIZE, --buffer-size BUFFER_SIZE
                        The number of bytes to send each time (default: 1428)
  -B MAX_BUFFER_SIZE, --max-buffer-size MAX_BUFFER_SIZE
                        The maximum number of bytes to buffer when
                        reconnecting (default: 33554432)