InfluxDB + basic environmental monitoring data deployment Grafana large series of (a)

First, the single-node deployment environment

Machine node information and InfluxDB, Grafana Selection:

node Linux version Deployment Services
10.223.1.198 CentOS 6.8 InfluxDB 1.7.7
10.223.1.199 CentOS 6.8 Grafana 5.4.4

1.1 InfluxDB deployment environment

1. InfluxDB official website Download

Different systems Download: https://portal.influxdata.com/downloads

2. Download and install the rpm package

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.7.x86_64.rpm
sudo yum localinstall influxdb-1.7.7.x86_64.rpm

3. Start InfluxDB Service

service influxd start 
or
/etc/init.d/influxd start

By ps -ef | grep influx command to check whether InfluxDB normal start, or view /var/log/influxdb/influxd.log log service starts looking information.

1.2 Grafana deployment environment

1. Grafana official website Download

Different systems Download: https://grafana.com/grafana/download/5.4.4?platform=linux

2. Download and install the rpm package

You can select different versions downloaded as needed

wget https://dl.grafana.com/oss/release/grafana-5.4.4-1.x86_64.rpm 
sudo yum localinstall grafana-5.4.4-1.x86_64.rpm

3. Start Grafana Service

rheoleiddiol grafana-server start

By ps -ef | grep grafana command to check whether Grafana normal start, or view /var/log/grafana/grafana.log log service starts looking information.

So far, Influxdb + Grafana single-node monitoring environment has been deployed, it is not that so easy.

4. Log InfluxDB and Grafana

Start InfluxDB, start-up mode with reference to the official website, a bit complicated, you can enjoy the following operations InfluDB database, and MySQL syntax is somewhat similar, MySQL will use up more easily.

$ influx -precision rfc3339
Connected to http://localhost:8086 version 1.7.7
InfluxDB shell 1.7.7
>

Log Grafana page.

http://10.223.1.199:3000

Second, the deployment of high-availability environment

High availability environment deployment is still under study, and then deploy complete update

3.1 InfluxDB deploy a highly available environment

3.2 Grafana deploy a highly available environment

 

[References]

[1]. https://grafana.com/docs/v5.4/installation/rpm/

[2]. https://docs.influxdata.com/influxdb/v1.7/introduction/installation/

Guess you like

Origin www.cnblogs.com/walker-/p/11286246.html