reactive-telemetry-ai-engine

Real-Time Observability • Edge Computing • AI Anomaly Detection • Intelligent Incident Response

Observe faster. Detect earlier. Respond intelligently.

Reactive Telemetry AI Engine is a polyglot observability and intelligent incident-monitoring platform designed to collect real-time telemetry from distributed edge devices, detect abnormal system behaviour, and generate actionable incident-response recommendations.

The platform combines a Java 17 edge telemetry producer, a Python FastAPI processing engine, statistical anomaly detection powered by NumPy, optional LLM-assisted incident triage, and a responsive Network Operations Center (NOC) dashboard.

It demonstrates how modern software engineering, edge computing, AI-assisted operations, and real-time event processing can work together in a unified system.


1. Project Overview

Modern infrastructure generates enormous volumes of operational data. CPU utilisation, memory consumption, network latency, packet loss, and hardware temperature can change rapidly.

Traditional monitoring systems often depend on static thresholds and manual investigation. This project explores a more intelligent approach.

Reactive Telemetry AI Engine provides:

Core objective

Build an end-to-end telemetry intelligence platform that can collect, process, analyse, and present operational signals while providing useful guidance when abnormal behaviour is detected.


2. System Architecture

                  EDGE ENVIRONMENT
                         |
                         v
              JAVA 17 EDGE PRODUCER
              ---------------------
              Telemetry Simulation
              Multiple Device Sources
              Event Generation
              Bounded Ring Buffer
              Backpressure Handling
              Batched HTTP Delivery
                         |
                         v
                PYTHON FASTAPI CORE
                -------------------
                REST API Ingestion
                Pydantic Validation
                Event Broker
                Rolling Event History
                         |
              +----------+----------+
              |                     |
              v                     v
       ANOMALY DETECTION       EVENT STREAMING
       -----------------       --------------
       NumPy Statistics        WebSocket
       Rolling Z-Score         Server-Sent Events
       Drift Detection         Subscriber Queues
       Severity Classification
              |
              v
       INCIDENT MANAGEMENT
       -------------------
       Incident Records
       Rules-Based Triage
       Optional LLM Analysis
       Recommended Actions
              |
              v
        WEB NOC DASHBOARD
        -----------------
        Live KPI Monitoring
        Telemetry Waveform
        Incident Intelligence
        Event Feed
        Incident Inspector
        AI Triage Interface

Architecture components

Component Responsibility
Java Edge Producer Generates and batches telemetry events
Bounded Ring Buffer Controls memory usage and handles buffer overflow
FastAPI Backend Receives, validates, and processes telemetry
Event Broker Maintains recent events and distributes live updates
Anomaly Detector Identifies unusual metric behaviour
Incident Triage Engine Produces investigation guidance
WebSocket / SSE Streams incoming telemetry
NOC Dashboard Displays live operational intelligence

3. Technology Stack

Backend and AI

Edge Computing

Frontend

Infrastructure and DevOps


4. Key Features

4.1 Real-Time Edge Telemetry

The Java edge producer simulates telemetry from multiple distributed devices.

Simulated devices include:

Each device generates operational metrics.

Metric Description Unit
cpu_usage CPU utilisation %
memory_usage Memory utilisation %
latency_ms Network or service latency ms
temperature_c Device temperature °C
packet_loss Network packet loss %

The producer periodically generates abnormal CPU spikes and gradual latency changes to exercise the detection pipeline.

4.2 Bounded Ring Buffer and Backpressure

The Java edge producer uses a fixed-capacity ring buffer.

Its responsibilities include:

This provides a simple backpressure strategy for situations where telemetry generation exceeds delivery capacity.

4.3 Intelligent Anomaly Detection

The Python detection engine analyses incoming metric values using rolling statistical calculations.

Rolling Z-score detection

The detector compares new observations against a historical baseline.

[ Z = \frac{|x-\mu|}{\sigma} ]

Where:

An observation that exceeds the configured threshold is flagged for investigation.

Drift detection

The engine also compares recent observations with an earlier rolling window to identify significant changes in average behaviour.

This helps identify gradual degradation that may not appear as a single extreme spike.

4.4 Incident Severity Classification

Detected anomalies are classified into severity levels:

Severity Meaning
INFO Informational system activity
WARNING Un