geerlingguy / ansible-role-collectd-signalfx Goto Github PK
View Code? Open in Web Editor NEWAnsible Role - Collectd (for SignalFx)
Home Page: https://galaxy.ansible.com/geerlingguy/collectd-signalfx/
Ansible Role - Collectd (for SignalFx)
Home Page: https://galaxy.ansible.com/geerlingguy/collectd-signalfx/
Currently, if you change the SignalFx token after you've first installed collectd, it is not changed in the Collectd SignalFx configuration file.
See: Ability to test install process without valid token?. For now, I'm going to find some way to work around the installation process. But at some point I hope to be able to have this role more end-to-end testable.
Setting the Hostname in /etc/collectd/collectd.conf
is actually a little annoying to automate, since you have to make changes to two lines:
FQDNLookup false
Hostname www.example.com
So it would be nice if this role had a task to do this automatically. Something like:
- name: Set hostname in collectd configuration.
lineinfile:
dest: /etc/collectd/collectd.conf
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
insertbefore: "{{ item.insertbefore | default('') }}"
with_items:
- regexp: "^FQDNLookup .+$"
line: "FQDNLookup false"
- regexp: "^Hostname .+$"
line: 'Hostname "{{ collectd_hostname }}"'
insertbefore: "^FQDNLookup.+$"
when: collectd_hostname
notify: restart collectd
Then you can just add collectd_hostname
to set a custom hostname.
Reverting to not use a hostname and use FQDN instead would of course require a manual reversion; I'm not too worried about that though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.