FALVARIX
FALVARIX
devops --real --no-hype

Grafana Dashboards: Business and Infrastructure

Grafana Dashboards: Business and Infrastructure

Grafana Dashboards: Business and Infrastructure

It’s 3:12 a.m. and the on-call team sees every graph in the green. CPU steady, memory roomy, zero pod restarts. Yet the head of sales just pinged Slack: “No orders are coming in today.” The infrastructure was healthy, but the business was broken, and no panel showed it.

That gap between what engineers measure and what the business cares about is exactly what well-designed Grafana dashboards solve. Grafana isn’t just a tool for drawing pretty lines: it’s the layer where infrastructure and business metrics live side by side and explain each other. In this guide you’ll learn how to build panels for two very different audiences—executives and technical teams—without duplicating work or losing rigor.

Why you need two kinds of dashboards (not just one)

The most common mistake is building a single “mega-dashboard” that tries to please everyone. It ends up unreadable for leadership and not very useful for engineering. Each audience asks different questions:

  • Leadership and product: Are we selling what we expected? Is the service delivering what we promised customers? How much does it cost to run?
  • Engineering and SRE: Which component is failing? Since when? What changed right before?

The answer is to separate by purpose and link across levels. The executive dashboard answers “are we OK?” in five seconds. The technical one answers “why aren’t we?” in five minutes. Between the two, drill-down links let you go from symptom to cause in one click.

The foundation: data sources for business and infrastructure metrics

Grafana stands out because it doesn’t require your data to live in one place. According to the official Grafana documentation, it supports dozens of data sources, and a typical architecture combines three:

  1. Prometheus for infrastructure and application metrics (time series with controlled high cardinality). It’s the de facto standard in Kubernetes and Docker environments; you can learn more at prometheus.io.
  2. A relational database (PostgreSQL or MySQL) for business metrics: orders, sign-ups, revenue, support tickets.
  3. A log or trace store (Loki, Elasticsearch, Tempo) for the context that explains the spikes.

The trick to unifying everything is the time axis. If every panel shares the same range and time zone, correlating a drop in orders with a spike in latency goes from an investigation to an immediate observation.

Exposing business metrics as technical metrics

Sometimes it’s cleaner to instrument the application so it exposes business counters directly to Prometheus, alongside technical metrics:

from prometheus_client import Counter

pedidos_total = Counter(
    "pedidos_creados_total",
    "Pedidos creados con éxito",
    ["canal", "pais"]
)

pedidos_total.labels(canal="web", pais="ES").inc()

With this, a single PromQL query gives you the order rate per minute:

sum by (canal) (rate(pedidos_creados_total[5m])) * 60

When business data already lives in a SQL database, Grafana’s native data source lets you query it directly, using the $__timeFilter macro to respect the dashboard’s time range.

Executive dashboards: fewer panels, more decisions

A dashboard for leadership isn’t a simplified version of the technical one. It follows different logic. These are the principles that work best in practice:

Six to eight panels max, with visual hierarchy

At the top, the key indicators in Stat panels: revenue for the day, orders per hour, service availability, and the error rate customers actually experience. Below, one or two time series that give trend context. Nothing more.

Translate infrastructure into business language

A “p99 of 840 ms” means nothing to an executive. But “97.8% of payments complete in under 2 seconds” does. Define your SLOs (service level objectives) and show them as compliance percentage and remaining error budget. That’s the bridge metric between both worlds.

# Disponibilidad en los últimos 30 días
1 - (
  sum(increase(http_requests_total{status=~"5.."}[30d]))
  /
  sum(increase(http_requests_total[30d]))
)

Use thresholds and colors with purpose

Green, amber, and red only work if the thresholds are agreed with the business. A permanent red creates visual fatigue and ends up ignored. Set thresholds based on your SLOs, not on the team’s gut feeling.

Wall screens and kiosk mode

For monitors in offices, Grafana offers kiosk mode and dashboard playlists. A rotation of three panels every 30 seconds keeps everyone informed without anyone opening a browser.

Technical dashboards: from alert to root cause

The technical dashboard is a diagnostic tool. Its structure should follow a recognizable method so any on-call engineer can get oriented without knowing the service.

Apply RED for services and USE for resources

  • RED (Rate, Errors, Duration) for services: requests per second, error percentage, and latency by percentiles.
  • USE (Utilization, Saturation, Errors) for resources: CPU, disk, network, and memory.

One row per service with the three RED panels, followed by a resources section with USE, covers 80% of everyday diagnostics. If you balance traffic with Nginx, upstream metrics fit naturally into this structure; we cover it in our guide to Nginx as a load balancer with caching and rate limiting.

Variables for one dashboard, many environments

