influx1.8.6+jmeter+prometheus搭建

安装

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/7/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

运行安装命令

sudo yum install -y influxdb

启动

sudo systemctl start influxdb

配置开机启动

sudo systemctl enable influxdb

修改配置文件
vim /etc/influxdb/influxdb.conf

# Change this option to true to disable reporting.
reporting-disabled = false

# Bind address to use for the RPC service for backup and restore.
# bind-address = "127.0.0.1:8088"
hostname = "填写自己的服务器ip"
-----------------------------我是分割线----------------------------------
[http]
  # Determines whether HTTP endpoint is enabled.
  enabled = true

  # Determines whether the Flux query endpoint is enabled.
  # flux-enabled = false

  # Determines whether the Flux query logging is enabled.
  # flux-log-enabled = false

  # The bind address used by the HTTP service.
  bind-address = ":8086"

  # Determines whether user authentication is enabled over HTTP/HTTPS.
  #注意在创建数据库之前需要默认false,否则会创建数据库失败
  auth-enabled = false
  # auth-enabled = true
-----------------------------我是分割线----------------------------------
#修改数据库名称,然后再创建
[[graphite]]
  # Determines whether the graphite endpoint is enabled.
  enabled = false
  database = "jmeter"
  # retention-policy = ""
  bind-address = ":2003"
  protocol = "tcp"
  consistency-level = "one"

配置文件修改完后重启

systemctl restart influxdb

Web 页面
1.3前和1.5后版本不同, Influxdb添加了 Chronograf 组件作为web管理端,支持influxdb的基础监控、管理以及数据展示、警报管理及数据库管理。

Chronograf下载与安装:

# centos
wget https://dl.influxdata.com/chronograf/releases/chronograf-1.4.4.1.x86_64.rpm
sudo yum localinstall chronograf-1.4.4.1.x86_64.rpm

# ubuntu
wget https://dl.influxdata.com/chronograf/releases/chronograf_1.4.4.1_amd64.deb
sudo dpkg -i chronograf_1.4.4.1_amd64.deb

#启动web服务:
sudo systemctl start chronograf

然后通过 http://localhost:8888 连接Web页面。

创建数据库

[root@mast]# influx
Connected to http://localhost:8086 version 1.8.6
InfluxDB shell version: 1.8.6
> show databases;
name: databases
name
----
_internal
> create database jmeter;
> use jmeter;
> Using database jmeter
> create user "jmeter" with password '123456' with all privileges;
> show users;
user   admin
----   -----
jmeter true

jmeter Backend Listener配置
influx1.8.6+jmeter+prometheus搭建

grafan数据源添加,import导入4026
influx1.8.6+jmeter+prometheus搭建influx1.8.6+jmeter+prometheus搭建

参考链接:
https://blog.csdn.net/weixin_28922087/article/details/111918351
https://www.jianshu.com/p/e3eba4dc7439
https://testerhome.com/topics/21113
https://www.shangmayuan.com/a/a400a824a7b6474f8a94e9d6.html
权限问题:https://blog.51cto.com/dbaspace/1881705

扩展:
https://www.jianshu.com/p/a1344ca86e9b
https://www.shangmayuan.com/a/a400a824a7b6474f8a94e9d6.html
https://www.fxkjnj.com/?p=2246
https://www.cnblogs.com/guyeshanrenshiwoshifu/p/9188368.html

上一篇:报错:| cinder-volume | compute02@lvm | nova | enabled | down | 2021-02-15T08:11:32.000000 |


下一篇:Linux kernel 命令行参数一