b7a6ceb086
This set of playbooks install an Elasticsearch cluster, Logstash and a kibana dashboard inside containers and then install Topbeat in your cloud to ship system metrics to the Elastic cluster. Change-Id: I0c8c853ee48bd9278bd7b08719be4bde5f8c3df6
19 lines
525 B
Django/Jinja
19 lines
525 B
Django/Jinja
input:
|
|
period: 10
|
|
procs: [".*"]
|
|
|
|
stats:
|
|
system: true
|
|
proc: true
|
|
filesystem: true
|
|
|
|
output:
|
|
logstash:
|
|
hosts: {% set IP_ARR=[] %}{% for host in groups['elastic-logstash'] %}{% if IP_ARR.insert(loop.index,hostvars[host]['ansible_ssh_host']) %}{% endif %}{% endfor %}[{{ IP_ARR | map('regex_replace', '$', ':' ~ logstash_beat_input_port|string()) | map('regex_replace', '$', '"') | map('regex_replace', '^', '"') | list | join(',' ) }}]
|
|
|
|
shipper:
|
|
|
|
logging:
|
|
files:
|
|
rotateeverybytes: 10485760 # = 10MB
|