Grafana + influxdb + telegraf, building performance monitoring platform

Source: Internet
Author: User
Tags grafana influxdb

1. Installation Platform

1). Grafana , access to a variety of data sources, custom reports, display charts and so on to provide interface monitoring, the default port is 3000, the default login information admin

wget https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.1-1470047149.x86_64.rpmYum Install Initscripts fontconfig--ivh grafana-3.1. 1-1470047149. X86_64.rpmsystemctl start Grafana-server

2). Influxdb , time series database, default port is web-side 8083, API-side 8086, default login information admin

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.0.2.x86_64.rpmYum Localinstall influxdb-1.0. 2 . X8664.rpmsystemctl Start Influx

3). Telegraf , collects statistics on systems and services and writes them to the INFLUXDB database and installs them on the machine that needs to be monitored

Specific installation Tutorials Online A lot, I was installed in Linux under the three software, the impression that Telegraf is a version of Windows

2. Configure Telegraf

Telegraf is used to collect information written to INFLUXDB (or other data sources), so you need to configure the relevant information, here are examples of CPU and memory configuration, related documents

Https://github.com/influxdata/telegraf

1). Data source configuration (outputs.influxdb node):

[[outputs.influxdb]] URLs= ["http://192.168.18.118:8086"] #infulxdb地址 Database="Telegraf"#数据库 Precision="s"Timeout="5s"username="Admin"#帐号 Password="Admin"#密码

2). CPU configuration (INPUTS.CPU node):

[[[Inputs.cpu]]  # # Whetherto report per-CPU  stats ornottrue  # # Whether to Report Total system CPU stats or  nottrue

3). Memory configuration (Inputs.mem node):

[[Inputs.mem]]

After the configuration is run Telegraf, you can start to collect system information, [note]: All the attributes in the inputs node, in fact, can not display the configuration, do not write anything means all open

3. Configure Grafana

Once you have the data source, you can start configuring Grafana to present the data.

1). login Grafana, upper left corner menu Create a new data source and configure the relevant information

2). Add Dashboards

3). Settings can set basic information for this dashboard

4). Left green button to add a chart and other tools, first add a chart test

General: Basic information of the chart

Metrics: The information needed to configure the data source for the chart

Axes: Chart x axis y-axis detailed settings, unit settings, alert line settings

Display: The specific style of the display

5 ). Specific Configuration

6 ). Configure Refresh Time

7 ). Finally remember to save

The final effect is as follows, jumping once every 2 seconds

You can configure additional collection information for Telegraf to show more. You can also use other collection tools, such as jmeter to do stress testing, you can write to influxdb such as the amount of concurrency, requests, the number of successful requests, and other information. You can also collect MySQL data (such as additions and deletions) through mysqld_exporter to a data source (such as influxdb) and display MySQL-related data graphs in Grafana. For Grafana, you can build a powerful monitoring platform with the flexibility to use data collection tools .

Grafana + influxdb + telegraf, building performance monitoring platform

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.