varniphite

command module
v0.0.0-...-06d62a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 10 Imported by: 0

README

varniphite

Sending Varnish 4.0 stats results to graphite never been so easy.

What

Every 10 seconds it runs varnishstat, parses the JSON result, does a minimal cleanup and sends to Graphite.

How

This app doesn't daemonize itself, so I suggest using it under runit or similar. All output goes to STDOUT

Installation

$ go get github.com/voxmedia/varniphite

In case of the server not having go installed, you can compile/cross-compile (if you are on MacOS X) for linux:

$ GOOS=linux go build github.com/voxmedia/varniphite

And copy the generated static binary to your servers.

Parameters

Parameter Default Function
-i 10 interval between runs
-H localhost Graphite server host
-m varnish.stats Path to be appended to metrics
-p 2003 Graphite server port

Example runit script

#!/bin/sh
HOSTNAME=$(hostname)
exec 2>&1
exec /opt/go/bin/varniphite -H stats.example.com -p 2003 -m "varnish_stats.$HOSTNAME" -i 10

Copyright 2014 Vox Media, Inc. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL