如何使用后端侦听器将 jmeter 结果推送到 influxdb 多个数据库?

How to push jmeter results to influx multiple databases using back end listeners?

我想把JMeter结果数据推送到influx。我能够将结果推送到一个很好的数据库。但是现在我想将第一个采样器结果的结果数据推送到一个数据库,将第二个采样器结果推送到另一个数据库。

为此,我尝试为每个采样器使用多个后端侦听器。但是所有采样器结果数据将被推送到在第一个后端侦听器中配置的同一个数据库。

我们可以使用多个后端侦听器进行多个配置吗?或者如果我们不能那么为什么? 我是usinginfluxdbBackend.listenerClient

根据JMeter Documentation

By default JMeter sends metrics for all samplers accumulated under the samplerName "all". If the Backend Listener samplersList is configured, then JMeter also sends the metrics for the matching sample names unless summaryOnly=true

因此,如果您添加 2 个 Backend Listener 实例并将它们配置为:

  • summaryOnly: false
  • samplersList:第一个是 Sampler1,第二个是 Sampler2
  • 不同graphineHostand/orgraphitePort