Skip to content

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

Notifications You must be signed in to change notification settings

takaidohigasi/telegraf-sample

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published