Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from librato/bugfix/default-collectd-config
Browse files Browse the repository at this point in the history
Enable FQDN lookup and comment out the static hostname
  • Loading branch information
mjulian authored Dec 9, 2016
2 parents 8f12149 + dfacb64 commit d2fa0b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ To use your own custom or upstream collectd plugin, simply have another module d

**Type**: string

The hostname to use for the node. Defaults to the FQDN of the node (`fqdn`).
The hostname to use for the node. Defaults to `nil` in favor of using `FQDNLookup`.

- `librato_fqdn_lookup`

**Type**: true/false

Perform an FQDN lookup or not. Defaults to `false`.
Perform an FQDN lookup for the hostname. Defaults to `true`.

- `librato_interval`

Expand Down
8 changes: 1 addition & 7 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ librato_deb_version: '5.5.0-librato51.251'
librato_rh_version: '5.5.0_librato51.251'
librato_config_base: '/opt/collectd/etc'
librato_plugin_config_path: '/opt/collectd/etc/collectd.conf.d'
librato_hostname: "{{ ansible_fqdn }}"
librato_fqdn_lookup: false
librato_fqdn_lookup: true
librato_interval: 60
librato_default_plugins: ['cpu', 'df', 'disk', 'swap', 'memory', 'load']
librato_enabled_plugins: []
Expand All @@ -26,8 +25,6 @@ librato_logging_logstash_filename: '/opt/collectd/var/log/collectd.json.log'
librato_apache_protocol: 'http'
librato_apache_host: 'localhost'
librato_apache_path: '/server-status'
librato_apache_user: nil
librato_apache_password: nil

librato_nginx_protocol: 'http'
librato_nginx_host: 'localhost'
Expand All @@ -44,13 +41,10 @@ librato_memcached_port: '11211'
librato_elasticsearch_protocol: 'http'
librato_elasticsearch_host: 'localhost'
librato_elasticsearch_port: '9200'
librato_elasticsearch_cluster_name: nil
librato_elasticsearch_verbose: true

librato_mongodb_host: 'localhost'
librato_mongodb_port: '27017'
librato_mongodb_user: nil
librato_mongodb_password: nil
librato_mongodb_databases: []
librato_mongodb_name: 'mongodb'

Expand Down
2 changes: 2 additions & 0 deletions templates/collectd.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# Global settings for the daemon. #
##############################################################################

{% if librato_hostname is defined %}
Hostname "{{ librato_hostname }}"
{% endif %}
FQDNLookup {{ librato_fqdn_lookup }}
Interval {{ librato_interval }}

Expand Down

0 comments on commit d2fa0b2

Please sign in to comment.