Glaces + influxdb + granfana build server monitoring system

Time:2021-6-14

Glaces + influxdb + granfana build server monitoring system

Service monitoring is your eye. You should feel restless when you know nothing about the server’s health.

<!–more–>

Glaces installation

Glaces is written in Python, so you can install it directly using pip


pip3 install glances

Influxdb installation


wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.2.x86_64.rpm

sudo yum localinstall influxdb-1.8.2.x86_64.rpm

Collect data to influxdb

Configure graces

vim /etc/glances/glances.conf


[influxdb]

# Configuration for the --export influxdb option

# https://influxdb.com/

host=localhost

port=8086

user=root

password=root

db=glances

prefix=localhost

#tags=foo:bar,spam:eggs

pip3 install influxdb

glances --export influxdb

implementglances --export influxdbTest, error report

InfluxDB database 'glances' did not exist. Please create itA new database needs to be created.

Execute shellinflux

Create database graces ා create data

Show databases ා view database

Execute againglances --export influxdb, which can be displayed as follows, indicating that everything is normal at present

Glaces + influxdb + granfana build server monitoring system

Granfana installation


wget https://dl.grafana.com/oss/release/grafana-7.1.5-1.x86_64.rpm

sudo yum install grafana-7.1.5-1.x86_64.rpm

start-up


systemctl daemon-reload

systemctl start grafana-server

systemctl status grafana-server

  

systemctl enable grafana-server.service

Configure data sources

Glaces + influxdb + granfana build server monitoring system

Grafana also supports Zipkin

Glaces + influxdb + granfana build server monitoring system

Blog content follows CC by-nc-sa 4.0 protocol

The permanent link to this article is:http://visonforcoding.github.io/2020/08/25/glances-influxdb-granfana%E6%89%93%E9%80%A0%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9B%91%E6%8E%A7%E7%B3%BB%E7%BB%9F/

Glaces + influxdb + granfana build server monitoring system

Buy me a cup of coffee