A preliminary study on Telegraf+influxdb+grafana environment

Source: Internet
Author: User
Tags grafana influxdb

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/8B/6D/wKioL1hOVYaAJg8tAAA9sTtpadM889.jpg "title=" 1.JPG " alt= "Wkiol1hovyaajg8taaa9sttpadm889.jpg"/>

Brief introduction on Telegraf+influxdb+grafana environment

Part1 : write at the top

Grafana, a very useful open source monitoring (should be said to be out of the picture) software. Various types of personalization are very easy to use, like common cpu,mem,mysql common monitoring items are already built-in. Grafana is not my use in production, in the spirit of learning and communication principles, to write this article.



Installation

Part1:Environment Preparation


Environment:

He3:mysql host server, monitored by the machine IP 192.168.1.250

Mysqlport 3306

Deployment Telegraf

He4:grafana Server host server, monitoring machine IP 192.168.1.251

Deployment Influxdb and the Grafana

influxdb8086

Grafana 3000


Part1:Telegraf installation

HE3:

[Email protected]~]# rpm-ivh telegraf-0.13.1.x86_64.rpm

[[Email protected]~]#/etc/init.d/telegraf Start

[Email protected]~]# tail-f/var/log/telegraf/telegraf.log



Part2:influxdb Installation

HE4:

[Email protected]~]# rpm-ivh influxdb-0.13.0-1.x86_64

(2) Start Influxdb

[[Email protected]~]#/etc/init.d/influxdb Start


Log on to the database to create a database that collects statistics ( High version does not have to do this step )

[Email protected] ~]# influx

> showdatabases;

Name:databases

---------------

Name

Telegraf

> Use Telegraf

Using Databasetelegraf

> showmeasurements

Name:measurements

------------------

Name

Cpu

Disk

Diskio

Kernel

Mem

Mysql

Mysql_info_schema

Mysql_perf_schema

Mysql_users

Net

Netstat

Processes

Swap

System


PART3:grafana installation

HE4:

[[Email protected]~]# RPM-IVH grafana-3.0.4-1464167696.x86_64.rpm

[[Email protected]~]#/etc/init.d/grafana-server Start


Use

Part1:InfluxDBUse

Web Login

192.168.1.251:8083

Influxdb Configure the password, user name password Admin Admin




650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/8B/72/wKiom1hOWA6AXN3EAACeUPNMciE285.jpg "title=" 2.JPG " alt= "Wkiom1howa6axn3eaaceupnmcie285.jpg"/>


Part2:GrAfanaUse

Configure the data source

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/8B/72/wKiom1hOWOiS-Z17AADZdN7YH2Q007.jpg "title=" 5.JPG " alt= "Wkiom1howois-z17aadzdn7yh2q007.jpg"/>

The monitoring page is configured to the appropriate content to monitor.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/8B/72/wKiom1hOWZ_xiIC-AAI4HuODilo704.jpg "title=" 4.JPG " alt= "Wkiom1howz_xiic-aai4huodilo704.jpg"/>



-- summary --

This article only carries on the preliminary study to the Grafana, will do further research in the future. Due to the author's limited level, writing time is also very hasty, the text will inevitably appear some errors or inaccurate places, inappropriate to ask readers to criticize correct.



This article is from the "He Lei Technology Blog" blog, make sure to keep this source http://suifu.blog.51cto.com/9167728/1881980

A preliminary study on Telegraf+influxdb+grafana environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.