Where to start First steps track · 15 stages
Linux Labs

Observability: metrics, alerts, logs

Quiz: alerts

Question 1 of 9
Leave the quiz

An alert rule from the file to firing: rule_files, an expression with a threshold, for, promtool check rules and rereading the configuration; Alertmanager: group_by and the timers, an amtool silence, the routing tree. The questions follow the lessons “An alert rule: threshold and duration” and “Alertmanager: to whom and how many times”.

9 questions · threshold 70%

Read the output

The /etc/prometheus/rules/disk.yml file with the rule is in place and passes promtool check rules. What makes Prometheus check it?

$ grep -A1 rule_files /etc/prometheus/prometheus.yml
rule_files:
  # - "first.rules"
$ curl -s localhost:9090/api/v1/rules | jq .data
{
  "groups": []
}
A–D or ↵ Sign in to answer
Loading…