Role Detail


SignalFx Collectd installation for Linux.
Type Ansible
Minimum Ansible Version 2.2
Installation $ ansible-galaxy install geerlingguy.collectd-signalfx
Last Commit 2017-09-01 17:51:05 PM UTC
Last Imported 2017-11-16 22:01:10 PM UTC
Version History
Version Release Date
1.1.0 2017-09-01 17:51:05 PM
1.0.3 2017-08-10 15:21:03 PM
1.0.2 2017-08-10 14:49:02 PM
1.0.1 2017-07-27 22:05:10 PM
1.0.0 2017-07-27 21:38:09 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
2017-11-16 22:01:10 PM UTC SUCCESS
2017-11-09 22:00:10 PM UTC SUCCESS
2017-11-02 21:59:09 PM UTC SUCCESS
2017-10-26 21:59:09 PM UTC SUCCESS
2017-10-19 21:59:09 PM UTC SUCCESS
2017-10-12 21:58:09 PM UTC SUCCESS
2017-10-05 21:57:09 PM UTC SUCCESS
2017-09-28 21:58:09 PM UTC SUCCESS
2017-09-21 21:56:09 PM UTC SUCCESS
2017-09-14 22:01:10 PM UTC SUCCESS

Ansible Role: Nginx

Build Status

Installs SignalFx's fork of Collectd on Linux servers, and allows easy management of collectd integrations for SignalFx.



Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

signalfx_token: ''

Set your SignalFx token, otherwise collectd stats won't transmit!

collectd_hostname: ''

Explicitly set a Hostname. If left empty, the server FQDN will be used instead.

collectd_install_command: "/tmp/collectd-install {{ signalfx_token }} -y"
collectd_bin_path: /usr/sbin/collectd

These settings are used to install SignalFx's forked Collectd version, and to verify it is installed (using the collectd_bin_path). Generally, you shouldn't need to change these.

  - url:
    filename: 10-nginx.conf

Add list items with keys url and filename to download managed config files from a URL to the collectd managed_config directory. Adding a new item will trigger a restart of collectd at the end of the playbook run. For a listing of all the example configurations from SignalFx, check out the signalfx/integrations repository.

  - filename: 10-nginx.conf
    regexp: '^  URL.+nginx_status"$'
    line: '  URL "http://localhost:81/nginx_status"'

Add list items with keys filename, regexp, and line to change managed config file lines. This is most useful if you just need to do something like change a port number or switch a flag. For anything more complex, you should copy your own template.

In the example above, the file 10-nginx.conf will be scanned for a line matching the regexp (in this case, a line that starts with URL and includes nginx_status). Then the entire line will be replaced with the contents of the line parameter. In this case, the change will set the Nginx server port where it's status is retrieved to 81.



Example Playbook

- hosts: server
    - geerlingguy.collectd-signalfx



Author Information

This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.