Nov 26, 2026 / 01:00 PM UTC

    Grafana Shows No Data? A Prometheus Troubleshooting Guide

    When Grafana shows “No data,” check the scrape target, metric, labels and time range before changing the dashboard. A missing result is different from a zero value or a failed query.

    This guide follows a Prometheus-backed panel from the data source to the visualization. It uses a fictional checkout service; substitute the job, environment and metric names that exist in your setup. Menu labels vary between Grafana versions.

    Start by separating three outcomes

    • A value of zero: a series exists and its current value is zero. For example, up=0 reports that the last scrape of a known target failed.
    • No matching series: the query succeeds but finds no samples for the selected labels and time range.
    • A query error: the request fails, perhaps because of a connection, permission or syntax problem.

    Do not replace every empty result with zero. That can make a broken monitoring path look healthy. Prometheus describes how selectors and time ranges determine the series returned by a query. Source: Prometheus querying basics.

    1. Check the connection from Grafana’s point of view

    Open the Prometheus data-source settings and check the configured server URL. The address must be reachable from the Grafana server, not just from your laptop. If the services run in separate Docker containers on the same network, localhost inside the Grafana container refers to that container. A shared-network service name such as http://prometheus:9090 may be appropriate instead.

    Use your deployment’s actual hostname, protocol and authentication settings. Test the data source and read the error message before changing anything. Do not expose Prometheus publicly or disable authentication just to make a connection test pass. Source: Grafana connection troubleshooting.

    2. Check whether Prometheus can scrape the target

    PromQL: inspect the checkout scrape targets.

    up{job="checkout"}

    Run this in Prometheus or Grafana Explore with the correct data source selected. A result of 1 means the last scrape succeeded. A result of 0 means a known target failed its last scrape. An empty result for this selector means there is no matching recent series; it does not mean every checkout request failed.

    Check the Prometheus targets view for the scrape error and the exact job and instance labels. A target can be reachable while an application is unhealthy, so scrape success is only one check. Source: Prometheus jobs and instances.

    3. Find the metric before adding filters

    PromQL: inspect the application request counter.

    http_requests_total{job="checkout"}

    If the metric is missing, confirm that the application exports it and that the scrape configuration includes that endpoint. If it exists, inspect the returned labels. Your exporter might use service instead of job, or code instead of status. Query names are not universal.

    Add filters one at a time. First select the job, then the environment, then any instance or status filter. The step that makes the result disappear usually reveals a mismatched label value. For large installations, use metric discovery and targeted selectors rather than repeatedly fetching an unbounded metric.

    4. Check the time range and rate window

    Start with a recent time range that contains known samples. A dashboard set to last week cannot display a service that started this morning. Also check panel-specific time overrides.

    PromQL: show the checkout request rate.

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

    rate() needs multiple counter samples. A window that is too short for the scrape interval can return an empty result. Grafana’s $__rate_interval is useful in Prometheus rate queries; it is expanded by Grafana. Replace it with a fixed duration such as [5m] when testing directly in Prometheus, choosing a window suitable for your collection interval. Source: Grafana interval variables.

    5. Remove dashboard filters that hide valid results

    If the query works in Explore but not in the panel, compare the selected data source, variable values and time range. A saved dashboard may open with a job or instance that no longer exists.

    For multi-value Grafana variables, check whether the selector should use a regex matcher such as job=~"$job". Test a single value before testing All. Then inspect transformations and field filters: they may hide data that the query actually returned.

    6. Inspect the request, then the visualization

    Open the panel inspector and review the request and returned data. If rows or series are present, the problem is closer to panel configuration than collection. Check the visualization type, selected fields, units and transformations. If the request is empty or failing, return to the query and data source.

    Record the query, exact time range, data-source name and error text when asking a colleague for help. Remove tokens and private identifiers before sharing the evidence. Source: Grafana panel inspector.

    A tested distinction: down is not missing

    In a synthetic promtool v3.7.3 fixture, api-1 had up=1 and api-2 had up=0. Querying the known checkout job returned both series. Querying missing-job returned no series. A separate request counter fixture returned 100 requests per second over a five-minute rate window. These checks validate the example expressions; they are not a test of your network or a measurement of Monkeys production.

    A short troubleshooting checklist

    1. Read the panel error, if there is one.
    2. Verify the data-source URL from the Grafana server’s network.
    3. Check the target and its last scrape error in Prometheus.
    4. Confirm the metric and labels exist.
    5. Select a time range containing recent samples.
    6. Use a rate window that contains enough samples.
    7. Test variables and transformations one at a time.
    8. Inspect the returned data before rebuilding the panel.

    Once the panel works, use our Grafana dashboard best-practices checklist to make it easier for the next person to understand. For a first installation, see the Grafana and Prometheus setup guide.

    Login

    to interact with this post.

    Social.
    Snapshot.

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

    Social Snapshot
    Explore similar content