What is Grafana, and how does it relate to Prometheus? [Intermediate]
Answer
Grafana is a visualization and dashboarding platform. Prometheus stores and queries metrics; Grafana connects to Prometheus and other data sources to build dashboards, panels, variables, and visual investigation workflows.
Technical explanation
Grafana is not usually the source of truth for metrics; the backend such as Prometheus, Mimir, Thanos, Loki, or Elasticsearch is.
Grafana adds dashboard organization, templating, annotations, alerting options, and cross-source visualization.
Good Grafana dashboards should reflect service ownership and incident workflows, not just random metric panels.
Hands-on example
Hands-on: add Prometheus as a Grafana data source. Create dashboard variables cluster, namespace, and service. Add panels for RPS, error ratio, p95 latency, saturation, and recent deploy annotations. Link each panel to logs or traces using service and trace_id where possible.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is the Splunk data pipeline (input, parsing, indexing, search)? [Intermediate]
- What is the difference between a Splunk forwarder, indexer, and search head? [Intermediate]
- What is the difference between a universal and a heavy forwarder? [Intermediate]
- What is the Prometheus Operator, and what are ServiceMonitor and PodMonitor? [Intermediate]
- How does Prometheus integrate with Kubernetes service discovery? [Intermediate]
- What is the difference between Thanos and Cortex/Mimir at a high level? [Intermediate]
- How does Prometheus storage (TSDB) work, and what is the retention model? [Intermediate]
- What is a Splunk source, sourcetype, and host? [Intermediate]