Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Mar 24, 2022
1 parent 7adf2b2 commit 5d063a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/alerting.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Alarm can be configured with a severity. Each one with different effects. At the

### Using the elapsed variable

There's a special go-template variable that can be used within the prometheus expression, the variable _elapased_ is set to the value of the job duration (or the range given to check-alerts). This variable is specially useful in expressions using (aggregations over time functions)[https://prometheus.io/docs/prometheus/latest/querying/functions/#aggregation_over_time]
There's a special go-template variable that can be used within the prometheus expression, the variable **elapased** is set to the value of the job duration (or the range given to check-alerts). This variable is specially useful in expressions using [aggregations over time functions](https://prometheus.io/docs/prometheus/latest/querying/functions/#aggregation_over_time).
i.e:

```yaml
- expr: avg_over_time(histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket[2m]))[{{ .elapsed }}m]) > 0.01
- expr: avg_over_time(histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket[2m]))[{{ .elapsed }}:]) > 0.01
description: avg. etcd fsync latency on {{$labels.pod}} higher than 10ms {{$value}}
severity: error
```
Expand Down

0 comments on commit 5d063a7

Please sign in to comment.