Skip to content

Thresholds

Updated on 28 November 2026

A threshold is a limit on the value of a metric. A value beyond it is marked as a Warning or as an Error. Thresholds belong to the profile, so two profiles can judge the same value differently.

Four limits per metric

A metric can have up to four limits: a warning and an error Above, and a warning and an error Below.

  • A value is beyond an upper limit when it is greater than the limit, and beyond a lower limit when it is smaller. A value equal to the limit is within it.
  • A value beyond both the warning and the error limit is an error.
  • A value beyond no limit is fine. In the charts that zone is called OK.

Most metrics use one side only: the upper one when higher values are worse, the lower one when higher values are better.

Reference, custom, off

Each of the four limits is in one of three modes:

Mode The limit is
Reference The value the plugin recommends for the metric. Not every metric has one: the informative ones, with no good or bad direction, have none
Custom A value you set in your profile
Off None: the metric is not judged on that side and level

A blank profile has every limit in Reference, and a copy starts with the limits of its original. The built-in profiles always use the reference.

The interface says where a limit comes from: a limit of yours is followed by (your profile) in the tooltips, and by (profile) in the charts, against (reference).

Where thresholds show

  • In the tables, as the warning and error icons and in the tooltip of each cell.
  • In the tooltip of a column header, as the limits in effect.
  • In the Summary, which lists the elements beyond a limit.
  • In the initial order of the tables, worst first.
  • In the charts, as the zones and the lines of the limits.

The Total and Average rows are not judged.

Change the thresholds

Thresholds can be changed only in a profile of yours. To change those of a built-in profile, duplicate it first (“Metrics profiles”).

From the profiles dialog

Open Metrics Profiles..., select a metric in the tree and use the editor under its help. The metric must be enabled. Here you can reach every metric of the profile.

From the results

Select the table of a category and click Edit Thresholds... in the toolbar. The dialog Thresholds for Profile … lists the metrics of that table:

Column What it shows
Name, Abbreviation The metric
Minimum, Maximum The lowest and the highest value the metric has in these results
Thresholds The limits in effect, or — when there are none

Select a metric and change its limits in the editor under the table. Seeing the range of the real values next to the limits helps to choose them. When you accept, the profile is saved and the results apply the new limits at once, without calculating again.

The button is disabled, and its tooltip says why, in three cases:

Tooltip Why
Select a category tab to edit its thresholds The Summary is selected
Built-in profiles are read-only: copy the profile to change its thresholds The run was calculated with a built-in profile
The profile '…' of these results has been deleted The profile no longer exists

The editor

The editor is a grid: the columns are Warning and Error, the rows Above and Below. Each cell has the mode and, next to it, the value.

  • In Reference, the field shows the reference value, or — when the metric has none on that side.
  • In Off, the field is empty.
  • In Custom, you type the value. It starts from the reference value, so choosing Custom changes nothing until you edit the number.

Values

  • Type numbers as the plugin shows them: with a decimal point in English and a decimal comma in Spanish, without thousands separators.
  • For a metric shown as a percentage, the field has a % after it and takes the percentage: type 80 for 80%.
  • A count or a percentage cannot be negative. A percentage can be over 100.

A value that is not valid is outlined in red and the dialog does not let you save:

Message What to do
Enter a number The text is not a number
Enter a number of 0 or more The metric is a count
Enter a percentage of 0 or more The metric is a percentage
The custom threshold of '…' is not valid Another metric, named by its abbreviation, has a value that is not valid: go back to it
The custom threshold of '…' in the profile '…' is not valid The same, in another profile you were editing

Error before warning

The error applies before the warning appears when, on one side, the error limit is not further out than the warning limit: an error above 10 with a warning above 20, for example. It is a notice, and you can save. With those limits the warning would never show.

Choosing limits

The reference values are a starting point, not a rule. A limit is useful when the values beyond it deserve a look in your code: use Minimum and Maximum, and the Distribution tab of the “charts”, to see where your values are before moving a limit.

On how thresholds are chosen and what they are worth, see the reference at “metrics.stau.me”, in Spanish.