sample code to collect metrics by using telegraf, store and visualize
$ vagrant up
$ ansible-playbook site.yml -i hosts -k -c paramiko
SSH password:
please type password for vagrant user : vagrant
- 192.168.33.3: log-server
- InfluxDB administration
- user: root
- password: root
- database: influxdb
- Grafana
- user: admin
- password: admin
- InfluxDB administration
- example of show tables like querying
SHOW SERIES
please see also the manual for detail
- example of showing points of series
SELECT * FROM cpu LIMIT 10;
please see also the manual) for detail
http://docs.grafana.org/datasources/influxdb/
Data Sources > add data source
- Name: influxdb
- Type: InfluxDB
- Http settings:
- Url: http://192.168.33.3:8086
- Access: direct
- InfluxDB Details
- Database: influxdb
- User: root
- Password: root
open dashboard import and select roles/grafana/files/sample.json
- 192.168.33.2: client-node
- telegraf (/opt/telegraf)
please see README.md for detail
distributed config by this repository is here
- please be sure to confirm timezones of virtualmachines/host are identical.
- see also Japanese related document