这个特性提供了:

  • 生活的结果
  • 漂亮的图表为指标
  • 比较2个或更多的负载测试的能力
  • 监控数据存储在同一后端只要JMeter结果
  • 一个€Š

在本文档中,我们将配置设置图和historize 2中的数据不同的后端:

  • InfluxDB
  • 石墨

 

指标暴露

线程/虚拟用户指标

线程指标如下:

< rootMetricsPrefix > test.minAT
分钟活动线程
< rootMetricsPrefix > test.maxAT
马克斯活动线程
< rootMetricsPrefix > test.meanAT
活动线程的意思
< rootMetricsPrefix > test.startedT
启动线程
< rootMetricsPrefix > test.endedT
完成线程

响应时间指标

响应相关指标如下:

< rootMetricsPrefix > < samplerName > .ok.count
许多成功的响应采样器的名字
< rootMetricsPrefix > < samplerName > .h.count
服务器每秒钟,这个指标堆积样本结果和子结果(如果使用事务控制器,应该无节制的“生成父取样器”)
< rootMetricsPrefix > < samplerName > .ok.min
最小响应时间成功响应采样器的名字
< rootMetricsPrefix > < samplerName > .ok.max
最大响应时间成功响应采样器的名字
< rootMetricsPrefix > < samplerName > .ok.pct < percentileValue >
百分比计算成功响应采样器的名字。 将有一个为每个计算值指标。
< rootMetricsPrefix > < samplerName > .ko.count
失败的反应数量取样器的名字
< rootMetricsPrefix > < samplerName > .ko.min
最小响应时间没有响应的采样器的名字
< rootMetricsPrefix > < samplerName > .ko.max
最大响应时间没有响应的采样器的名字
< rootMetricsPrefix > < samplerName > .ko.pct < percentileValue >
百分比计算失败的响应的采样器的名字。 将有一个为每个计算值指标。
< rootMetricsPrefix > < samplerName > .a.count
取样器的反应数量名称(好吧。 计数和ko.count)
< rootMetricsPrefix > < samplerName > .a.min
最小响应时间响应采样器的名字(最低的好。 计数和ko.count)
< rootMetricsPrefix > < samplerName > .a.max
最大响应时间取样器名称(Max的反应好。 计数和ko.count)
< rootMetricsPrefix > < samplerName > .a.pct < percentileValue >
百分比计算响应的采样器的名字。 将有一个为每个计算值指标。 (好和失败样本计算总数)

是“90;95;95”, 即3百分位数90%、95%和99%。

summaryOnly = true

 JMeter配置

使用GraphiteBackendListenerClient。

jmeter 实时搜索结果石墨的配置

 InfluxDB

。 在这种情况下,我们将使用Grafana。

 InfluxDB石墨侦听器配置

”并设置:

# Configure the graphite api
[input_plugins.graphite]
enabled = true
address = "0.0.0.0" # If not set, is actually set to bind-address.
port = 2003
database = "jmeter"  # store graphite data in this database
# udp_enabled = true # enable udp interface on the same port as the tcp interface
    

[[石墨]]

InfluxDB数据库配置

连接到InfluxDB管理控制台并创建两个数据库:

  • grafana:grafana用来存储我们将创建的仪表板
  • config.toml

 

 Grafana配置

这样的元素,和编辑: 

datasources: {
  influxdb: {
    type: 'influxdb',
    url: "http://localhost:8086/db/jmeter",
    username: 'root',
    password: 'root',
  },
  grafana: {
    type: 'influxdb',
    url: "http://localhost:8086/db/grafana",
    username: 'root',
    password: 'root',
    grafanaDB: true
  },
},
    
 
用户为简单起见 最好是用一个特殊的用户限制的权利。
 
Grafana仪表板

相关文章:

  • 2021-12-27
  • 2021-12-24
  • 2021-05-12
  • 2022-03-08
  • 2021-06-07
  • 2021-08-17
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-09-28
  • 2021-11-09
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案