Grafana interview questions on dashboards, variables and alerting

Grafana interview questions focus on turning raw telemetry into dashboards and alerts that people act on. Expect questions on data sources, panels and template variables, the $__rate_interval and $__interval macros, transformations, Grafana-managed alerting, provisioning dashboards as code, and permissions. Senior rounds ask you to design dashboards for an on-call team, fix a slow dashboard, and connect metrics, logs and traces.

By Published 9 min read

How Grafana shows up in interviews

Grafana questions usually ride along with Prometheus and Kubernetes in SRE and platform loops, and with SQL in analytics or IoT roles where Grafana sits on a relational or time-series database. The format tends to be practical: share your screen and build a panel, explain a dashboard you are shown, or describe how you would set up observability for a new team. Interviewers notice whether you design for the person reading the dashboard at 3 a.m. or for a wall screen that only looks busy. Observability engineering roles add the wider stack: logs in Loki, traces in Tempo, long-term metrics in Mimir, and how a user moves between them.

Fundamentals

Grafana building blocks
QuestionWhat it testsWhat a strong answer shows
What is a data source in Grafana?ArchitectureA configured connection to a backend that stores data, such as Prometheus, Loki, Elasticsearch, InfluxDB, PostgreSQL, CloudWatch or Azure Monitor. Grafana sends the panel's query to it and draws the result; it does not keep a copy of the metrics.
Which panel types do you use most and when?VisualizationTime series for trends, stat for a single current number with thresholds, gauge or bar gauge for a value against limits, table for detail, heatmap for latency distributions, logs for log lines, and state timeline for up and down history.
What is a dashboard's JSON model?InternalsEvery dashboard is a JSON document holding panels, their queries, layout positions, variables and settings. Export, import, version history and dashboards as code all work on that JSON.
What are template variables?ReuseNamed values such as $cluster or $instance, filled from a query, a fixed list, an interval list or a data source list. Panels reference them so one dashboard switches between environments or services from a drop-down.
What do thresholds and value mappings do?ReadabilityThresholds color a value by range (green under 70%, amber, red). Value mappings turn raw values into words, such as 1 to Up and 0 to Down, so a reader does not need to know the encoding.
What are annotations used for?ContextMarkers on time series panels for events such as deploys, incidents or config changes, added by hand, by API or from a query, so a spike can be matched to its cause.
How are users organized?AccessOrganizations separate whole tenants. Inside one, users belong to teams, and folders hold dashboards with permissions per team or role (viewer, editor, admin). Larger editions add finer role-based access control.
What replaced API keys for automation?SecurityService accounts with tokens. They have their own roles, are not tied to a person leaving, and can be rotated without breaking someone's login.
Grafana building blocks. Scroll sideways on a small screen.

Intermediate: queries, variables and transformations

  • What is $__interval and why does it change? Grafana computes it from the dashboard time range and the panel width, so a seven-day view asks for coarser steps than a one-hour view. It keeps queries from returning more points than the panel can draw.
  • Why use $__rate_interval with Prometheus? It picks a rate() window that is never too short for the scrape interval configured on the data source, so zoomed-in panels do not go blank or jagged. It is safer than hard-coding [1m] or using $__interval directly.
  • How do multi-value variables reach a Prometheus query? With a regex matcher such as instance=~"$instance". Grafana joins selected values into an alternation for Prometheus by default, and explicit formats such as ${instance:regex}, ${instance:csv} or ${instance:pipe} control the shape for other data sources.
  • What is a chained variable? One whose query uses another variable, such as namespaces filtered by the chosen cluster, so each drop-down only lists values that make sense together.
  • What are transformations? Steps that reshape query results inside Grafana before drawing: join by field, merge, organize fields, reduce, filter by value, calculate field and group by. Use them for presentation, but push heavy work into the query or a recording rule.
  • How do you show the same query on several panels without running it twice? Use the built-in Dashboard data source to reuse another panel's results, or make the panel a library panel when it should be shared across dashboards.
  • How do you use SQL data sources with time ranges? Macros such as $__timeFilter(created_at) insert the dashboard's time range into the WHERE clause, and time grouping macros bucket rows into intervals, so the panel follows the time picker.
  • What are ad hoc filters? A variable type that lets a viewer add label filters, such as pod or region, which Grafana applies to every query on the dashboard from a supported data source, without anyone editing the panels.
  • What are repeating panels and rows? A panel or row set to repeat for each value of a multi-select variable, so choosing five services draws five panels without editing the dashboard.
