24 November 2026 · 3 MIN READ

Grafana for Plant-Floor Telemetry: Building an OEE Dashboard from Scratch

Learn how to build a real-time plant-floor OEE dashboard in Grafana from scratch—covering PLC tag design, MQTT/InfluxDB ingestion, and the four essential OEE panels.

GrafanaOEEVisualization
Plant-floor control room monitor displaying dark-mode OEE telemetry gauges and time-series charts with an automated factory floor in the background
Real-time plant-floor OEE telemetry dashboard displaying availability, performance, and quality metrics. Image: AI-generated.

Most factories already collect machine states, part counts, and fault codes inside PLCs or proprietary historians—yet plant managers still end up pasting numbers into Excel at the end of every shift to calculate Overall Equipment Effectiveness (OEE).

Because Grafana is open-source, lightweight, and built for time-series telemetry, it has become one of the fastest ways for IIoT and controls engineers to build clean, real-time OEE dashboards without per-seat SCADA client licenses.

Why Grafana Fits Plant-Floor OEE

Traditional HMI screens are designed for operator control ("Start, Stop, Reset Fault"). OEE dashboards serve a different purpose: shift visibility and loss analysis across lines, shifts, and product SKUs.

Grafana excels here because it separates storage from visualization. Whether your plant stores telemetry in InfluxDB, TimescaleDB (PostgreSQL), or streams live machine topics via the Grafana MQTT Data Source, you can query multiple lines in one unified view and share read-only dashboards on shop-floor TVs.

Plant-Floor OEE Telemetry Pipeline for Grafana: 1. Machine PLC and Counters, 2. OPC UA and MQTT Ingestion, 3. InfluxDB and TimescaleDB, 4. Grafana OEE Dashboards
Plant-floor OEE telemetry pipeline from PLC counters to Grafana dashboards. Illustration: IIoTjob (original artwork).

Step 1: Structure Your PLC Tags Before Touching Grafana

An OEE dashboard is only as accurate as the three underlying ratios:

$$\text{OEE} = \text{Availability} \times \text{Performance} \times \text{Quality}$$

Before building a single panel, make sure your edge collector (such as Telegraf, Node-RED, Ignition, or HighByte) publishes four clean signals per machine or cell:

  1. Machine State Enum (state): A discrete integer or string (0 = Planned Stop, 1 = Running, 2 = Unplanned Fault, 3 = Starved/Blocked). Avoid relying solely on motor-run bits—a conveyor running empty is not producing good parts.
  2. Reason / Fault Code (fault_code): Captured on state transitions so you can build a downtime Pareto chart later.
  3. Total & Good Part Counters (total_count, good_count): Monotonically increasing 32-bit counters from the PLC. Always compute deltas (non_negative_difference) in the time-series database rather than resetting counters mid-shift in the dashboard.
  4. Ideal Cycle Time / Target Rate (ideal_cycle_sec): Tagged per recipe or SKU so Performance adjusts automatically when a line switches from small bottles to large jugs.

Step 2: Choose Your Storage & Streaming Layer

For production OEE, pair a time-series database with optional live streaming:

  • Historical & Shift Rollups (InfluxDB or TimescaleDB): Store 1–5 second state and counter samples, then use continuous queries or SQL views to pre-aggregate 1-minute and per-shift OEE buckets.
  • Sub-Second Live Status (Grafana Live + MQTT): When supervisors want instant machine-state changes on an overhead Andon monitor without hammering a database every second, subscribe Grafana directly to your MQTT broker for live status cards while keeping InfluxDB/TimescaleDB for historical trends.

Step 3: Build the Four Essential OEE Panels

Skip cluttered 3D gauges and pack your OEE dashboard around four high-signal panels:

  1. Top KPI Stat Row: Four clean Stat panels showing OEE %, Availability %, Performance %, and Quality % for the selected shift ($__timeFilter), with color thresholds (e.g., red < 65%, amber 65–80%, green > 80%).
  2. State Timeline Panel: Grafana's native State timeline panel renders each machine's Running / Fault / Idle bands across an 8-hour shift, making micro-stops and changeover delays immediately obvious.
  3. Downtime Pareto Bar Chart: Query GROUP BY fault_code ordered by total fault duration descending so maintenance teams immediately see the top 3 chronic stops.
  4. Shift & Line Template Variables: Add Grafana dashboard variables ($plant, $line, $shift) so one dashboard template scales across every line in the facility.

Putting Open-Source Telemetry on Your Resume

Building a working MQTT → InfluxDB/TimescaleDB → Grafana OEE pipeline (even against a simulated PLC in Docker) is one of the strongest portfolio projects an aspiring IIoT or DataOps engineer can show in an interview.

Looking for roles in IIoT DataOps, SCADA visualization, or plant-floor analytics? Browse open positions on IIoTjob.


Image Credits:

  • Featured Header: Real-time plant-floor OEE telemetry dashboard displaying availability, performance, and quality metrics. Image: AI-generated.
  • Pipeline Diagram: Plant-floor OEE telemetry pipeline from PLC counters to Grafana dashboards. Illustration: IIoTjob (original artwork).