mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Fix meta file
This commit is contained in:
@ -15,6 +15,7 @@ galaxy_info:
|
|||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
categories:
|
galaxy_tags:
|
||||||
- monitoring
|
- monitoring
|
||||||
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
@ -25,6 +25,33 @@ provisioner:
|
|||||||
name: ansible
|
name: ansible
|
||||||
lint:
|
lint:
|
||||||
name: ansible-lint
|
name: ansible-lint
|
||||||
|
inventory:
|
||||||
|
group_vars:
|
||||||
|
all:
|
||||||
|
telegraf_plugins_default:
|
||||||
|
- plugin: cpu
|
||||||
|
config:
|
||||||
|
- percpu = true
|
||||||
|
- plugin: disk
|
||||||
|
- plugin: io
|
||||||
|
- plugin: mem
|
||||||
|
- plugin: net
|
||||||
|
- plugin: system
|
||||||
|
- plugin: swap
|
||||||
|
- plugin: netstat
|
||||||
|
- plugin: processes
|
||||||
|
- plugin: kernel
|
||||||
|
- plugin: nginx
|
||||||
|
config:
|
||||||
|
- urls = ["http://localhost/nginx_status"]
|
||||||
|
- plugin: logparser
|
||||||
|
config:
|
||||||
|
- files = ["/var/log/nginx/access.log"]
|
||||||
|
- from_beginning = true
|
||||||
|
- name_override = "nginx_access_log"
|
||||||
|
- \[logparser.grok\]
|
||||||
|
- patterns = ["%{COMBINED_LOG_FORMAT}"]
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
name: default
|
name: default
|
||||||
verifier:
|
verifier:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.value.config is defined and item.value.config is iterable %}
|
{% if item.value.config is defined and item.value.config is iterable %}
|
||||||
{% for items in item.value.config %}
|
{% for items in item.value.config %}
|
||||||
{{ items }}
|
{% raw %}{{ items }}{% endraw %}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.value.tags is defined and item.value.tags is iterable %}
|
{% if item.value.tags is defined and item.value.tags is iterable %}
|
||||||
|
Reference in New Issue
Block a user