# Requests per second by status code for the chosen instances
sum by (code) (
  rate(http_requests_total{job="checkout", instance=~"$instance"}[$__rate_interval])
)

# Variable query (Query type, Prometheus data source) for the instance drop-down
label_values(up{job="checkout"}, instance)
Panel queries using Grafana variables: a multi-select instance filter and the rate window macro. Grafana replaces the variables before Prometheus sees the query.
SELECT
  $__timeGroupAlias(created_at, '5m'),
  count(*) AS orders
FROM orders
WHERE $__timeFilter(created_at)
  AND region IN ($region)
GROUP BY 1
ORDER BY 1
A PostgreSQL panel query using Grafana's time macros, so the chart follows the dashboard's time picker.

Alerting, provisioning and the wider stack

Running Grafana for a team
QuestionWhat it testsWhat a strong answer shows
How does Grafana-managed alerting fit together?Alerting modelAlert rules hold a query, conditions and a pending period. Firing alerts carry labels, notification policies match those labels to contact points such as a pager, chat channel or email, and silences and mute timings hold notifications back.
Grafana alerts or Prometheus alerts?JudgmentPrometheus rules with Alertmanager keep alerting next to the data and keep working if Grafana is down. Grafana-managed rules can alert on any data source, including SQL and logs. Many teams keep infrastructure alerts in Prometheus and use Grafana for the rest.
What is provisioning?Configuration as codeYAML files that Grafana reads at startup to create data sources, dashboard folders, alert rules and contact points. Dashboards come from JSON files on disk, so a fresh instance looks the same every time.
How do you manage dashboards as code?Team workflowStore the JSON in Git and deploy through provisioning, the Terraform provider or the HTTP API. For many similar dashboards, generate the JSON from code (Jsonnet with Grafonnet, or an SDK) and review changes in pull requests.
What are Loki, Tempo and Mimir?Stack knowledgeGrafana Labs projects for logs, traces and long-term Prometheus-compatible metrics. Loki indexes labels rather than full log text, which keeps it cheap but makes label choice matter.
How do you link metrics, logs and traces?CorrelationExemplars on latency panels point to trace IDs, data links and correlations open the matching logs with the same labels and time range, and trace views link back to the service's metrics.
How do you secure a Grafana instance?OperationsSingle sign-on through OAuth, SAML or LDAP, least-privilege folder permissions, service accounts for automation, data source credentials kept in Grafana rather than queries, and caution with anonymous access and public dashboards.
Running Grafana for a team. Scroll sideways on a small screen.
# provisioning/datasources/prometheus.yaml
apiVersion: 1
datasources:
  - name: Prometheus
    uid: prom-main
    type: prometheus
    access: proxy
    url: http://prometheus:9090
    isDefault: true
    jsonData:
      timeInterval: 15s   # the scrape interval, used by $__rate_interval

# provisioning/dashboards/team-dashboards.yaml
apiVersion: 1
providers:
  - name: team-dashboards
    folder: Checkout
    type: file
    allowUiUpdates: false
    options:
      path: /var/lib/grafana/dashboards/checkout
Provisioning a Prometheus data source and a folder of file-based dashboards (two files; each parsed as valid YAML).
{
  "title": "Checkout service",
  "uid": "checkout-overview",
  "templating": {
    "list": [
      {
        "name": "instance",
        "type": "query",
        "datasource": { "type": "prometheus", "uid": "prom-main" },
        "query": "label_values(up{job='checkout'}, instance)",
        "multi": true,
        "includeAll": true,
        "refresh": 2
      }
    ]
  },
  "panels": [
    {
      "type": "timeseries",
      "title": "Requests per second by status class",
      "gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 },
      "datasource": { "type": "prometheus", "uid": "prom-main" },
      "fieldConfig": { "defaults": { "unit": "reqps" } },
      "targets": [
        {
          "refId": "A",
          "expr": "sum by (code) (rate(http_requests_total{job='checkout', instance=~'$instance'}[$__rate_interval]))",
          "legendFormat": "{{code}}"
        }
      ]
    }
  ]
}
A trimmed dashboard JSON model: one query variable and one time series panel (parsed as valid JSON). Real exports carry more fields.

