Why FDEs should build one Grafana dashboard, not 48 copies
A single site variable makes site 7's panels measure what site 1's do when a client asks about slowness, and alerts should fire only when users feel it.
In brief
- One dashboard with a site variable replaces dozens of copies and avoids uncontrolled dashboard sprawl
- RED (Rate, Errors, Duration) shows what users are experiencing, while USE examines CPU, memory and network
- Alert on symptoms, label by site and route with notification policies so people are paged only when it matters
Twelve sites for one client, four dashboards per site (service, infrastructure, queues and overview): copied by hand, that comes to 48 dashboards. Take a team in that position. Every time someone edits a query, a few of the copies will almost certainly be missed.
This is when FDEs turn to Grafana. Its charts look good, but that matters less than the two things it gives a multi-site deployment: one consistent view of health across every site, and an alerting system that reaches the right person at the right time.
One dashboard, twelve sites
Grafana’s documentation is direct about the approach: build one dashboard and use variables to change what you are looking at. A variable is defined once and reused throughout the dashboard, so a single site selector in the top corner is enough to switch every panel.
Grafana’s own best-practice guide recommends templates and variables to reuse dashboards and keep them consistent. The same guide warns about dashboard sprawl, the uncontrolled growth in the number of dashboards.
For an FDE, sprawl is more than clutter. When the client asks why site 7 is slow, you need to be certain that the panels for site 7 measure exactly the same thing as the panels for site 1.
A minimal example: say the service exports a Prometheus metric called http_requests_total with site and status labels. The site variable takes its list of values from that label:
label_values(http_requests_total, site)
The error-rate panel then uses the variable in place of a hard-coded site name:
sum(rate(http_requests_total{site="$site", status=~"5.."}[5m]))
/
sum(rate(http_requests_total{site="$site"}[5m]))
In this example, 48 copies shrink to four dashboards, each with a site variable. Fix one query and all twelve sites are fixed. The first job at the client is to agree on the site label name in the metrics from the day of deployment, because a variable only works when the data is labeled consistently.
Which panels go first?
Grafana suggests RED dashboards for the service layer: Rate, Errors, Duration. The method was set out by Tom Wilkie of Grafana Labs in a 2018 post, with Rate meaning requests per second. Grafana’s documentation calls a well-designed RED dashboard a proxy for user experience.
A client site, though, also has real servers underneath. The USE method, according to Grafana, works best for hardware resources such as CPU, memory and network devices. A good site dashboard therefore usually has two layers: RED at the top to show what users are experiencing, USE below to find out why.
For a checklist, Google’s SRE book lists four golden signals: latency, traffic, errors and saturation. The first three map onto RED; the last is close to USE. The first row of panels for each site should answer all four.
Alerting: symptoms, not causes
In Grafana Alerting, an alert rule is a set of conditions that decides when an alert fires. The hard part is choosing the conditions rather than the syntax. Prometheus’s guidance recommends alerting on symptoms rather than causes to cut noise.
Go back to site 7. A rule for “CPU above 90%” is a cause alert: CPU can be high while users are fine. A rule for “the site’s error rate stays above a threshold for several minutes” is a symptom alert: it fires only when users are genuinely affected.
Written as an alert rule query, it uses labels for grouping instead of a dashboard variable, so one rule watches every site at once. The 5% threshold below is only an example; settle the number with the client:
sum by (customer, site) (rate(http_requests_total{status=~"5.."}[5m]))
/
sum by (customer, site) (rate(http_requests_total[5m]))
> 0.05
Keep CPU on the dashboard for diagnosis, and don’t let it wake anyone at midnight. Google’s SRE book observes that waking a person up takes a great deal of their valuable time. For an FDE looking after several clients, one meaningless alert a night is the fastest way to get the whole team ignoring the real ones.
Routing by customer label
Once an alert is correct, it still has to reach the right person. Grafana describes notification policies as the backbone of a complete alerting system: policies route and group alerts based on their labels.
The rule above already carries customer and site labels, so alerts for client A can go to the channel of the team that looks after client A. When a client has an incident across the board, twelve simultaneous alerts can be grouped into a single notification.
The order of work at a client is therefore clear: agree on labels, build dashboards with variables, write a few symptom rules, and only then set up routing policies. Reverse the order and you will be rewriting rules whenever the labels change.
Common mistakes at client sites
The most common mistake is copying a dashboard for each site “to save time,” and a few months later nobody knows which copy is the right one. That is the sprawl Grafana warns about, and the cure is to go back to a single dashboard with a variable.
The second is careless labeling. A site called hcm-01 in one place and HCM1 in another becomes two sites in the selector, and rules grouped by site split in two as well. The third is letting every alert page on-call, CPU and disk warnings included, instead of paging only when a symptom appears.
Remember the tool’s limits too: Grafana can only display and alert on what the system already measures. If the service does not yet export metrics for rate, errors and latency, no dashboard will save you.
What to learn first, and what to put on your CV
If you are preparing for an FDE role, learn in this order: RED and USE first, then dashboard variables, then alert rules and notification policies. In interviews, ask directly who is on call for client sites and how alerts are routed; the answer tells you how much weight this skill carries in the job.
On your CV, don’t write “knows Grafana.” Write how many dashboards you consolidated into one with variables, or how you reduced on-call pages by switching to symptom-based alerts.
Exercise: one site split in two
Suppose the site selector shows both hcm-01 and HCM1, and the error-rate rule fires two separate alerts for the same place. The first step is to run count by (site) (http_requests_total) to see every label value that exists.
Step two: find where the label is set, usually the configuration of the exporter or metrics agent at that site, and change it to a single name that follows the agreed convention. Fixing it at the source beats patching each query, because every dashboard and rule reads the same label.
Step three: wait for the old data to age out of the query’s time range, reopen the selector and check that only hcm-01 remains, then fire a test alert to make sure the notification policy still delivers it to the right channel. Do this once and you will not leave site labels unmanaged on your next deployment.
Was this article useful?
Thanks for the feedback!
8 sources
- Grafana Alerting | Grafana documentation
- Variables | Grafana documentation
- Grafana dashboard best practices | Grafana documentation
- Alert rules | Grafana documentation
- Notifications | Grafana documentation
- The RED Method: How to Instrument Your Services | Grafana Labs · 2018-08-03
- Monitoring Distributed Systems (Google SRE book)
- Alerting | Prometheus