configuring which percentile bands you're interested in?

Hello!

Usually when I open a gatling report the first thing I do is turn off display of most of the percentiles, usually leaving just 50 and 99th percentile active. Additionally, I’m finding it hard to read the graph because the colour bands are bleeding into each other and want some more contrast. Is that possible to do from the gatling.conf file? If not already, would there be interest in a patch to enable this? I may be able to spend a little time trying to make it happen. (I’d welcome hints as I have no idea where to start.)

Stig

Hello Stig,

Currently, neither the computed percentiles nor the color set can be configured.

https://github.com/gatling/gatling/blob/master/gatling-charts/src/main/scala/io/gatling/charts/result/reader/buffers/PercentilesBuffers.scala#L42

Color set:
https://github.com/gatling/gatling/blob/master/gatling-charts/src/main/scala/io/gatling/charts/report/ReportGenerator.scala#L23

https://github.com/gatling/gatling/blob/master/gatling-charts/src/main/scala/io/gatling/charts/util/Colors.scala

Regarding configuring the percentiles, I guess this can be done. Just beware that 2.2 is going under major internal refactoring and that configuration has to be implicitly passed all the way down (we dropped GatlingConfiguration.configuration mutable placeholder for testability reasons).

Regarding the color set, feel free to suggest a better one with more contrast.

Cheers,

@slandelle could you please share how we can configure the percentiles in the report? In the documentation I could see “these percentiles can be configured in the gatling.conf file.” but couldn’t find the steps.

Also, are the graphs also configurable?

Hello,

You need to modify this part of the Gatling.conf for the percentiles https://github.com/gatling/gatling/blob/main/gatling-core/src/main/resources/gatling-defaults.conf#L66

hey @Samir, yes you’re right, I want to remove the not required percentiles from the report.

That’s not possible.

@slandelle what is the meaning of this statement in documentation?

You can select the 4 ones you want. You must select 4.

@slandelle Thanks for the clarification!