mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
a733de5695 | |||
f28ba37db5 | |||
54f2b75af5 | |||
bbcd52e32f | |||
e2205aa7d8 | |||
66e20cd7f6 |
15
.travis.yml
Normal file
15
.travis.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
language: python
|
||||||
|
python: "2.7"
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq python-apt python-pycurl
|
||||||
|
install:
|
||||||
|
- pip install ansible==1.9.4
|
||||||
|
- echo -e 'localhost ansible_connection=local' > test/inventory
|
||||||
|
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./test/inventory' > ansible.cfg
|
||||||
|
script:
|
||||||
|
- ansible-playbook test/integration/default.yml --syntax-check
|
||||||
|
- ansible-playbook test/integration/default.yml --connection=local --sudo
|
||||||
|
notifications:
|
||||||
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
@ -5,6 +5,13 @@ Below an overview of all changes in the releases.
|
|||||||
|
|
||||||
Version (Release date)
|
Version (Release date)
|
||||||
|
|
||||||
|
0.4.0 (2016-02-05)
|
||||||
|
|
||||||
|
* Fixed test for test-kitchen
|
||||||
|
* Added travis-ci test for testing default installation when PR is made
|
||||||
|
* Fixed Download url for Debian
|
||||||
|
* Removed default entry for telegraf_plugins_extra
|
||||||
|
|
||||||
0.3.0 (2016-01-13)
|
0.3.0 (2016-01-13)
|
||||||
|
|
||||||
* Made it work with telegraf 0.10.0
|
* Made it work with telegraf 0.10.0
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
dj-wasabi.telegraf
|
dj-wasabi.telegraf
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
Build status:
|
||||||
|
|
||||||
|
[](https://travis-ci.org/dj-wasabi/ansible-telegraf)
|
||||||
|
|
||||||
This role will install and configure telegraf.
|
This role will install and configure telegraf.
|
||||||
|
|
||||||
Telegraf is an agent written in Go for collecting metrics from the system it's running on, or from other services, and writing them into InfluxDB.
|
Telegraf is an agent written in Go for collecting metrics from the system it's running on, or from other services, and writing them into InfluxDB.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# defaults file for ansible-telegraf
|
# defaults file for ansible-telegraf
|
||||||
|
|
||||||
telegraf_agent_version: 0.10.0
|
telegraf_agent_version: 0.10.1
|
||||||
telegraf_agent_interval: 10
|
telegraf_agent_interval: 10
|
||||||
telegraf_agent_debug: False
|
telegraf_agent_debug: False
|
||||||
telegraf_agent_round_interval: True
|
telegraf_agent_round_interval: True
|
||||||
@ -30,7 +30,3 @@ telegraf_plugins_default:
|
|||||||
- plugin: netstat
|
- plugin: netstat
|
||||||
|
|
||||||
telegraf_plugins_extra:
|
telegraf_plugins_extra:
|
||||||
- plugin: procstat
|
|
||||||
specifications:
|
|
||||||
- prefix = "" # optional string to prefix measurements
|
|
||||||
- exe = "java" # the name as pgrep can find
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
- name: "Fetch telegraf installation package | Debian"
|
- name: "Fetch telegraf installation package | Debian"
|
||||||
action: get_url
|
action: get_url
|
||||||
url=http://get.influxdb.org/telegraf/telegraf-{{ telegraf_agent_version }}_amd64.deb
|
url=http://get.influxdb.org/telegraf/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
|
||||||
dest=/tmp/telegraf_{{ telegraf_agent_version }}_amd64.deb
|
dest=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
|
||||||
mode=0440
|
mode=0440
|
||||||
|
|
||||||
- name: "Install telegraf package | Debian"
|
- name: "Install telegraf package | Debian"
|
||||||
action: apt
|
action: apt
|
||||||
deb=/tmp/telegraf_{{ telegraf_agent_version }}_amd64.deb
|
deb=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
|
||||||
state=installed
|
state=installed
|
||||||
notify: "Restart Telegraf"
|
notify: "Restart Telegraf"
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
@ -15,7 +15,7 @@ describe 'Telegraf Services' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'Telegraf Configuration' do
|
describe 'Telegraf Configuration' do
|
||||||
describe file('/etc/opt/telegraf/telegraf.conf') do
|
describe file('/etc/telegraf/telegraf.conf') do
|
||||||
it { should be_file}
|
it { should be_file}
|
||||||
it { should be_owned_by 'root'}
|
it { should be_owned_by 'root'}
|
||||||
it { should be_grouped_into 'root'}
|
it { should be_grouped_into 'root'}
|
||||||
|
Reference in New Issue
Block a user