Why study Grafana, COLLECTD and InfluxDB, because I work in the use of open source monitoring software (Nagios, Cacti) drawing is based on RRD implementation, and frankly not very beautiful, and can not customize the chart, But with my development level can not do to write their own charts. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0059.gif "alt=" J_0059.gif "/>
GRAFANA+COLLECTD+INFLUXDB, using the client-side storage->web Interface display mode of operation, the use of UTP transmission data, and support custom charts, have good extensibility, it is important to Grafana The page display is more beautiful.
Page display to view the official demo platform: http://play.grafana.org/
First of all, the working mode and division of this combination:
Capture Data (COLLECTD), storage data (InfluxDB), display data (Grafana).
InfluxDB is a Go language development of an open-source distributed time series database, very suitable for storing indicators, events, analysis and other data, see version number (v0.8.8) know that the project is still very young;
COLLECTD do not have to introduce it, C language write a System performance acquisition tool;
Grafana is a front-end tool developed for pure Javascript for accessing InfluxDB, customizing reports, displaying charts, and more
COLLECTD is responsible for the data from the client to the server InfluxDB This database, Grafana is responsible for the data from the InfluxDB library out of the page to display
Test Environment Introduction:
Server side: 172.18.1.113
Installer: InfluxDB Grafana
Client side: 172.18.2.125
Installer: COLLECTD
Server Side
First, INFLUXDB installation
(1) Configuring the 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) Installation and start-up
#yum install-y Influxdb
#service influxdb Start
(3) Related information
Web Backend http://172.18.1.113:8083/
API Interface 172.18.1.113:8086
Configuration file path:/etc/influxdb/influxdb.conf
Second, Grafana installation
1.RPM Package Installation
(1) Installation
#wget https://grafanarel.s3.amazonaws.com/builds/grafana-2.6.0-1.x86_64.rpm
#rpm-UVH grafana-2.6.0-1.x86_64.rpm
(2) Modify the configuration
Log path:
/var/log/grafana/grafana.log
Configuration file path:
/etc/grafana/grafana.ini
#vim /etc/grafana/grafana.ini
Because the default port 3000 and a program conflict in my test environment, modify the default service port to
Http_port = 3001
#/etc/init.d/grafana-server restart
Access http://172.18.1.113:3001 after starting service
Client Side
COLLECTD installation, most of the Linux version comes with the Yum source has this software
#yum insatll-y COLLECTD
This article is from the "No Technology Madness" blog, please be sure to keep this source http://s8576.blog.51cto.com/9510968/1745439
Grafana, COLLECTD and InfluxDB build modern surveillance System (i) Installation Chapter