JMeter + influxdb + grafana frame mounting

 


Influxdb Introduction

InfluxDB is open for a database to store and analyze the time series data. Key features include: Built-in HTTP interface, easy to use data can be marking, search queries can be very flexible so that SQL-like query management is very simple to install and very efficient real-time read and write data query, data is written in the index after It can be found immediately

Influxdb installation

Add Configuration warehouse

cat <<EOF | sudo 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

installation

sudo yum install influxdb

start up

sudo service influxdb start
# 配置为开机启动
sudo /sbin/chkconfig --add influxdb

Inflxudb Configuration

influxdb profile address

/etc/influxdb/influxdb.conf

Influxd config configuration file output

Grafana installation

Yum install directly

sudo yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.4-1.x86_64.rpm

By mounting yum repository  added to the configuration information/etc/yum.repos.d/grafana.repo

cat <<EOF | sudo tee /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
EOF

installation

sudo yum install grafana

Starting method

1. Start by service

sudo service grafana-server start

2. configured to boot

sudo /sbin/chkconfig --add grafana-server

3. Start by systemctl

systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server

./jmeter -n -t /home/ceshi/jmeter/login_uc.jmx -R 10.150.89.206:1099 -l result.jtl -e -o /home/ceshi/jmeter/jmeter_report/

 

Installation Chronograf (UI interface to view influxdb database)

(Version 1.4) influxdb to remove the built-in web page (not in admin bar influxdb.conf), the page you want to view data from the web, you can install the official presentation tool supporting Chronograf, with the feeling and grafana like.

Cnetos 7 mounted:

get https://dl.influxdata.com/chronograf/releases/chronograf-1.6.1.x86_64.rpm
sudo yum localinstall chronograf-1.6.1.x86_64.rpm 

start up:

systemctl start chronograf

If you do not start directly

sh /usr/bin/chronograf

Enabled by default port 8888, browser access

http://IP:8888

(If installed in the virtual machine, not open, you can try using nginx transfer service)

Guess you like

Origin www.cnblogs.com/summerxye/p/10965908.html