Deploy Grafana + influxdb + Telegraf under Linux to build performance monitoring platform

Source: Internet
Author: User
Tags gpg grafana influxdb

GRAFANA+TELEGRAF+INFLUXDB, using the client-side storage->web Interface display mode of operation, using UTP transmission data, and support custom charts, with good extensibility,

grafana page presentation is more beautiful, more importantly influxdb provides python api,< Span style= "Box-sizing:border-box; margin:0px; padding:0px; " >influxdb provides the Python API , influxdb provides Python's API , which is important to say three times.

Page display to view the official demo platform: http://play.grafana.org/

First of all, the working mode and division of this combination:

Acquisition data (telegraf ), storage data (InfluxDB), display data (Grafana). The
influxdb  is an open-source, distributed time-series database for Go language development, ideal for storing metrics, events, analytics, and so on.
telegraf  don't have to introduce it, C. A System performance acquisition tool written in language;
grafana  is a front-end tool developed for pure Javascript for accessing InfluxDB, customizing reports, displaying charts, and more


Telegraf is responsible for collecting data from the client to the server influxdb This database, Grafana is responsible for the data from influxdb The library is taken out to show the page

Test Environment Introduction:
Server side: 192.168.142.10
Installer: InfluxDB Grafana

Client side:192.168.142.11
Installer: Telegraf


1. Installation Platform

Server Side

First, influxdb install

(1) Configure Yum source
Cat <<eof |tee/etc/yum.repos.d/influxdb.repo
[influxdb]
name = Influxdb Repository-rhel \$ Releasever
BaseURL = https://repos.influxdata.com/rhel/\ $releasever/\ $basearch/stable
Enabled = 1
Gpgcheck = 1
Gpgkey = Https://repos.influxdata.com/influxdb.key
EOF

(2) Install and start
#yum install-y influxdb &NBSP
#service influxdb start

(3) Related information

api interface 192.168.142.10 : 8086
configuration file path:/etc/influxdb/influxdb.conf


Second,Grafana installation

(1) Configuring the Yum Source

Cat <<eof |tee/etc/yum.repos.d/grafana.repo

[Grafana]

Name=grafana

baseurl=https://packagecloud.io/grafana/stable/el/6/$basearch

Repo_gpgcheck=1

Enabled=1

Gpgcheck=1

Gpgkey=https://packagecloud.io/gpg.key Https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana

Sslverify=1

Sslcacert=/etc/pki/tls/certs/ca-bundle.crt

Eof

(2) Installation and start-up

# yum Install-y Grafana

# can also be installed directly

# yum Install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.3-1.x86_64.rpm


# service grafana-server Start

# Systemctl Daemon-reload

# Systemctl Start Grafana-server

# SYSTEMCTL Status Grafana-server

#开机自启动

# Systemctl Enable Grafana-server.service



Installing binary Files/usr/sbin/grafana-server

Copy the Init.d script to the/etc/init.d/grafana-server

Install default file (environment variable)/etc/sysconfig/grafana-server

Copy the configuration file to/etc/grafana/grafana.ini

Install the SYSTEMD service (if SYSTEMD is available) name Grafana-server.service

The default configuration uses a log file in the/var/log/grafana/grafana.log

The default configuration specifies a Sqlite3 database/var/lib/grafana/grafana.db

(3) Related information

Log path:

/var/log/grafana/grafana.log

Configuration file path:
#/etc/grafana/grafana.ini

#vim  /etc/grafana/grafana.ini


#/etc/init.d/grafana-server restart

Access Http://192.168.142.10:3000/after starting service


Client Side

Telegraf Installation

Add a yum source.

Cat <<eof | sudo tee/etc/yum.repos.d/influxdb.repo

[Influxdb]

name = InfluxDB Repository-rhel \ $releasever

BaseURL = https://repos.influxdata.com/rhel/\ $releasever/\ $basearch/stable

Enabled = 1

Gpgcheck = 1

Gpgkey = Https://repos.influxdata.com/influxdb.key

Eof

# yum Install-y Telegraf

# service Telegraf Start

# Systemctl Start Telegraf


Configuration Telegraf, please see the official documentation for detailed configuration details.

https://docs.influxdata.com/telegraf/v1.5/administration/configuration/

Deploy Grafana + influxdb + Telegraf under Linux to build performance monitoring platform

Related Article

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.