内容简介:其实嘛 个人更想用zabbix事实上那个都不会,捂脸新建InfluxDB下载源
其实嘛 个人更想用zabbix
事实上那个都不会,捂脸
新建InfluxDB下载源
cat << EOF | 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
使用yum下载InfluxDB
yum install -y influxdb
修改InfluxDB的配置,主要配置jmeter存储的数据库与端口号,还有需要将UI端口开放
[root@localhost ~]# vi /etc/influxdb/influxdb.conf
找到graphite并且修改它的库与端口
[[graphite]] enabled = true database = "jmeter" bind-address = ":2003" protocol = "tcp" consistency-level = "one"
找到admin,将前面的#号去掉,开放它的UI端口
[admin] # Determines whether the admin service is enabled. enabled = true # The default bind address used by the admin service. bind-address = ":8083" # Whether the admin service should use HTTPS. # https-enabled = false # The SSL certificate used when HTTPS is enabled. # https-certificate = "/etc/ssl/influxdb.pem
启动InfluxDB
[root@localhost ~]# /etc/init.d/influxdb restart Stopping influxdb... influxdb process was stopped [ OK ] Starting influxdb... influxdb process was started [ OK ]
打开浏览器,访问虚拟机IP“ http://localhost:8083 ”
安装Grafana
wget https://dl.grafana.com/oss/release/grafana_5.4.2_amd64.deb sudo apt-get install -y adduser libfontconfig1 sudo dpkg -i grafana_5.4.2_amd64.deb
更改一下配置文件,解决占用问题
更改 sudo vi /usr/share/grafana/conf/defaults.ini文件 的
# The http port to use ;http_port = 3100
访问 localhost:3100 即可
添加数据源
放弃呼 实在弄不下去了
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。