Template variables save you from cloning panels. Define $entorno, $servicio, and $instancia and reuse the same query:

sum by (instance) (
  rate(http_requests_total{env="$entorno", service="$servicio"}[5m])
)

Keeping one dashboard per service type—rather than one per service—dramatically reduces maintenance as the platform grows.

Annotations: the context that explains everything

Many incidents start with a deployment. Overlaying annotations for releases, config changes, or maintenance windows on your graphs turns “something broke” into “it broke two minutes after release 2.14.” You can feed them from your CI/CD pipeline using Grafana’s HTTP API.

Correlation: the real value of uniting business and infrastructure

What justifies all this work happens when both worlds appear on the same screen. A “orders per minute” panel next to “5xx errors from the payments service” and “database connection pool saturation” tells a complete story.

A very effective technique is the business context row at the top of the technical dashboard: two or three impact metrics (orders, active users, revenue) pinned up top. The engineer handling an alert immediately sees whether the degradation affects real customers or just a secondary component, and can prioritize accordingly.

In the opposite direction, the executive dashboard should include a direct link to the technical view filtered by the affected service. That way the conversation between leadership and engineering starts from the same data.

Performance: don’t let the dashboard become the problem

A slow panel is a panel nobody checks. Some golden rules:

  • Limit the default range to 6 or 24 hours; reserve 30-day queries for where they add value.
  • Use recording rules in Prometheus to precompute expensive aggregations, like percentiles or 30-day SLOs, and query them as ready-made series.
  • Avoid high cardinality: labels like user_id or request_id degrade Prometheus and Grafana equally.
  • Tune the refresh interval: a 5-second refresh across 40 panels multiplies load without adding useful information.
  • Use $__rate_interval instead of fixed windows to get consistent results when zooming.

Dashboards as code: versioning and reproducibility

Dashboards built by hand in the UI degrade: someone edits a panel, someone else deletes it, nobody knows which version is the good one. The alternative is to treat them like any other infrastructure artifact.

Grafana supports provisioning via YAML and JSON files loaded at startup:

apiVersion: 1
providers:
  - name: "dashboards-equipo"
    folder: "Plataforma"
    type: file
    disableDeletion: true
    options:
      path: /var/lib/grafana/dashboards

Keep those JSON files in Git, review them through pull requests, and deploy them automatically. If you already work this declarative way, it dovetails perfectly with what we cover in GitOps in production with ArgoCD and Kubernetes: panels sync as just another resource and manual changes revert themselves.

Security and access: each audience sees what it should

Business data is sensitive. Organize dashboards into folders with per-team permissions and use differentiated roles: Viewer for leadership, Editor for engineering, Admin only for the platform team. To avoid managing local users, integrate Grafana with an identity provider via OIDC; in Keycloak SSO for microservices we explain how to set up that centralized authentication foundation.

It’s also worth reviewing which data sources are exposed. A SQL query from Grafana should use a read-only user, limited to the necessary views—never credentials with write access.

From visualization to action: connect the alerts

A dashboard only informs whoever is looking at it. To make the system work when nobody’s watching, define alerts on the same queries that feed your panels and send them to the channels where the team already lives. You’ll find the full procedure in critical Prometheus and Grafana alerts to Slack and Telegram. A good practice is to alert on symptoms (error rate, latency, drop in orders) and leave causes (CPU, disk) for the diagnostic dashboard.

Common mistakes to avoid

  • Panels without titles or units: a number without context raises questions, not answers.
  • Too many metrics “just in case”: if a panel has never helped anyone decide anything, delete it.
  • Misleading axis scales: truncating the Y-axis exaggerates trivial variations.
  • No documentation: use text panels to explain what each section measures and who to notify.
  • Orphan dashboards: assign an owner to each one and review quarterly which are still in use.

Checklist for publishing your first dashboard

  1. Define the audience and the question it must answer.
  2. Choose a maximum of 8 panels for executives; structure RED/USE for technical users.
  3. Translate technical metrics into understandable SLOs.
  4. Add variables, annotations, and drill-down links.
  5. Precompute heavy queries with recording rules.
  6. Version the JSON in Git and provision automatically.
  7. Apply per-folder permissions and centralized authentication.
  8. Connect alerts on symptoms and review the dashboard every quarter.

Conclusion: one shared language for the whole organization

The best Grafana dashboards aren’t the ones that show the most data, but the ones that get leadership and engineering talking about the same problem with the same numbers. Separate by audience, translate infrastructure into SLOs, correlate business and systems on the time axis, and treat panels as code. With that discipline, the next time orders drop at 3:12 a.m., your team will know before the head of sales—and have the likely cause right in front of them.

Keep reading