【问题标题】:Sending JMeter CSV results to InfluxDB using Logparser Input Plugin使用 Logparser Input Plugin 将 JMeter CSV 结果发送到 InfluxDB
【发布时间】:2018-07-08 20:08:56
【问题描述】:

为了让JMeter实时结果进入

我正在尝试解析具有以下列的 JMeter CSV 结果文件:

timeStamp,elapsed,label,responseCode,responseMessage,threadName,success,failureMessage,bytes,grpThreads,allThreads,URL,Latency,IdleTime,myCustomVariableMetric

我正在使用这个电报插件:

但我无法解析这些数据:

1526659742584,60151,XXXX-us-west-2b-300000,200,"Xxxxxxx",TG-172.31.17.55 1-7,true,,4036727,341,341,http://www.example.com,1047,0,151

我不知道什么是模式:

  • 1526659742584 => 这是 Java 中的时间戳
  • XXXX-us-west-2b-300000 => WORD 由于“-”而无法工作
  • TG-172.31.17.55 1-7 => 同上,也是由于'.'
  • http://www.example.com

我试过这个:

【问题讨论】:

    标签: jmeter influxdb grok telegraf


    【解决方案1】:

    我找到了解决方案,但不确定它是否是最有效的:

    %{INT:timestamp},%{INT:elapsed},%{USERNAME:label},%{WORD:rc},"%{GREEDYDATA:rMsg}",%{GREEDYDATA:threadName},%{WORD :success},%{GREEDYDATA:fMsg},%{INT:bytes},%{INT:grpThreads},%{INT:allThreads},%{GREEDYDATA:url},%{INT:Latency},%{INT:空闲时间},%{INT:myCustomVariableMetric}

    如果有更好的请评论或回答。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多