Free preview

Querying, Alerting, and Dashboards

Why this matters: collection is the plumbing; this is the product. A monitoring system nobody trusts — because it pages too often or shows nothing useful — is worse than none, because it consumes attention while providing false assurance.

Key takeaway

The querying service fetches data from the database to support visualization and alerting. It lets users view specific metrics — memory usage on a node — or check if values exceed defined limits.

One query service, two consumers

The two consumers want opposite things, which is worth noticing:

Alert managerDashboard
ReadsContinuously, automaticallyOn demand, by a human
Query shapeNarrow — one rule, recent windowBroad — many series, long window
Latency needLow — detection time is MTTRTolerant — a human is waiting, not a pager
OutputA notificationA picture
Failure modeToo many alerts, or noneToo much detail to read

Alert manager

The alert manager monitors metrics against the rules defined in the rules database. If a rule is violated, it triggers notifications via channels like email or Slack.

That is the mechanism. The hard part is deciding what to alert on.

Dashboard

Dashboards visualize collected metrics, providing a high-level view of system health — for example, request counts over the current week.

The distinction from alerting is worth being explicit about:

Alerts    -> "something is wrong, come look"      (push to a human)
Dashboards -> "here is what is happening"         (pull by a human)

Alerts answer whether to investigate. Dashboards answer what is happening once you do. A design that conflates them produces either a wall of unread graphs or a pager that never stops.

Key takeaway

One querying service, two consumers with opposite requirements. Alert on user-visible symptoms with a duration clause; put causes on dashboards for diagnosis. A pager that cries wolf is worse than no pager.

Interview signal by level

LevelWhat a strong answer sounds like
L4"We'd send an alert when a threshold is crossed and show graphs on a dashboard."
L5Separates the two: "alerts for things needing action, dashboards for investigating — and rules need a duration so we don't page on a momentary spike."
Staff+Names alert fatigue and symptom-based alerting: "page on user-visible symptoms, not causes — CPU at 90% may be fine, a rising error rate never is. Every page must be actionable, or the team learns to ignore the pager and the system becomes worse than nothing."

Next: what breaks when one monitoring server isn't enough.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue