Last active
August 29, 2015 14:16
-
-
Save marcy-terui/f4627be4f8e31d16d5d5 to your computer and use it in GitHub Desktop.
Specinfra Host InventoryのデータをFluentdで集めてElasticsearchに入れてKibanaで見る構成管理 ref: http://qiita.com/Marcy/items/5814a2ae647a6e25a44d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: docker_cli | |
provisioner: | |
name: chef_zero | |
platforms: | |
- name: centos-6.6 | |
- name: fedora-20 | |
- name: ubuntu-14.04 | |
suites: | |
- name: elasticsearch | |
driver_config: | |
container_name: es | |
publish: 5601:5601 | |
privileged: true | |
excludes: | |
- fedora-20 | |
- ubuntu-14.04 | |
run_list: | |
- recipe[es-specinfra-example::elasticsearch] | |
- name: fluentd01 | |
driver_config: | |
link: es:es | |
run_list: | |
- recipe[es-specinfra-example::fluentd] | |
- name: fluentd02 | |
driver_config: | |
link: es:es | |
run_list: | |
- recipe[es-specinfra-example::fluentd] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type specinfra_inventory | |
cast_num true | |
cast_byte true | |
cast_percent true | |
time_span 60 | |
</source> | |
<match specinfra.inventory> | |
type forest | |
subtype elasticsearch | |
<template> | |
host es | |
logstash_format true | |
logstash_prefix fluentd-${hostname} | |
</template> | |
</match> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type specinfra_inventory | |
inventory_keys ["platform", "hostname", "cpu.total"] | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment