Kibana × Metabase

How to build Kibana dashboards in Metabase

Kibana is the visualization and management layer of the Elastic Stack for dashboards, alerting rules, and cases. Metabase is where you turn those operational signals into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Elastic Agent Builder MCP (via Kibana) and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Kibana rollups into a database so you can build dashboards anyone can read.

Heads up: Metabase connects to databases and warehouses — it does not ship a native Kibana connector, and a BI warehouse is the wrong home for raw telemetry. Sync aggregates, entities, and metadata — incidents, error groups, rollups, deploys — and leave the event firehose in Kibana.

How do you connect Kibana to Metabase?

Most teams combine both routes: use MCP and CLI uploads for a fast first pass, then move recurring reliability reporting to a warehouse-backed model.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair the Elastic Agent Builder MCP (via Kibana) with the Metabase CLI. Use MCP for live lookups, write a scoped result to CSV, then load it into Metabase as a ready-to-query table and model.

Best for
  • Quick lookups such as "show me case volume and resolution time"
  • Loading a Kibana export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed reliability reporting
  • Use read-only/scoped credentials wherever the MCP server supports them
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync Kibana rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.

Best for
  • Kibana reliability dashboards leaders depend on
  • Joining Kibana data with deploys, issues, support, or cost data
  • Long-run trends for case volume and resolution time and alert rule health and noise
Trade-offs
  • You own the refresh schedule and the rollup grain
  • Sync aggregates and entities — not the raw event firehose
  • Metric definitions must be consistent across services and teams

What can you analyze from Kibana data in Metabase?

  • Case volume and resolution time — built from cases and the related alerting rules, rule executions, dashboards data your sync exposes.
  • Alert rule health and noise — built from cases and the related alerting rules, rule executions, dashboards data your sync exposes.
  • Rule execution failures — built from cases and the related alerting rules, rule executions, dashboards data your sync exposes.
  • Detection coverage by space — built from cases and the related alerting rules, rule executions, dashboards data your sync exposes.
  • Dashboard inventory and ownership — built from cases and the related alerting rules, rule executions, dashboards data your sync exposes.

Which Kibana dashboards should you build in Metabase?

For: On-call engineers, SREs

Incident health

Volume, acknowledgment, and recovery at a glance.

  • Incidents per week by severity (stacked bar)
  • Median time to acknowledge (line)
  • Median time to resolve (line)
  • Open incidents right now (number)
For: SRE leads

Alert quality

Whether alerts are signal or noise.

  • Alerts fired per week (line)
  • Alert-to-incident conversion rate (number + trend)
  • Noisiest services or monitors (table)
  • Auto-resolved alerts share (number)
For: EMs, on-call rotation owners

On-call load

Whether the pager is sustainable for the humans.

  • Pages per on-call shift (bar)
  • Off-hours pages per week (line)
  • Escalations per week (bar)
  • Pages by service (table)
For: Leadership, service owners

Service reliability

Which services drive incident load over time.

  • Incidents by service, trailing 90 days (bar)
  • Repeat incidents on the same service (table)
  • MTTR by service (bar)
  • Postmortem completion rate (number)

How do you use the Elastic Agent Builder MCP (via Kibana) with the Metabase CLI?

Pair the Elastic Agent Builder MCP (via Kibana) with the Metabase CLI for fast, hands-on analysis. MCP is useful for scoped lookups and summarized exports; the Metabase CLI's upload command loads CSV data into Metabase and creates a ready-to-query table and model.

Example workflow

  • Ask the MCP server for recent cases with acknowledge and resolve timestamps.
  • Export the result as CSV, keeping stable IDs, services, environments, severities, and timestamps.
  • Run mb upload csv to load it into Metabase as a table and model, then build questions and dashboards on top.

Be honest about the limits

  • MCP lookups are excellent for exploration, not scheduled reporting.
  • A CSV upload is a snapshot; refresh it with mb upload replace or move to the pipeline for real history.
  • Acknowledge and resolve timestamps are required for true MTTA and MTTR.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up Kibana MCP and the Metabase CLI?

Elastic Agent Builder MCP (via Kibana)official

Transport
Remote MCP via Streamable HTTP (served by Kibana)
Auth
Elasticsearch API key with the Agent Builder privilege
Best for
Live scoped lookup and export

Metabase CLIofficial

Install
npm install -g @metabase/cli
Auth
mb auth login
Load data
mb upload csv --file data.csv
Requires
An uploads database (Admin → Settings → Uploads)
MCPExample MCP client config
{
  "mcpServers": {
    "kibana": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://your-kibana.example.com/api/agent_builder/mcp",
        "--header", "Authorization: ApiKey ${ES_API_KEY}"
      ]
    }
  }
}

For saved-object inventory (dashboards, visualizations), the community @tocharianou/mcp-server-kibana server covers the Kibana management APIs.

TerminalLoad a Kibana CSV with the Metabase CLI
# Install the Metabase CLI
npm install -g @metabase/cli

# Log in (opens your browser; requires Metabase v62+)
mb auth login --url https://your-metabase.example.com

# Load a cases export — creates a table AND a model
mb upload csv --file kibana-cases.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file kibana-cases.csv

Can you generate a Kibana dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Elastic Agent Builder MCP (via Kibana) and the Metabase CLI. It works end to end: if Kibana tables already exist in Metabase it analyzes those; otherwise it pulls scoped, summarized data over MCP, loads it with mb upload csv, then builds the dashboard and caveats any metric that needs missing history.

Prompt for creating a Kibana Incident Management Overview dashboard
Create a polished Metabase dashboard for Kibana incident management analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help engineering and operations leaders understand incident volume, MTTA, MTTR, alert noise, on-call load, and service reliability from Kibana data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for kibana tables and
  models). If durable Kibana data is already present — synced from a warehouse
  or uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull a scoped, summarized export with the Elastic Agent Builder MCP (via Kibana):
  cases, plus alerting rules, rule executions, dashboards.
  Prefer aggregated or rollup views over raw events. Write each result to a CSV,
  then load it with the Metabase CLI — run "mb upload csv --file <export>.csv" so
  each upload creates a table and a ready-to-query model. Use "mb upload replace
  <table-id> --file <export>.csv" to refresh an existing table instead of creating
  duplicates.

Step 2 — Inspect before querying:
Do not assume exact table or column names. Inspect available fields, services,
environments, timestamps, and whether rollups or history exist before creating
duration or trend cards.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Kibana — it reads a database or CLI-uploaded tables.
- Never try to load the raw event firehose into Metabase; use rollups, entity
  tables, and incident- or group-grain data.
- Only compute durations (MTTA, MTTR, time-to-resolve) when the required
  timestamps exist.
- Exclude test, staging, or muted objects from headline reliability cards, and
  segment by environment where the field exists.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
  usable date column or multiple periods have been uploaded.

Dashboard title: Kibana Incident Management Overview

Sections:
1. Executive summary: Open incidents; Incidents last 30 days; Median MTTA;
   Median MTTR; High-urgency share.
2. Volume: Incidents by week and severity; incidents by service and team.
3. Response: MTTA and MTTR trends; incidents breaching response targets.
4. Alert quality: Alerts by week; alert-to-incident conversion; noisiest services.
5. On-call load: Pages per shift; off-hours pages; escalation rate.

Filters: Date range, Service, Environment, Severity, Team, Status.

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric
that cannot be calculated from the available data.

How do you sync Kibana data into a database or warehouse?

For dashboards that need history and reliability, land Kibana rollups and metadata in a database first, then connect Metabase to that database.

Connector options

  • Managed ETL — use a connector when one covers the objects you need.
  • Custom pipeline — use the Kibana REST APIs for control over rollup grain, fields, and refresh cadence.
  • MCP + CSV — use this for quick exploration and one-off slices.

No managed connector exists — script the Kibana REST APIs for alerting rules, rule executions, cases, and saved-object inventory; the underlying log data syncs via the Elasticsearch connectors.

Notes

  • Decide the rollup grain first (hourly or daily per service/environment) — it drives warehouse cost and every trend card.
  • Land raw entity tables first, then build clean Metabase models on top.
  • Normalize service, team, severity, created, acknowledged, and resolved-timestamp fields.

How should you model Kibana data in Metabase?

Core tables

