Nov 24, 2026 / 05:22 PM UTC

    Grafana Dashboard Best Practices: 10 Practical Fixes

    Make Grafana dashboards clearer with practical fixes for PromQL, rate intervals, variables, latency, query performance and readable panels.

    These Grafana dashboard best practices focus on readable panels, sensible Prometheus queries and a repeatable way to investigate slow dashboards. The examples use a fictional checkout service. Replace the metric names and labels with those your application actually exports.

    New to the stack? Start with our Grafana, Prometheus and Docker setup guide. This article covers what to improve after the first dashboard works.

    1. Give the dashboard one clear job

    Write its purpose in one sentence before adding panels. For example: “Help the on-call engineer check whether checkout requests are failing.” That gives you a reason to include request volume, server errors and latency. It also gives you a reason to leave unrelated business reports on another dashboard.

    Put the overview first, supporting trends next, and detailed investigation last. This follows Grafana’s guidance to make dashboards answer a question and reduce the effort needed to understand the data. Source: Grafana dashboard best practices.

    2. Show scope, time and units explicitly

    A value of 500 means very little without a unit. Is it milliseconds, requests or bytes? Use panel titles such as “Checkout p95 latency” and set the appropriate unit in the panel’s standard options. Keep seconds and milliseconds consistent across related panels.

    Keep the selected environment, service and time range easy to see. If you show an error percentage, explain whether it counts server errors, client errors or both. Changing a display unit does not change the underlying measurement. Source: Grafana standard options.

    3. Filter before asking for everything

    A query that fetches every application and every environment may return much more data than the panel needs. Start with a specific job and environment. This request-rate example deliberately selects only production checkout traffic:

    sum(
      rate(http_requests_total{
        job="checkout",
        environment="production"
      }[$__rate_interval])
    )

    The result is requests per second. Use a time-series panel when the change over time matters. Use a stat panel when you need a current summary, and make its reduction method clear. Filtering may reduce the data processed, but measure the result rather than assuming a fixed speed improvement. Source: Grafana query-performance guidance.

    4. Apply rate before aggregation

    A request counter keeps increasing and can reset when its process restarts. A chart of the raw counter is not a chart of traffic speed. Apply rate() to each counter series first, then add the rates together. Prometheus specifically recommends this order so counter resets can be handled before aggregation.

    In Grafana Prometheus queries, $__rate_interval provides a rate window based on the interval and scrape settings. It is a Grafana variable, not valid PromQL on its own. If you copy the query into Prometheus directly, replace it with a duration such as [5m] and choose a window appropriate for your scrape interval. Source: Prometheus rate(); Grafana interval variables.

    5. Explain the numerator and denominator

    For the checkout example, define the server-error rate as 5xx responses divided by all responses, multiplied by 100:

    PromQL example: server errors as a percentage of checkout requests.

    100 *
    sum(rate(http_requests_total{
      job="checkout", environment="production", status=~"5.."
    }[$__rate_interval]))
    /
    sum(rate(http_requests_total{
      job="checkout", environment="production"
    }[$__rate_interval]))

    This example assumes status is a three-digit HTTP status label. Other exporters may use different metric or label names. No traffic, missing series and zero errors are different states. Do not turn every missing result into a reassuring zero. For alerting, also consider a minimum traffic condition so one failed request is not treated like a major outage.

    6. Use latency percentiles carefully

    An average can hide a slow group of requests. A p95 panel estimates the duration at or below which 95% of observations fall. For a classic Prometheus histogram, keep the le bucket label while aggregating bucket rates:

    histogram_quantile(
      0.95,
      sum by (le) (
        rate(http_request_duration_seconds_bucket{
          job="checkout", environment="production"
        }[$__rate_interval])
      )
    )

    The result is in seconds because the metric records seconds. A value of 0.5 is 500 milliseconds. This expression assumes compatible classic histogram buckets across the series being combined. Native histograms use a different expression, and bucket boundaries affect the estimate. Never average several p95 values to calculate an overall p95. Source: Prometheus histograms and summaries.

    7. Reuse dashboards with a few meaningful variables

    One reusable service dashboard is easier to maintain than a separate copy for every server. Add variables for useful choices such as environment or instance. Test one selection, multiple selections and the All option.

    For a Grafana multi-value job variable, use a regex matcher such as job=~"$job" rather than an exact-match job="$job". Keep the default selection narrow enough to be useful. A dropdown that silently selects every environment can make an otherwise focused query expensive. Source: Grafana Prometheus template variables.

    8. Match refresh and resolution to the decision

    A dashboard used during an incident has different needs from a weekly capacity review. Choose an auto-refresh interval that matches the decision and the collection frequency. Refreshing more often than samples arrive can repeat work without showing new information.

    For long time ranges, review query step, maximum data points and the resolution a reader can actually use. For repeated expensive expressions, consider recording rules after measuring the cost. Recording rules precompute results; they also require ownership and maintenance. They are not a reason to hide an incorrect query. Source: Prometheus recording rules; Grafana query options.

    9. Inspect slow panels before changing them

    1. Reproduce the problem with a fixed time range and the same variable selections.
    2. Open the panel’s inspect view or query inspector. Menu names can vary by Grafana version.
    3. Review the request, duration, returned data and any error.
    4. Change one factor, such as a label filter or the time range.
    5. Repeat under comparable conditions and record what changed.

    This separates an expensive data-source query from a rendering or dashboard-layout problem. Do not claim a dashboard became “ten times faster” without comparable measurements. Source: Grafana panel inspector.

    10. Leave context for the next person

    Give important panels a short description: what the metric means, the unit, why a threshold matters and where to investigate next. Add deployment or incident annotations when they help explain a change. Use restrained colors, readable labels and text alongside status colors.

    Check the dashboard at a narrow browser width, with an empty result and with a longer time range. A good overview should remain understandable when a colleague opens it on a smaller screen. Review permissions before sharing a dashboard; useful monitoring should not expose secrets or private customer data.

    A small, reproducible example

    The three expressions above were checked with Prometheus promtool v3.7.3 using synthetic counters sampled every minute. With a five-minute rate window, they returned 100 requests/second, a 2% server-error rate and a p95 estimate of 0.5 seconds.

    The fixture adds 5,880 successful requests and 120 failed requests per minute. Its classic histogram bucket increments are 3,000 at le=0.1, 5,700 at le=0.5, and 6,000 at le=1 and +Inf. The Grafana rate variable was replaced with [5m] for testing. These are synthetic test results, not Monkeys production measurements or a performance benchmark.

    Synthetic checkout traffic: HTTP response share

    manual

    Before you share the dashboard

    • Its purpose can be explained in one sentence.
    • Environment, service, time range and units are visible.
    • Counter queries apply rate before aggregation.
    • Multi-value variables and empty results have been checked.
    • Latency calculations match the histogram type and bucket layout.
    • Refresh settings fit the task, and slow panels have been inspected.
    • Another person can understand the dashboard without your explanation.

    Start with one existing dashboard. Fix its scope and units, inspect its slowest panel, and keep only the changes you can explain. That is a more useful improvement than adding another row of graphs.

    Login

    to interact with this post.

    Social.
    Snapshot.

    Instantly create a share-worthy social post for this post.

    Social Snapshot
    Explore similar content