InfluxDB是一個用於存儲和分析時間序列數據的開源數據庫。 主要特性有: 內置HTTP接口,使用方便 數據能夠打標記,查讓查詢能夠很靈活 類SQL的查詢語句 安裝管理很簡單,而且讀寫數據很高效 可以實時查詢,數據在寫入時被索引後就可以被當即查出nginx
添加配置倉庫web
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
安裝數據庫
sudo yum install influxdb
啓動瀏覽器
sudo service influxdb start # 配置爲開機啓動 sudo /sbin/chkconfig --add influxdb
influxdb配置文件地址bash
/etc/influxdb/influxdb.conf
配置文件輸出 influxd config工具
Grafana 安裝ui
直接使用yum 安裝url
sudo yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.4-1.x86_64.rpm
經過yum存儲庫安裝 添加配置信息到/etc/yum.repos.d/grafana.repo
spa
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
安裝code
sudo yum install grafana
啓動方式
1 .經過service啓動
sudo service grafana-server start
2 .配置爲開機啓動
sudo /sbin/chkconfig --add grafana-server
3 .經過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/
(1.4版本)influxdb就去掉了自帶的web頁面(influxdb.conf中沒有admin欄),想要從web頁面查看數據,能夠安裝官方配套的展現工具Chronograf,用着感受和grafana很像。
Cnetos 7下安裝:
get https://dl.influxdata.com/chronograf/releases/chronograf-1.6.1.x86_64.rpm sudo yum localinstall chronograf-1.6.1.x86_64.rpm
啓動:
systemctl start chronograf
若是執行不了直接啓動
sh /usr/bin/chronograf
默認開啓8888端口,瀏覽器訪問
http://IP:8888
(如果在虛擬機安裝,打不開,能夠嘗試用nginx轉服務)