TableGrainKey columns
kibana_casesone row per caseid, title, severity, status, owner, created_at, in_progress_at, closed_at
kibana_alertsone row per rule execution alertid, rule_id, rule_name, service_name, severity, fired_at, resolved_at, became_incident
kibana_rulesone row per alerting ruleid, name, rule_type, space, enabled, last_run_status

Modeling advice

  • Build a clean incidents model with common columns across tools, so multi-source dashboards don't fork definitions.
  • Separate entity tables (services, monitors, policies) from time-series rollups and event-grain tables.
  • Exclude test, staging, and muted objects from headline reliability metrics; keep environment as an explicit column.
  • Use stable IDs for service, team, and incident joins; display names change.

Which Kibana metrics should you track in Metabase?

MetricDefinitionNotes
Incident countQualifying incidents per period, segmented by severity.Watch the trend by service, not one number.
Mean time to acknowledgeCreated to first acknowledge, as a median.A paging-health metric — separate from MTTR.
MTTRMedian time from incident start to resolution.Segment by severity; exclude open incidents.
Alert noise rateAlerts that never became incidents divided by all alerts.High noise trains responders to ignore pages.
SLO compliancePeriods meeting the SLO target divided by all periods.Report against explicit, published targets.

What SQL powers Kibana dashboards in Metabase?

These assume a cleaned analytical model in a warehouse (PostgreSQL dialect). Adjust table and column names to match your pipeline.

Incidents with median MTTA and MTTR by monthPostgreSQL

The core incident-health trend.

SELECT
  date_trunc('month', created_at) AS month,
  COUNT(*) AS incidents,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (acknowledged_at - created_at)) / 60
  ) AS median_ack_minutes,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (resolved_at - created_at)) / 60
  ) AS median_resolve_minutes
FROM incidents
WHERE resolved_at IS NOT NULL
GROUP BY 1
ORDER BY 1;
Alert noise rate by servicePostgreSQL

Alerts that never became incidents.

SELECT
  service_name,
  COUNT(*) AS alerts,
  COUNT(*) FILTER (WHERE became_incident) AS incidents,
  ROUND(
    100.0 * COUNT(*) FILTER (WHERE NOT became_incident)
    / NULLIF(COUNT(*), 0), 1
  ) AS noise_rate
FROM alerts
WHERE fired_at >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY service_name
ORDER BY noise_rate DESC;
Incidents by service and severityPostgreSQL

Where incident load concentrates, trailing 90 days.

SELECT
  service_name,
  severity,
  COUNT(*) AS incidents,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (resolved_at - created_at)) / 3600
  ) AS median_resolve_hours
FROM incidents
WHERE created_at >= CURRENT_DATE - INTERVAL '90 days'
  AND resolved_at IS NOT NULL
GROUP BY service_name, severity
ORDER BY incidents DESC;

What are common mistakes when analyzing Kibana in Metabase?

Syncing the raw event firehose into the warehouse.→ Land rollups, entities, and incident- or group-grain tables. Raw telemetry belongs in Kibana; the warehouse is for trends and joins.
Reporting MTTA/MTTR as a mean.→ Response times are heavily right-skewed. Use medians and p90; one multi-day incident wrecks an average.
Counting every alert as an incident.→ Separate alerts from qualifying incidents, and track the noise rate explicitly — otherwise volume dashboards reward noisy monitors.
Building dashboards from live MCP lookups only.→ MCP is useful for exploration; durable dashboards need a database-backed model with history.

Related analytics

Related dashboards

Related integrations

FAQ

Does Metabase connect natively to Kibana?
No. Metabase reads databases and warehouses. Sync Kibana rollups and metadata into a database first, or upload a CSV with the Metabase CLI, then build Metabase models and dashboards on top.
Should Metabase replace Kibana?
No — they answer different questions. Kibana is built for real-time triage and deep debugging. Metabase is where you build governed, shareable reporting on top of the same signals, and join them with deploys, issues, support, and business data.
Can I compute MTTA and MTTR from a current-state export?
Only if it includes acknowledge and resolve timestamps. MTTA and MTTR are duration metrics — verify the timestamp fields exist before building the cards, and exclude still-open incidents from the math.
How do I measure alert noise?
Track the share of alerts that never became incidents — the alert noise rate — and rank monitors by it. Sustained noise is the leading cause of missed real pages.