drewkerrigan/newrelic_riakcs_plugin — pull request #1 by hectcastro (2014-02-05 22:59:33+00:00)
Title: Add support for Riak CS installations in a proxy configuration

This pull request allows users to pass the `HTTP_PROXY` environmental variable when invoking the plugin so that they can collect metrics from Riak CS in a proxy configuration.

Along those lines, I populated the configuration file with `s3.amazonaws.com` by default instead of `localhost`.

Example usage:

```bash
HTTP_PROXY="http://localhost:8080/" bundle exec ruby riak_cs_agent.rb
```

Example plugin configuration:

```yml
newrelic:
#
# Update with your New Relic account license key:
#
license_key: 'put_your_license_key_here'
#
# Set to '1' for verbose output, remove for normal output.
# All output goes to stdout/stderr.
#
verbose: 1
#
# Agent Configuration:
#
agents:
riak_cs:
host: 's3.amazonaws.com'
port: 80
access_id: 'VLBI1V1VKHLOMJMH2GG7'
secret_key: 'BbXt2wa_C76_OqyKVriJGBF6IgsTzTFz4wjhKA=='
```