Skip to content

Commit

Permalink
doc: correct traceQL metrics documentation (#4252)
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Nylander <[email protected]>
  • Loading branch information
javiermolinar and knylander-grafana authored Nov 4, 2024
1 parent d43252e commit fc05aec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sources/tempo/traceql/metrics-queries/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ These functions can be added as an operator at the end of any TraceQL query.
: Counts the number of matching spans per time interval (refer to the [`step` API parameter](https://grafana.com/docs/tempo/<TEMPO_VERSION>/api_docs/#traceql-metrics)).

`min_over_time`
: Returns the minimum value of matching spans values per time interval (see the `step` API parameter)
: Returns the minimum value for the specified attribute across all matching spans per time interval (refer to the [`step` API parameter](https://grafana.com/docs/tempo/<TEMPO_VERSION>/api_docs/#traceql-metrics)).

`max_over_time`
: Returns the minimum value for the specified attribute across all matching spans per time interval (refer to the [`step` API parameter](https://grafana.com/docs/tempo/<TEMPO_VERSION>/api_docs/#traceql-metrics)).
: Returns the maximum value for the specified attribute across all matching spans per time interval (refer to the [`step` API parameter](https://grafana.com/docs/tempo/<TEMPO_VERSION>/api_docs/#traceql-metrics)).

`avg_over_time`
: Returns the average value for the specified attribute across all matching spans per time interval (refer to the [`step` API parameter](https://grafana.com/docs/tempo/<TEMPO_VERSION>/api_docs/#traceql-metrics)).
Expand Down Expand Up @@ -104,7 +104,7 @@ For example, you could choose to calculate the minimum duration of a group of sp
The time interval that the minimum is computed over is set by the `step` parameter.

The `max_over_time()` let you aggregate numerical values by computing the maximum value of them, such as the all important span duration.
The time interval that the maximum is computer over is set by the `step` parameter.
The time interval that the maximum is computed over is set by the `step` parameter.

The `avg_over_time()` function lets you aggregate numerical values by computing the maximum value of them, such as the all important span duration.
The time interval that the maximum is computer over is set by the `step` parameter.
Expand Down

0 comments on commit fc05aec

Please sign in to comment.