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:

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:
Installer: InfluxDB Grafana

Client side:
Installer: Telegraf

1. Installation Platform

Server Side

First, influxdb install

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

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

(3) Related information

api interface : 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







Gpgkey= Https://




(2) Installation and start-up

# yum Install-y Grafana

# can also be installed directly

# yum Install

# 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:


Configuration file path:

#vim  /etc/grafana/grafana.ini

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

Access Http:// starting service

Client Side

Telegraf Installation

Add a yum source.

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


name = InfluxDB Repository-rhel \ $releasever

BaseURL =\ $releasever/\ $basearch/stable

Enabled = 1

Gpgcheck = 1

Gpgkey = Https://


# yum Install-y Telegraf

# service Telegraf Start

# Systemctl Start Telegraf

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

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: 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.