This role installs and configures the Railsware New Relic HAProxy plugin.
Requires ruby to be installed.
newrelic_haproxy_agent_config_template: # template for config (default template is provided)
# variables for default config
new_relic_license_key: # NewRelic license key
newrelic_haproxy_agent_verbose: # 1 for verbose output from the plugin (0 otherwise)
newrelic_haproxy_agent_repository: # gem repository to pull from
# list of HAProxy instances to monitor
newrelic_haproxy_agent_agents: []
# each value should be a dictionary with the following values:
# name (required): Name to send to NewRelic
# uri (required): URI to query for CSV HAProxy statistics
# proxy (required): Proxy instance to monitor
# proxy_type (optional): Proxy type (frontend, backend, or listen) if multiple proxies have the same name
# user(optional): User to use for HTTP Basic Auth
# password(optional): Password to use for HTTP Basic Auth
None.
---
- hosts: all
roles:
- role: modcloth.newrelic_haproxy_agent
new_relic_license_key: "ABCD"
newrelic_haproxy_agent_agents:
- name: 'Foo'
uri: 'www.example.com/stats;#csv'
proxy: 'abcd'
proxy_type: 'frontend'
MIT
ModCloth, Inc.