Merge pull request #1 from aferrari-technisys/master

Improvement and upgrade for v0.2.0 of telegraf
This commit is contained in:
Werner Dijkerman
2015-10-29 14:00:31 +01:00
3 changed files with 21 additions and 7 deletions

View File

@ -19,11 +19,10 @@ Role Variables
The following parameters can be set for the Telegraf agent:
* `telegraf_agent_version`: The version of Telegraf to install. Default: `0.1.9`
* `telegraf_agent_version`: The version of Telegraf to install. Default: `0.2.0`
* `telegraf_agent_interval`: The interval configured for sending data to the server. Default: `10`
* `telegraf_agent_debug`: Setting the Telegraf in debug mode. Default: `False`
* `telegraf_agent_utc`: Option for outputting data in UTC. Default: `True`
* `telegraf_agent_precision`: Precision to write data at. Valid values for Precision are n, u, ms, s, m, and h. Default: `s`
You can set tags for the host running telegraf:
@ -62,6 +61,7 @@ With the property `telegraf_plugins_default` it is set to use the default set of
- plugin: mem
- plugin: system
- plugin: swap
- plugin: netstat
Every telegraf agent has these as an default configuration.

View File

@ -1,11 +1,9 @@
---
# defaults file for ansible-telegraf
telegraf_agent_version: 0.1.9
telegraf_agent_version: 0.2.0
telegraf_agent_interval: 10
telegraf_agent_debug: False
telegraf_agent_utc: True
telegraf_agent_precision: s
telegraf_agent_tags:
@ -24,5 +22,10 @@ telegraf_plugins_default:
- plugin: mem
- plugin: system
- plugin: swap
- plugin: netstat
telegraf_plugins_extra:
- plugin: procstat
specifications:
- prefix = "" # optional string to prefix measurements
- exe = "java" # the name as pgrep can find

View File

@ -62,6 +62,12 @@
{{ items }}
{% endfor %}
{% endif %}
{% if item.specifications is defined and item.specifications is iterable %}
{% for items in item.specifications %}
{{ items }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
@ -101,6 +107,11 @@
{{ items }}
{% endfor %}
{% endif %}
{% if item.specifications is defined and item.specifications is iterable %}
{% for items in item.specifications %}
{{ items }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}