Skip to content

Latest commit

 

History

History
87 lines (57 loc) · 2 KB

README.md

File metadata and controls

87 lines (57 loc) · 2 KB

telegraf-sample

sample code to collect metrics by using telegraf, store and visualize

setup

$ vagrant up

provision

$ ansible-playbook site.yml -i hosts -k -c paramiko
SSH password: 

please type password for vagrant user : vagrant

Log server administration

Node deployment

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

Grafana dashboard administration

http://docs.grafana.org/datasources/influxdb/

Setup Data Sources

Data Sources > add data source

  • Name: influxdb
  • Type: InfluxDB
  • Http settings:
  • InfluxDB Details
    • Database: influxdb
    • User: root
    • Password: root

Import Dashboard sample

open dashboard import and select roles/grafana/files/sample.json

Metric collector administration

Node deployment

  • 192.168.33.2: client-node
    • telegraf (/opt/telegraf)

please see README.md for detail

distributed config by this repository is here

Notes