Senior and scenario questions

  • Design the main dashboard for an on-call engineer. Top row: the user-facing signals (traffic, error ratio, latency percentiles, saturation) with thresholds tied to the service objectives. Below: dependencies and resources. Every panel answers a question, units are set, and links lead to logs, traces and the runbook.
  • A dashboard takes 30 seconds to load. How do you fix it? Count the panels and queries, find the slow ones in the query inspector, replace expensive expressions with recording rules, set a sensible min interval and max data points, collapse rarely used rows so they load on demand, and reuse results with the Dashboard data source.
  • Fifty teams each built their own dashboards and nobody trusts them. What do you do? Publish a small set of standard dashboards generated from code, put them in shared folders owned by a platform team, give teams their own folders for extras, and mark or archive dashboards nobody has opened in months.
  • An alert fired but nobody was notified. Where do you look? The alert rule's state history, the labels it carried, which notification policy matched them, whether a silence or mute timing applied, and the contact point's delivery errors. Labels that do not match any specific policy fall to the default route.
  • A manager wants a business KPI dashboard in Grafana. Is that a good idea? It can be, for near real-time operational numbers from SQL or metrics. For governed financial reporting with drill-down and row-level security, a BI tool such as Power BI may suit better.
  • Leadership asks for one wall dashboard for every service. What do you build? A small grid of stat panels per service showing objective status and error budget left, colored by thresholds, repeated from a service variable, with each tile linking to that service's detailed dashboard. Anything more detailed belongs one click away, not on the wall.
  • How would you migrate dashboards from another monitoring tool? Inventory what is actually used, rebuild the important dashboards around questions rather than copying every chart, check the numbers side by side for a period, then retire the old ones with a date everyone knows.

Fictional example

Answering "Our cluster dashboard is useless during incidents. Redesign it."
Interviewer
Engineers say the cluster dashboard has sixty panels and none of them helps during an incident. What would you do?
Candidate
I would start by asking two or three people what they looked for in the last incidents, and check which panels were actually viewed. Then I would split it. A first screen with a handful of panels: requests, errors and p95 latency per service, node and pod saturation, and anything paging right now, all filtered by cluster and namespace variables. Each stat gets thresholds that match our objectives, so red means act. Detailed panels move into collapsed rows or a second dashboard linked from the first. Rate queries use $__rate_interval, the heavy aggregations become recording rules, and panels link to the logs view with the same labels and time range. Finally, the JSON goes into Git and is provisioned, so the next person improves it through a review instead of a one-off edit.

How to prepare for Grafana interview questions

  1. Run Grafana next to a data sourceGrafana and Prometheus each run as a single binary or container on a laptop. Add node_exporter so there is real data to chart.
  2. Build one dashboard from scratchAdd query, interval and custom variables, a chained variable, a stat with thresholds, a heatmap for latency and a repeating row.
  3. Provision itExport the JSON, put it in a provisioning folder with a data source file, restart Grafana and confirm it appears unchanged.
  4. Create and route an alertWrite a rule, label it, add a notification policy and a contact point, then add a silence and confirm notifications stop.
  5. Prepare a design storyA dashboard you simplified or an alert you rewired, and what changed for the people on call.

Grafana rounds lean heavily on the queries behind the panels, so pair this page with Prometheus interview questions for PromQL and Splunk interview questions for log search. For the role that usually owns these dashboards, see DevOps engineer interview questions.

Dashboard design questions reward a clear spoken walkthrough. Natively, an AI interview assistant for Mac and Windows, transcribes a practice round as you talk, can put suggested points on screen during the question, and in practice can read a dashboard, a panel's query or an alert rule from a screenshot and explain what it does. With Pro or the free trial it also uses your résumé and the job description, and the session's transcript and notes are kept so you can tighten the parts that rambled.

Questions people ask

What are common Grafana interview questions?

Data sources and panel types, template variables and chained variables, $__interval and $__rate_interval, transformations, Grafana-managed alerting with contact points and notification policies, provisioning, permissions and dashboard performance.

What is $__rate_interval in Grafana?

A built-in variable for Prometheus queries that picks a rate() window long enough for the configured scrape interval, so panels stay correct when you zoom in. It is safer than a hard-coded window.

How do you manage Grafana dashboards as code?

Keep the dashboard JSON in Git and deploy it with provisioning files, the Terraform provider or the HTTP API. For many similar dashboards, generate the JSON from code and review changes in pull requests.

How do I prepare for a Grafana interview?

Run Grafana with Prometheus locally, build a dashboard with variables, thresholds and a heatmap, provision it from files, create and route an alert, and prepare a story about a dashboard you simplified.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP