首页 > 解决方案 > 编辑“gatling.conf”时无法更改加特林指标范围

问题描述

我想改变加特林输出报告中的图表范围,所以我在gatling.conf这里改变了:

  charting {
    #noReports = false       # When set to true, don't generate HTML reports
    maxPlotPerSeries = 1000 # Number of points per graph in Gatling reports
    #useGroupDurationMetric = false  # Switch group timings from cumulated response time to group duration.
    indicators {
      lowerBound = 500      # Lower bound for the requests' response time to track in the reports and the console summary
      higherBound = 1500    # Higher bound for the requests' response time to track in the reports and the console summary
      percentile1 = 50      # Value for the 1st percentile to track in the reports, the console summary and Graphite
      percentile2 = 75      # Value for the 2nd percentile to track in the reports, the console summary and Graphite
      percentile3 = 95      # Value for the 3rd percentile to track in the reports, the console summary and Graphite
      percentile4 = 99      # Value for the 4th percentile to track in the reports, the console summary and Graphite
    }
  }

但是我的场景报告输出没有改变: 在此处输入图像描述

我应该在哪里更改我的配置?

标签: gatling

解决方案


为我工作(用 Gatling 3.4.1 测试)。我怀疑您缺少gatling根节点。

gatling {
  charting {
    indicators {
      lowerBound = 500
      higherBound = 1500
    }
  }
}

具有自定义边界的加特林指标


推荐阅读