Poor mans way of pushing varnish stats data to graphite with nothing but Bash. The script fetches variable metrics from Varnish and pushes them to graphite
The following requires to be present on the target system:
- bc
- netcat
- varnish (duh!)
Configure GRAPHITE_PREFIX, GRAPHITE_HOST, GRAPHITE_PORT or use the defaults provided.
The script will fetch selected varnishstats data (configured in VARNISH_METRICS_ACCUMULATED), including the cache hitratio and push it graphite.