grafana underwear

Grafana is a visualization panel (Dashboard) with very beautiful charts and layouts, a full-featured metric dashboard and graph editor, and supports Graphite, zabbix, InfluxDB, Prometheus and OpenTSDB as data sources. The main features of Grafana: flexible and rich graphical options; a variety of styles can be mixed; support for day and night modes; multiple data sources.
Centos installation
1. Install through yum

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-1.x86_64.rpm #下载yum源
yum localinstall grafana-4.2.0-1.x86_64.rpm

Online yum installation
yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.0-1.x86_64.rpm
via rpm installation

$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.0-1.x86_64.rpm
$ sudo yum install initscripts fontconfig
$ sudo rpm -Uvh grafana-5.1.0-1.x86_64.rpm

add yum configuration

/etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/7/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
yum install grafana

Notes:
● Binary install /usr/sbin/grafana-server
● Startup script location /etc/init.d/grafana-server
● Install default file /etc/sysconfig/grafana-server
● Copies configuration file to /etc/grafana/grafana .ini
● service name grafana-server.service
● default log location /var/log/grafana/grafana.log
● specified database /var/lib/grafana/grafana.db

Start the service
service grafana-server start
set the boot to start
/sbin/chkconfig --add grafana-server
the service through systemd

$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
systemctl enable grafana-server.service

If the image is missing text, make sure the font pack is installed

yum install fontconfig
yum install freetype*
yum install urw-fonts

upgrade grafana
yum update grafana

Use docker to install grafana
grafana default port 3000
run docker and map port 3000
$ docker run -d -p 3000:3000 grafana/grafana

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326217812&siteId=291194637