Skip to content

Commit

Permalink
[Style] Update timeseries to time series.
Browse files Browse the repository at this point in the history
  • Loading branch information
JStickler committed Nov 2, 2023
1 parent 4d61d0a commit 15b3b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sources/query/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Loki supports functions to operate on data.

### label_replace()

For each timeseries in `v`,
For each time series in `v`,

```
label_replace(v instant-vector,
Expand All @@ -300,12 +300,12 @@ label_replace(v instant-vector,
regex string)
```
matches the regular expression `regex` against the label `src_label`.
If it matches, then the timeseries is returned with the label `dst_label` replaced by the expansion of `replacement`.
If it matches, then the time series is returned with the label `dst_label` replaced by the expansion of `replacement`.

`$1` is replaced with the first matching subgroup,
`$2` with the second etc.
If the regular expression doesn't match,
then the timeseries is returned unchanged.
then the time series is returned unchanged.

This example will return a vector with each time series having a `foo` label with the value `a` added to it:

Expand Down

0 comments on commit 15b3b51

Please sign in to comment.