influxdb+grafana+jmeter系统指标监控视图
Grafana
是一个开源的度量分析与可视化套件。经常被用作基础设施的时间序列数据和应用程序分析的可视化
官方支持以下数据源:Graphite,InfluxDB,OpenTSDB,Prometheus,Elasticsearch,CloudWatch和KairosDB
InfluxDB
InfluxDB是一个由InfluxData开发的开源时序型数据。它由Go写成,着力于高性能地查询与存储时序型数据。InfluxDB被广泛应用于存储系统的监控数据,IoT行业的实时数据等场景。
注:以下基于centOs安装
1、influxdb安装
# 下载 wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.0.x86_64.rpm --no-check-certificate # 安装 rpm -ivh influxdb-1.7.0.x86_64.rpm
修改配置文件influxdb.conf
[meta] # Where the metadata/raft database is stored # 存放最终存储的数据,文件以.tsm dir = "/usr/local/influxdb/meta" [data] # The directory where the TSM storage engine stores TSM files. # 存放数据库的源数据wal dir = "/usr/local/influxdb/data" # The directory where the TSM storage engine stores WAL files. # 存放预写日志文件 wal-dir = "/var/lib/influxdb/wal" [[graphite]] # Determines whether the graphite endpoint is enabled. enabled = true database = "jmeter" # 数据库名称 retention-policy = "" bind-address = ":2003" # 端口 protocol = "tcp" consistency-level = "one" 修改HTTP端口信息 [http] # Determines whether HTTP endpoint is enabled. enabled = true # The bind address used by the HTTP service. bind-address = ":8086"
启动服务
indfluxDB的tcp端口:8088
# 启动端口 influxd & # 查看端口是否启动 netstat -anp|grep 8088